Stay ahead of learning milestones! Enroll in a class over the summer!

G
Topic
First Poster
Last Poster
k a April Highlights and 2025 AoPS Online Class Information
jlacosta   0
Apr 2, 2025
Spring is in full swing and summer is right around the corner, what are your plans? At AoPS Online our schedule has new classes starting now through July, so be sure to keep your skills sharp and be prepared for the Fall school year! Check out the schedule of upcoming classes below.

WOOT early bird pricing is in effect, don’t miss out! If you took MathWOOT Level 2 last year, no worries, it is all new problems this year! Our Worldwide Online Olympiad Training program is for high school level competitors. AoPS designed these courses to help our top students get the deep focus they need to succeed in their specific competition goals. Check out the details at this link for all our WOOT programs in math, computer science, chemistry, and physics.

Looking for summer camps in math and language arts? Be sure to check out the video-based summer camps offered at the Virtual Campus that are 2- to 4-weeks in duration. There are middle and high school competition math camps as well as Math Beasts camps that review key topics coupled with fun explorations covering areas such as graph theory (Math Beasts Camp 6), cryptography (Math Beasts Camp 7-8), and topology (Math Beasts Camp 8-9)!

Be sure to mark your calendars for the following events:
[list][*]April 3rd (Webinar), 4pm PT/7:00pm ET, Learning with AoPS: Perspectives from a Parent, Math Camp Instructor, and University Professor
[*]April 8th (Math Jam), 4:30pm PT/7:30pm ET, 2025 MATHCOUNTS State Discussion
April 9th (Webinar), 4:00pm PT/7:00pm ET, Learn about Video-based Summer Camps at the Virtual Campus
[*]April 10th (Math Jam), 4:30pm PT/7:30pm ET, 2025 MathILy and MathILy-Er Math Jam: Multibackwards Numbers
[*]April 22nd (Webinar), 4:00pm PT/7:00pm ET, Competitive Programming at AoPS (USACO).[/list]
Our full course list for upcoming classes is below:
All classes run 7:30pm-8:45pm ET/4:30pm - 5:45pm PT unless otherwise noted.

Introductory: Grades 5-10

Prealgebra 1 Self-Paced

Prealgebra 1
Sunday, Apr 13 - Aug 10
Tuesday, May 13 - Aug 26
Thursday, May 29 - Sep 11
Sunday, Jun 15 - Oct 12
Monday, Jun 30 - Oct 20
Wednesday, Jul 16 - Oct 29

Prealgebra 2 Self-Paced

Prealgebra 2
Sunday, Apr 13 - Aug 10
Wednesday, May 7 - Aug 20
Monday, Jun 2 - Sep 22
Sunday, Jun 29 - Oct 26
Friday, Jul 25 - Nov 21

Introduction to Algebra A Self-Paced

Introduction to Algebra A
Monday, Apr 7 - Jul 28
Sunday, May 11 - Sep 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Wednesday, May 14 - Aug 27
Friday, May 30 - Sep 26
Monday, Jun 2 - Sep 22
Sunday, Jun 15 - Oct 12
Thursday, Jun 26 - Oct 9
Tuesday, Jul 15 - Oct 28

Introduction to Counting & Probability Self-Paced

Introduction to Counting & Probability
Wednesday, Apr 16 - Jul 2
Thursday, May 15 - Jul 31
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
Wednesday, Jul 9 - Sep 24
Sunday, Jul 27 - Oct 19

Introduction to Number Theory
Thursday, Apr 17 - Jul 3
Friday, May 9 - Aug 1
Wednesday, May 21 - Aug 6
Monday, Jun 9 - Aug 25
Sunday, Jun 15 - Sep 14
Tuesday, Jul 15 - Sep 30

Introduction to Algebra B Self-Paced

Introduction to Algebra B
Wednesday, Apr 16 - Jul 30
Tuesday, May 6 - Aug 19
Wednesday, Jun 4 - Sep 17
Sunday, Jun 22 - Oct 19
Friday, Jul 18 - Nov 14

Introduction to Geometry
Wednesday, Apr 23 - Oct 1
Sunday, May 11 - Nov 9
Tuesday, May 20 - Oct 28
Monday, Jun 16 - Dec 8
Friday, Jun 20 - Jan 9
Sunday, Jun 29 - Jan 11
Monday, Jul 14 - Jan 19

