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
Inspired by A_E_R
sqing   1
N 2 minutes ago by sqing
Source: Own
Let $ a,b,c,d>0 $ and $ a(b^2+c^2)\geq 4bcd.$ Prove that$$ (a^2+b^2+c^2+d^2)(\frac{1}{a^2}+\frac{1}{b^2}+\frac{1}{c^2}+\frac{1}{d^2})\geq\frac{84}{4}$$Let $ a,b,c,d>0 $ and $ a(b^2+c^2)\geq 3bcd.$ Prove that$$ (a^2+b^2+c^2+d^2)(\frac{1}{a^2}+\frac{1}{b^2}+\frac{1}{c^2}+\frac{1}{d^2})\geq\frac{625}{36}$$
1 reply
sqing
Yesterday at 12:18 PM
sqing
2 minutes ago
pairwise coprime sum gcd
InterLoop   25
N 39 minutes ago by vsamc
Source: EGMO 2025/1
For a positive integer $N$, let $c_1 < c_2 < \dots < c_m$ be all the positive integers smaller than $N$ that are coprime to $N$. Find all $N \ge 3$ such that
$$\gcd(N, c_i + c_{i+1}) \neq 1$$for all $1 \le i \le m - 1$.
25 replies
InterLoop
Yesterday at 12:34 PM
vsamc
39 minutes ago
IMO 2016 Problem 2
shinichiman   63
N 42 minutes ago by gladIasked
Source: IMO 2016 Problem 2
Find all integers $n$ for which each cell of $n \times n$ table can be filled with one of the letters $I,M$ and $O$ in such a way that:
[LIST]
[*] in each row and each column, one third of the entries are $I$, one third are $M$ and one third are $O$; and [/*]
[*]in any diagonal, if the number of entries on the diagonal is a multiple of three, then one third of the entries are $I$, one third are $M$ and one third are $O$.[/*]
[/LIST]
Note. The rows and columns of an $n \times n$ table are each labelled $1$ to $n$ in a natural order. Thus each cell corresponds to a pair of positive integer $(i,j)$ with $1 \le i,j \le n$. For $n>1$, the table has $4n-2$ diagonals of two types. A diagonal of first type consists all cells $(i,j)$ for which $i+j$ is a constant, and the diagonal of this second type consists all cells $(i,j)$ for which $i-j$ is constant.
63 replies
shinichiman
Jul 11, 2016
gladIasked
42 minutes ago
IMO ShortList 2001, combinatorics problem 2
orl   58
N 43 minutes ago 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
43 minutes ago
No more topics!
Saint-Peterburg 2003 [sums divisible by prime p]
Who am I   9
N Sep 20, 2020 by Physicsknight
Source: Saint-Peterburg 2003, 10th grade, last problem, created by Andrey Badzyan
Let $ p$ be a prime number, and $ n$ be an integer such that $ n\geq p$. Assume that $ a_1$, $ a_2$, ..., $ a_n$ are arbitrary integer numbers. For every $ k$, we denote by $ f_k$ the number of $ k$-subsets $ \left\{s_1,s_2,...,s_k\right\}$ of the set $ \left\{1,2,...,n\right\}$ such that the sum $ a_{s_1} + a_{s_2} + ... + a_{s_k}$ is divisible by $ p$. Prove that
$ p\mid \sum_{k = 0}^n\left( - 1\right)^kf_k$.
(Here, we understand $ f_0$ to be $ = 1$.)
9 replies
Who am I
Feb 13, 2008
Physicsknight
Sep 20, 2020
Saint-Peterburg 2003 [sums divisible by prime p]
G H J
Source: Saint-Peterburg 2003, 10th grade, last problem, created by Andrey Badzyan
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Who am I
7 posts
#1 • 7 Y
Y by Exista, Adventure10, ObjectZ, Mango247, and 3 other users
Let $ p$ be a prime number, and $ n$ be an integer such that $ n\geq p$. Assume that $ a_1$, $ a_2$, ..., $ a_n$ are arbitrary integer numbers. For every $ k$, we denote by $ f_k$ the number of $ k$-subsets $ \left\{s_1,s_2,...,s_k\right\}$ of the set $ \left\{1,2,...,n\right\}$ such that the sum $ a_{s_1} + a_{s_2} + ... + a_{s_k}$ is divisible by $ p$. Prove that
$ p\mid \sum_{k = 0}^n\left( - 1\right)^kf_k$.
(Here, we understand $ f_0$ to be $ = 1$.)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Peter Scholze
644 posts
#2 • 6 Y
Y by Kanep, Adventure10, Mango247, and 3 other users
Nice one!

Consider

$ A = \prod_{i = 1}^n (1 - \zeta_p^{a_i})\in \mathbb{Q}(\zeta_p)$

where $ \zeta_p$ is a primitive $ p$-th root of unity.

It is easily seen that

$ p\sum_{k = 0}^n ( - 1)^k f_k = \text{tr}_{\mathbb{Q}(\zeta_p)/\mathbb{Q}} A$.

Here $ \text{tr}_{\mathbb{Q}(\zeta_p)/\mathbb{Q}}$ denotes the trace from $ \mathbb{Q}(\zeta_p)$ to $ \mathbb{Q}$. Now, obviously $ (1 - \zeta_p^{a_i})$ is divisible by $ (1 - \zeta_p)$, thus by the assumption $ n\geq p$, $ (1 - \zeta_p)^p$ divides $ A$. However, $ (1 - \zeta_p)^{p - 1} = pe$ where $ e$ is a unit(I guess $ e = \zeta_p^{(p-1)/2}$). Thus $ 1 - \zeta_p$ divides $ \frac Ap$; it follows that $ 1 - \zeta_p$ divides $ \frac 1p \text{tr}_{\mathbb{Q}(\zeta_p)/\mathbb{Q}} A$. But since $ \frac 1p \text{tr}_{\mathbb{Q}(\zeta_p)/\mathbb{Q}} A$ is rational, we must have that it is divisible by $ p$. The conclusion follows.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
darij grinberg
6555 posts
#3 • 3 Y
Y by Adventure10, Mango247, and 1 other user
I have just uploaded a more elementary (but longer) proof on my webpage:
St. Petersburg 2003: An alternating sum of zero-sum subset numbers.
(Only read until (3), and then from the end of p. 6 on if you know Lemma 2.)
So we have a proof by algebraic number theory and a proof by algebraic combinatorics now. What about one by homology sequences?

darij
This post has been edited 1 time. Last edited by darij grinberg, Nov 18, 2008, 1:09 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Erken
1363 posts
#4 • 3 Y
Y by Adventure10, Mango247, and 1 other user
There is given a short algebraic and elementary proof in the book S-P 2003.Also there is combinatorics proof too,but it is a bit longer.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
darij grinberg
6555 posts
#5 • 3 Y
Y by Adventure10, Mango247, and 1 other user
I don't have the book here, and I am not sure whether I have it in Karlsruhe (I definitely have 2002). Can you kindly look up whether the book tells something about where the problem comes from?

darij
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Erken
1363 posts
#6 • 3 Y
Y by Adventure10, Mango247, and 1 other user
The problems author is Andrey Badzyan,and this problems was used as the last and hardest problem for the 10th grade.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
darij grinberg
6555 posts
#7 • 4 Y
Y by Adventure10, Mango247, and 2 other users
Generalization. Let $ p$ be a prime number, $ \alpha$ an nonnegative integer, $ c$ an integer and $ n$ be an integer such that $ n\geq p^{\alpha}$. Assume that $ a_1$, $ a_2$, ..., $ a_n$ are arbitrary integer numbers. For every $ k$, we denote by $ f_k$ the number of $ k$-subsets $ \left\{s_1,s_2,...,s_k\right\}$ of the set $ \left\{1,2,...,n\right\}$ such that the sum $ a_{s_1} + a_{s_2} + ... + a_{s_k}-c$ is divisible by $ p^{\alpha}$. Prove that
$ p\mid \sum_{k = 0}^n\left( - 1\right)^kf_k$.
(Here, we understand $ f_0$ to be $ = 1$.)
This post has been edited 1 time. Last edited by darij grinberg, Jul 3, 2021, 6:06 PM
Reason: Hereby -> Here
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Erken
1363 posts
#8 • 7 Y
Y by Adventure10, Mango247, and 5 other users
darij grinberg wrote:
Generalization. Let $ p$ be a prime number, $ \alpha$ an nonnegative integer, $ c$ an integer and $ n$ be an integer such that $ n\geq p^{\alpha}$. Assume that $ a_1$, $ a_2$, ..., $ a_n$ are arbitrary integer numbers. For every $ k$, we denote by $ f_k$ the number of $ k$-subsets $ \left\{s_1,s_2,...,s_k\right\}$ of the set $ \left\{1,2,...,n\right\}$ such that the sum $ a_{s_1} + a_{s_2} + ... + a_{s_k} - c$ is divisible by $ p^{\alpha}$. Prove that
$ p\mid \sum_{k = 0}^n\left( - 1\right)^kf_k$.
(Here, we understand $ f_0$ to be $ = 1$.)
The following proof is based on a solution given at the original book.
Proof: Denote $ S = \sum_{k = 0}^n\left( - 1\right)^kf_k$.
WLOG assume that all $a_i$ are $\geq 0$ and that $0\leq c<p^{\alpha}$.
Consider polynomial $ f(x) = (1 - x^{a_1})(1 - x^{a_2})\dots(1 - x^{a_n})$
We need to prove that the sum of coefficients by the $ x^c,x^{p^{\alpha} + c},x^{2p^{\alpha} + c}\dots$ (this sum is $S$) is divisible by $ p$.
Indeed since $ x^{kp^{\alpha} + c}\equiv x^c \mod x^{p^{\alpha}}-1$ and if $ x^{d}\equiv x^c \mod x^{p^{\alpha}}-1$ then $ d = kp^{\alpha} + c$,so $ S$ is equal to the coefficient by $ x^c$ in polynomial $ r(x)$,where
$ f(x) = q(x)(x^{p^{\alpha}} - 1) + r(x)$.
We will prove that all coefficients in $ r(x)$ are divisible by $ p$.Indeed,since $ n\geq p^{\alpha}$,then
$ f(x)$ is divisible by $ (x - 1)^{p^{\alpha}}$.
Then $ f(x) = (x - 1)^{p^{\alpha}}h(x) = (x^{p^{\alpha}} - 1)h(x) + ph(x)r(x)$.
The last equality follows from the well-known fact:
$ p\mid \binom{p^{\alpha}}{i}$,where $ 1\leq i\leq p^{\alpha} - 1$.
Now it is enough to prove that the coefficients in $ ph(x)r(x)$ modulo $ x^{p^{\alpha}} - 1$ are divisible by $ p$,which is trivially true.
This post has been edited 2 times. Last edited by darij grinberg, Jul 3, 2021, 6:07 PM
Reason: Hereby -> Here (in quote)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
quangpbc
533 posts
#9 • 1 Y
Y by Adventure10
Very nice Erken! :)

And this method (COMPLEX COMBINATORICS) is very useful and strong.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Physicsknight
635 posts
#10
Y by
We need to prove $(1-y^{a_1}),\hdots,(1-y^{a_n})=0$ in $\frac {\mathbb Z[y]}{(p,y^{p-1})}. $
$(1-y)^p=0\in\frac {\mathbb Z[y]}{(p,y^{p-1})}\,\text{if}\, p=2\,\text {also}. $
Note that, since $p\le n, $ $(1-y)^p\mid\text {left hand side}\text {in}\,\mathbb Z [y]. $
Z K Y
N Quick Reply
G
H
=
a