Intermediate: Grades 8-12

Intermediate Algebra
Monday, Apr 21 - Oct 13
Sunday, Jun 1 - Nov 23
Tuesday, Jun 10 - Nov 18
Wednesday, Jun 25 - Dec 10
Sunday, Jul 13 - Jan 18
Thursday, Jul 24 - Jan 22

Intermediate Counting & Probability
Wednesday, May 21 - Sep 17
Sunday, Jun 22 - Nov 2

Intermediate Number Theory
Friday, Apr 11 - Jun 27
Sunday, Jun 1 - Aug 24
Wednesday, Jun 18 - Sep 3

Precalculus
Wednesday, Apr 9 - Sep 3
Friday, May 16 - Oct 24
Sunday, Jun 1 - Nov 9
Monday, Jun 30 - Dec 8

Advanced: Grades 9-12

Olympiad Geometry
Tuesday, Jun 10 - Aug 26

Calculus
Tuesday, May 27 - Nov 11
Wednesday, Jun 25 - Dec 17

Group Theory
Thursday, Jun 12 - Sep 11

Contest Preparation: Grades 6-12

MATHCOUNTS/AMC 8 Basics
Wednesday, Apr 16 - Jul 2
Friday, May 23 - Aug 15
Monday, Jun 2 - Aug 18
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

MATHCOUNTS/AMC 8 Advanced
Friday, Apr 11 - Jun 27
Sunday, May 11 - Aug 10
Tuesday, May 27 - Aug 12
Wednesday, Jun 11 - Aug 27
Sunday, Jun 22 - Sep 21
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

AMC 10 Problem Series
Friday, May 9 - Aug 1
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
Tuesday, Jun 17 - Sep 2
Sunday, Jun 22 - Sep 21 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Monday, Jun 23 - Sep 15
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)

AMC 10 Final Fives
Sunday, May 11 - Jun 8
Tuesday, May 27 - Jun 17
Monday, Jun 30 - Jul 21

AMC 12 Problem Series
Tuesday, May 27 - Aug 12
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
Wednesday, Aug 6 - Oct 22

AMC 12 Final Fives
Sunday, May 18 - Jun 15

F=ma Problem Series
Wednesday, Jun 11 - Aug 27

WOOT Programs
Visit the pages linked for full schedule details for each of these programs!


MathWOOT Level 1
MathWOOT Level 2
ChemWOOT
CodeWOOT
PhysicsWOOT

Programming

Introduction to Programming with Python
Thursday, May 22 - Aug 7
Sunday, Jun 15 - Sep 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Tuesday, Jun 17 - Sep 2
Monday, Jun 30 - Sep 22

Intermediate Programming with Python
Sunday, Jun 1 - Aug 24
Monday, Jun 30 - Sep 22

USACO Bronze Problem Series
Tuesday, May 13 - Jul 29
Sunday, Jun 22 - Sep 1

Physics

Introduction to Physics
Wednesday, May 21 - Aug 6
Sunday, Jun 15 - Sep 14
Monday, Jun 23 - Sep 15

Physics 1: Mechanics
Thursday, May 22 - Oct 30
Monday, Jun 23 - Dec 15

Relativity
Sat & Sun, Apr 26 - Apr 27 (4:00 - 7:00 pm ET/1:00 - 4:00pm PT)
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
Apr 2, 2025
0 replies
powers sums and triangular numbers
gaussious   4
N 6 minutes ago by kiyoras_2001
prove 1^k+2^k+3^k + \cdots + n^k \text{is divisible by } \frac{n(n+1)}{2} \text{when} k \text{is odd}
4 replies
gaussious
Yesterday at 1:00 PM
kiyoras_2001
6 minutes ago
complex bashing in angles??
megahertz13   2
N 10 minutes ago by ali123456
Source: 2013 PUMAC FA2
Let $\gamma$ and $I$ be the incircle and incenter of triangle $ABC$. Let $D$, $E$, $F$ be the tangency points of $\gamma$ to $\overline{BC}$, $\overline{CA}$, $\overline{AB}$ and let $D'$ be the reflection of $D$ about $I$. Assume $EF$ intersects the tangents to $\gamma$ at $D$ and $D'$ at points $P$ and $Q$. Show that $\angle DAD' + \angle PIQ = 180^\circ$.
2 replies
megahertz13
Nov 5, 2024
ali123456
10 minutes ago
number theory
Levieee   1
N 34 minutes ago by Lil_flip38
Idk where it went wrong, marks was deducted for this solution
$\textbf{Question}$
Show that for a fixed pair of distinct positive integers \( a \) and \( b \), there cannot exist infinitely many \( n \in \mathbb{Z} \) such that
\[
\sqrt{n + a} + \sqrt{n + b} \in \mathbb{Z}.
\]
$\textbf{Solution}$

Let
\[
x = \sqrt{n + a} + \sqrt{n + b} \in \mathbb{N}.
\]
Then,
\[
x^2 = (\sqrt{n + a} + \sqrt{n + b})^2 = (n + a) + (n + b) + 2\sqrt{(n + a)(n + b)}.
\]So:
\[
x^2 = 2n + a + b + 2\sqrt{(n + a)(n + b)}.
\]
Therefore,
\[
\sqrt{(n + a)(n + b)} \in \mathbb{N}.
\]
Let
\[
(n + a)(n + b) = k^2.
\]Assume \( n + a \neq n + b \). Then we have:
\[
n + a \mid k \quad \text{and} \quad k \mid n + b,
\]or it could also be that \( k \mid n + a \quad \text{and} \quad n + b \mid k \).

Without loss of generality, we take the first case:
\[
(n + a)k_1 = k \quad \text{and} \quad kk_2 = n + b.
\]
Thus,
\[
k_1 k_2 = \frac{n + b}{n + a}.
\]
Since \( k_1 k_2 \in \mathbb{N} \), we have:
\[
k_1 k_2 = 1 + \frac{b - a}{n + a}.
\]
For infinitely many \( n \), \( \frac{b - a}{n + a} \) must be an integer, which is not possible.

Therefore, there cannot be infinitely many such \( n \).
1 reply
Levieee
an hour ago
Lil_flip38
34 minutes ago
f(x+y+f(y)) = f(x) + f(ay)
the_universe6626   5
N 44 minutes ago by deduck
Source: Janson MO 4 P5
For a given integer $a$, find all functions $f:\mathbb{Z}\rightarrow\mathbb{Z}$ such that
\[f(x+y+f(y))=f(x)+f(ay)\]holds for all $x,y\in\mathbb{Z}$.

(Proposed by navi_09220114)
5 replies
the_universe6626
Feb 21, 2025
deduck
44 minutes ago
No more topics!
IMO ShortList 2001, combinatorics problem 2
orl   58
N Apr 14, 2025 by gladIasked
Source: IMO ShortList 2001, combinatorics problem 2
Let $n$ be an odd integer greater than 1 and let $c_1, c_2, \ldots, c_n$ be integers. For each permutation $a = (a_1, a_2, \ldots, a_n)$ of $\{1,2,\ldots,n\}$, define $S(a) = \sum_{i=1}^n c_i a_i$. Prove that there exist permutations $a \neq b$ of $\{1,2,\ldots,n\}$ such that $n!$ is a divisor of $S(a)-S(b)$.
58 replies
orl
Sep 30, 2004
gladIasked
Apr 14, 2025
IMO ShortList 2001, combinatorics problem 2
G H J
Source: IMO ShortList 2001, combinatorics problem 2
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ryanbear
1055 posts
#54
Y by
for this to be false the values of $S(a)$ have to be from $0$ to $n!-1$ mod $n!$
but then when you sum it you get that it is not $0$ mod $n!$ from the mods, but from the $c$s, it is $0$ mod $n!$, so there is a contradition
so that means that this statement is true
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
de-Kirschbaum
193 posts
#55
Y by
Let us put the permutations as $\sigma_1,\ldots,\sigma_{n!}$. Then if no two $S(\sigma_i) \equiv S(\sigma_j) \mod{n!}$, we have that $S(\sigma_1),\ldots,S(\sigma_{n!})$ form a complete residue system of $n!$, that means
$$\sum_{i=1}^{n!} S(\sigma_i) \equiv \frac{n!(n!-1)}{2} \mod {n!}$$but on the other hand we could also evaluate $$\sum_{i=1}^{n!} S(\sigma_i) \equiv \frac{n!(n+1)}{2}(c_1+\ldots+c_n) 
\equiv 0 \mod{n!}$$as $n+1$ is even. Thus since $\gcd(n!-1,n!)=1$, we must have $\frac{n!}{2} \equiv 0 \mod{n!}$ which is absurd as $3 \leq \frac{n!}{2}<n!$.
This post has been edited 2 times. Last edited by de-Kirschbaum, Aug 16, 2024, 2:28 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
bjump
999 posts
#56
Y by
Suppose FTSOC there does not exist two permutations $a$, and $b$ such that $S(a)- S(b) \equiv 0  \pmod{n!}$. Observe that $\sum_{a \in \text{perms}} S(a)  = \frac{n!}{2}(n+1)(c_1+c_2 + \cdots + c_n)$ However as $n+1$ is even this is divisible by $n!$. Now notice that since all $n!$ different $S(a)$'s have a distinct remainder modulo $n!$ then $\sum_{a \in \text{perms}} S(a) \equiv \frac{n!(n!-1)}{2} \equiv -\frac{n!}{2} \pmod{n!}$ which is not divisible by $n!$, which contradicts the divisibility from earlier meaning we can conclude.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
RedFireTruck
4220 posts
#57
Y by
It suffices that $S$ over all $n!$ permutations taking on values $0$, $1$, $\dots$, $n!-1$ in $\pmod{n!}$ is impossible.

Let $C$ be the sum of all $c_i$. The sum of $S(a)$ over all permutations $a$ is then equal to $C\frac{n(n+1)}2(n-1)!=C\frac{(n+1)!}2$. The sum of $0$, $1$, $\dots$, $n!-1$ is $\frac{(n!-1)n!}{2}$. Since $n$ is odd, $n!|\frac{(n+1)!}2$ but since $n!-1$ is odd, $n!\not|\frac{(n!-1)n!}2$, which means our original statement is proven, as desired.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
AshAuktober
988 posts
#58
Y by
Assume that all the $S(a)$ are distinct $\pmod{n!}$.

Then they must cover all residues $\pmod{n!}$.
Now,consider $\mathcal{S} = \sum_{a \in [n]} S(a)$.

Note that $\mathcal{S} \equiv 1 + \dots + n! \equiv \frac{(n!)(n!+1)}{2} \equiv \frac{n!}{2} \pmod{n!}.$

But we can also write $\mathcal{S}$ as $$\sum_{i = 1}^n\sum_{a \in [n]} \sum c_ia_i$$$$\equiv (n-1)!c_i \sum_{i = 1}^n i$$$$\equiv 0 \pmod{n!},$$contradiction. $\square$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
numbertheory97
42 posts
#59
Y by
Suppose to the contrary that all $n!$ values of $S(a)$ are distinct mod $n!$. Summing $S$ over all permutations, we have \[\sum_{a \colon [n] \rightarrow [n]} S(a) = \sum_{i = 1}^n ((n - 1)!(1 + 2 + \dots + n)c_i) = \frac{n + 1}{2} \cdot n! \cdot (c_1 + c_2 + \dots + c_n),\]which is divisible by $n!$ since $n$ is odd. But by assumption \[\sum_{a \colon [n] \rightarrow [n]} S(a) \equiv 0 + 1 + \dots + (n! - 1) = \frac{n!(n! - 1)}{2} \equiv \frac{n!}{2} \pmod{n!},\]a contradiction. $\square$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ezpotd
1253 posts
#60
Y by
If this were not true, all the permutations would have distinct $S$ values mod $n!$, implying that their total sum mod $n!$ would be $\frac 12 n! (n! - 1 ) \equiv \frac 12 n! \mod n!$, but we also have $\sum S(p) = (n - 1)! n(n + 1) \frac 12 (\sum c_i) = n! (\frac{n + 1}{2}) \sum c_i \equiv 0 \mod n! $ where the sum is over all permutations $p$, which is a contradiction.
This post has been edited 1 time. Last edited by ezpotd, Oct 16, 2024, 3:29 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Maximilian113
547 posts
#61
Y by
For the sake of a contradiction, suppose otherwise. Then each $S(k)$ has a different residue mod $n!,$ so the sum of all the $S_i$ is $$\frac{n!(n!-1)}{2} \pmod {n!}.$$However, we can also count this as $$(n-1)!\left( \sum^n_{i=1} c_i \right) \left( \sum^n_{i=1} a_i \right) = \frac{(n+1)!}{2} \sum^n_{i=1} c_i \pmod {n!}.$$However, note that since $(n+1)$ is even, $n!$ divides $\frac{(n+1)!}{2}.$ However, $n!-1$ is odd so $n!$ cannot possibly divide $\frac{n!(n!-1)}{2},$ a contradiction. QED
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Anshu_Singh_Anahu
69 posts
#62
Y by
Contradiction and double counting finsihed :)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
lpieleanu
2905 posts
#63 • 1 Y
Y by KevinYang2.71
Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
eg4334
629 posts
#64
Y by
Assume the contrary, thus the $S(a)$ must biject to residues mod $n!$, namely $\{1, 2, \dots, n!\}$. Adding up all $S(a)$ gives $\frac{n(n+1)}{2} (\sum c_i) (n-1)!$ but this is also equal to $\frac{n!(n!+1)}{2}$ mod $n!$. The left side is clearly zero mod $n!$ but the right side is not because $n!+1$ is odd, done.
This post has been edited 2 times. Last edited by eg4334, Dec 9, 2024, 3:24 AM
Reason: typo
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
alexanderhamilton124
388 posts
#65
Y by
Suppose, FTSOC, there doesn't. That means all the permutations form a complete residue system $\mod{n!}$. Summing up all the permutations, we see that:
$$c_1((n - 1)! + (n - 1)! \cdot 2 + ... + (n - 1)! \cdot n) + ... + c_n((n - 1)! + (n - 1)! \cdot 2 + ... + (n - 1)! \equiv \frac{n!(n! + 1)}{2} \mod{n!}$$That means $\frac{n!(n! + 1)}{2} \equiv 0\mod{n!}$, a clear contradiction as $n!$ is even, so we're done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
NerdyNashville
6 posts
#66
Y by
\Well, my solution is similar to others. Let, for the sake of contradiction, no such $a, b$ exist for which:
\[
S(a) \equiv  S(b) \mod n!
\]Thus, all $n!$ permutations will have different residue modulo $n!$. Now,
\[
\sum S(n)_a \equiv 0 + 1 + 2 + \dots + (n! - 1) \equiv \frac{(n! - 1)n!}{2} \mod n!
\]Also,
\[
\sum S(n)_a \equiv \sum_{i=1}^{n} c_i(1 + 2 + 3 + \dots + n)(n-1)! \equiv \sum_{i=1}^{n} c_i \frac{n!(n+1)}{2} \equiv 0 \mod n!
\]as $n$ is odd.

So,
\[
\frac{n!}{2} \equiv 0 \mod n!
\]which is a contradiction.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
NicoN9
113 posts
#67
Y by
Outline:

Assume for a contradiction, and let $a_1,\dots, a_{n!}$ be permutations. Then consider $n!$ permutation to get\[
S(a_1)+\dots S(a_{n!}) = \sum_{i=0}^n c_i(1+\dots+n)(n-1)!=\frac{1}{2}(n+1)!\sum c_i
\]On the other hand, each of $S(a_i)$ are distinct $\pmod {n!}$, so\[
S(a_1)+\dots S(a_{n!}) \equiv \frac{1}{2} n!(n!+1)\pmod {n!}.
\]Now we have\[
\frac{1}{2}(n+1)!\sum c_i
\equiv \frac{1}{2} n!(n!+1)\pmod{n!}.
\]which is a contradiction since LHS is zero but RHS is nonzero.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
gladIasked
648 posts
#68
Y by
There are clearly $n!$ permutations of $\{1, 2, \dots, n\}$. If two of these permutations have $S(a)$ congruent modulo $n!$, then we're done. Now, assume for the sake of contradiction that these permutations are all not congruent modulo $n!$. Then, we must have one permutation corresponding to every residue modulo $n!$. Summing $S(a)$ over all permutations gives us $0+1+2+\dots+(n!-1)\equiv \frac{n!}2\pmod {n!}$.

On the other hand, each number from $1$ to $n$ appears in a given position exactly $(n-1)!$ times; if we sum over each position, we obtain $\sum^{n}_{i=1}c_i(n-1)!(1+2+\dots+n)\equiv 0\pmod {n!}$, a contradiction. Therefore, there must exist two permutations $S(a)$ congruent modulo $n!$. $\blacksquare$
This post has been edited 1 time. Last edited by gladIasked, Apr 14, 2025, 1:41 AM
Z K Y
N Quick Reply
G
H
=
a