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
2025 Caucasus MO Juniors P7
BR1F1SZ   3
N a few seconds ago by Bergo1305
Source: Caucasus MO
It is known that from segments of lengths $a$, $b$ and $c$, a triangle can be formed. Could it happen that from segments of lengths $$\sqrt{a^2 + \frac{2}{3} bc},\quad \sqrt{b^2 + \frac{2}{3} ca}\quad \text{and} \quad \sqrt{c^2 + \frac{2}{3} ab},$$a right-angled triangle can be formed?
3 replies
BR1F1SZ
Mar 26, 2025
Bergo1305
a few seconds ago
Inspired by old results
sqing   0
6 minutes ago
Source: Own
Let $ a,b\geq 0 $ and $ a+b=2. $ Prove that
$$a^2b^2( \frac 32a^2+ ab ) \leq 80\sqrt{5}-176$$$$a^2b^2( \frac 38a^2+ ab ) \leq \frac{64}{125}(5- \sqrt{5})$$$$a^2b^2( \frac 34a^2+ ab ) \leq 1088-768\sqrt{2}$$
0 replies
sqing
6 minutes ago
0 replies
Inequalities
Scientist10   5
N 11 minutes ago by Bergo1305
If $x, y, z \in \mathbb{R}$, then prove that the following inequality holds:
\[
\sum_{\text{cyc}} \sqrt{1 + \left(x\sqrt{1 + y^2} + y\sqrt{1 + x^2}\right)^2} \geq \sum_{\text{cyc}} xy + 2\sum_{\text{cyc}} x
\]
5 replies
Scientist10
Apr 23, 2025
Bergo1305
11 minutes ago
On a conditon for Hamilton Graphs
flower417477   0
28 minutes ago
Prove that: for a graph $G$,if for any vertex $u,v,w$ for which $dist(u,v)=2$ and $uw,vw\in E(G)$ there's $d(u)+d(v)\geq|N(u)\cup N(v)\cup N(w)|$,then $G$ is a Hamiltonian graph
0 replies
flower417477
28 minutes ago
0 replies
No more topics!
European Mathematical Cup 2016 senior division problem 2
steppewolf   6
N Apr 2, 2025 by SimplisticFormulas
For two positive integers $a$ and $b$, Ivica and Marica play the following game: Given two piles of $a$
and $b$ cookies, on each turn a player takes $2n$ cookies from one of the piles, of which he eats $n$ and puts $n$ of
them on the other pile. Number $n$ is arbitrary in every move. Players take turns alternatively, with Ivica going
first. The player who cannot make a move, loses. Assuming both players play perfectly, determine all pairs of
numbers $(a, b)$ for which Marica has a winning strategy.

Proposed by Petar Orlić
6 replies
steppewolf
Dec 31, 2016
SimplisticFormulas
Apr 2, 2025
European Mathematical Cup 2016 senior division problem 2
G H J
G H BBookmark kLocked kLocked NReply
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
steppewolf
351 posts
#1 • 1 Y
Y by Adventure10
For two positive integers $a$ and $b$, Ivica and Marica play the following game: Given two piles of $a$
and $b$ cookies, on each turn a player takes $2n$ cookies from one of the piles, of which he eats $n$ and puts $n$ of
them on the other pile. Number $n$ is arbitrary in every move. Players take turns alternatively, with Ivica going
first. The player who cannot make a move, loses. Assuming both players play perfectly, determine all pairs of
numbers $(a, b)$ for which Marica has a winning strategy.

Proposed by Petar Orlić
This post has been edited 2 times. Last edited by steppewolf, Jan 1, 2017, 1:17 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ThE-dArK-lOrD
4071 posts
#3 • 2 Y
Y by Adventure10, Mango247
We will show that Marica has winning strategy iff $|a-b|\leqslant 1$ by induction on $a+b$
In other words, $|a-b|\leqslant 1$ is losing position; the player who receive it has no wining strategy.
The base case is obvious.
For induction step, suppose the statement is true for $a+b\leqslant t$.
Consider when Ivica start with two piles of $a$ and $b$ that $|a-b|\leqslant 1$ and $a+b=t+1$
We have two cases:
  1. $t+1$ is even. We get that $a=b=(t+1)/2$.
    Then Ivica will take $2n$ cookies and the numbers of cookies in two piles become $a'=(t+1)/2+n$ and $b'=(t+1)/2-2n$.
  2. $t+1$ is odd. WLOG that $a=(t+2)/2,b=t/2$. We have two sub-cases
    • Ivica take $2n$ cookies from the $a$-cookie pile.
      The number of cookies become $a'=(t+2-4n)/2$ and $b'=(t+2n)/2$.
    • Ivica take $2n$ cookies from the $b$-cookie pile.
      The number of cookies become $a'=(t+2+2n)/2$ and $b'=(t-4n)/2$.
In both cases, we have $|a'-b'|> 1$ and $a'+b'\leqslant t$.
By induction hypothesis, this situation is a winning position, so Marica has the winning strategy.

We also have to show that when $|a-b|>1$ and $a+b=t+1$, Ivica have winning strategy.
WLOG $a>b$. Let $a=b+k$, then take $2m=2\lfloor (k+1)/3 \rfloor$ cookies from $a$-cookie pile.
This yields $|a'-b'|=|(b+k-2m)-(b+m)|=|k-3m|\in \{ -1,0,1\}$ and $a'+b'=t+1-m\leq t$.
Again, by induction hypothesis, this situation is a losing position, so Ivica has the winning strategy.
This post has been edited 3 times. Last edited by ThE-dArK-lOrD, Jan 17, 2019, 2:44 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
navi_09220114
477 posts
#4 • 2 Y
Y by Adventure10, Mango247
Happy 2017! :-)

Basically its all about guessing the correct answer. To do so I basically bashed all such pairs with $max(a,b)\le 6$, failed a few conjectures with counterexamples, and arrive at the final answer. Once you guessed it correctly its quite trivial.

The answer is all $|a-b|\le 1$. It is clear that $(1,0), (1,1)$ are both good. Now the winning strategy given any pair $(a,b)$ with $|a-b|\ge 2$ is to choose some $n\ge 1$ s.t $|(a-2n)-(b+n)|=|a-b-3n|\le 1$ or $|(a+n)-(b-2n)|=|a-b+3n|\le 1$. You can choose to make a move at $a$ or $b$, so we just assume that $n$ is any non-zero integer (then we make a move at $a$ or $b$ according to the sign of $n$). Such integer $n\neq 0$ is possible to choose since when you run the numbers $a-b+3n$ along the integers $n$, exactly one such $n$ will have $a-b+3n$ falls either $-1, 0, 1$.

Conversely, if $|a-b|\le 1$, then no other integers $n\neq 0$ can give $a-b+3n$ equal to $-1, 0, 1$, thus it falls off to bad numbers. So with this strategy, any player holding a good pair can give his enemy a bad number, and the enemy cannot retain a new bad pair for the player, so the player wins.
This post has been edited 1 time. Last edited by navi_09220114, Jan 1, 2017, 1:04 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MathInfinite
187 posts
#5 • 3 Y
Y by Aryan-23, Adventure10, Mango247
steppewolf wrote:
For two positive integers $a$ and $b$, Ivica and Marica play the following game: Given two piles of $a$
and $b$ cookies, on each turn a player takes $2n$ cookies from one of the piles, of which he eats $n$ and puts $n$ of
them on the other pile. Number $n$ is arbitrary in every move. Players take turns alternatively, with Ivica going
first. The player who cannot make a move, loses. Assuming both players play perfectly, determine all pairs of
numbers $(a, b)$ for which Marica has a winning strategy.

Proposed by Petar Orlić


Here’s my solution.

We claim that Marica can win iff $|a-b| \leq 1$.

Call a position good if $|a-b| \leq 1$ at that instant. Else call it bad.

CLAIM 1: A person in a bad position must always leave behind a good position to the opponent.

PROOF: Suppose there are $(a,b)$ cookies obeying $|a-b| \leq 1$ in piles $A,B$ respectively. Suppose the person removes $2k$ cookies from one pile and stacks $k$ in another. WLOG, let the unlucky pile ( the one from which cookies are removed ) be $A$. So $(a,b) \rightarrow (a-2k,b+k)$. Thus $|a-2k-b+k| > 1$.

CLAIM 2: A person in a good position can leave behind a bad position for the opponent.

PROOF: Suppose there are $(a,b)$ cookies obeying $|a-b| \leq 1$ in piles $A,B$ respectively. The person can then choose some $n\ge 1$ s.t $|(a-2n)-(b+n)|=|a-b-3n|\le 1$ or $|(a+n)-(b-2n)|=|a-b+3n|\le 1$. This is possible since $|a-b| \geq 2$.

CLAIM 3: A person in a good position can never lose.

PROOF: Note that a person in a good position can ever have $|a-b| \leq 1$ by definition. So, that person. Note that a person loses iff $|a-b| \leq 1$ in his turn at some point of time ( more strongly iff $(a,b) = (1,0),(1,1),(0,0),(0,1)$ at some point of time ). By Claim $1$ and Claim $2$, we can easily see that Claim $3$ follows.

Thus, our desired conclusion follows from these $3$ claims.
This post has been edited 2 times. Last edited by MathInfinite, Feb 13, 2019, 10:14 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
L567
1184 posts
#6 • 3 Y
Y by Mango247, Mango247, Mango247
Nice problem. In my opinion, the only difficulty of the problem is guessing when Marica can win, which can only be done by bashing out the first few cases, then you realise that only when the number of cookies in both piles is almost same, only them Marica wins. Once you figure out the answer, proving it works is pretty easy.

Call the piles of cookies $\emph{nice}$ if the number of cookies differ by at most $1$ and $\emph{horrible}$ otherwise

The answer is that Marica can win if and only if the piles are nice.

Suppose the piles have $a,b$ cookies respectively and $|a-b| \le 1$. Then, Ivica can change it from $(a,b) \rightarrow (a-2n, b+n)$. Then, Marica removes $2n$ cookies from the second pile to change it $(a-2n, b+n) \rightarrow (a-n, b-n)$, which is also nice. So, Marica can always ensure that the piles after her turn are nice i.e. she only plays when the piles are horrible. But if the piles are horrible, then some pile has to have at least $2$ cookies more than the other one and so Marica can always play. So, Marica cannot lose and since the number of cookies strictly decreases every move, Marica must eventually win.

Now, suppose the piles of cookies are horrible. I will show that Ivica can convert this piles into nice ones, in which case the roles of Marica and Ivica will be swapped, and so Ivica will win by using the strategy shown above.

Suppose the number of cookies in the piles are $(a+n,a)$ with $n \ge 2$. If $n = 3k$, then remove $2k$ from $a+n$ to convert $(a+n, a) = (a+3k,a) \rightarrow (a+k, a+k)$, which is indeed a nice pair of piles.

If $n = 3k+1$, then Ivica does $(a+3k+1, a) \rightarrow (a+k+1, a+k)$ by removing $2k$ cookies from the first pile.

If $n = 3k+2$, then Ivica does $(a+3k+2, a) \rightarrow (a+k, a+k+1)$ by removing $2k+2$ cookies from the first pile. Therefore, Ivica can always convert horrible piles into nice ones and win.

So, Marica wins if and only if the piles are $\emph{nice}$ i.e. the number of cookies in the piles differ by at most $1$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
alexanderhamilton124
389 posts
#7 • 1 Y
Y by L13832
Claim 1: If $a = b$, then Marica wins.
Note that Marica wins for the case $\{1, 1\}$, as well as for the case $\{2, 2\}$, so say she wins for $\{1, 1\}, \dots, \{k - 1, k - 1\}$, where $k \geq 3$. We now prove Marica wins for $k$ as well. Say Ivan performs a move, making the cookies in each pile to $\{k - 2x, k + x\}$. Now, Marica simply turns this set to $\{k - x, k - x\}$, and since $k - x \leq k - 1$, we are done by our inductive hypothesis (along with the fact that it is Ivan's move again).

Claim 2: If $a, b$ are consecutive, then Marica wins as well.
Note that Marica wins for $\{1, 2\}$, as well as $\{2, 3\}$. Say Marica wins for $\{1, 2\}, \dots, \{k - 1, k\}$, where $k \geq 3$. We now prove Marica wins for $\{k, k + 1\}$ as well. Say Ivan performs a move, making the cookies in each pile to $\{k - 2x, k + 1 + x\}$. Now, Marica just reduces it to $\{k - x, k + 1 - x\}$, and since it's a smaller set of consecutive numbers we are done by our inductive hypothesis (if Ivan performs $k + x, k + 1 - x$, just replicate our method).

Claim 3: If none of these are true, then Ivan wins. (WLOG $a > b$ here)
If $3\mid a - b$, take $x = \frac{a - b}{3}$, and Ivan just performs the move $a - 2x, b + x$, reducing it to $\{\frac{a + 2b}{3}, \frac{a + 2b}{3}\}$, which are equal, so Ivan can just play as Marica here and win the game.

If $a - b \equiv 1\mod{3}$, take $x = \frac{a - b - 1}{3}$, yielding $\{\frac{a + 2b + 2}{3}, \frac{a + 2b - 1}{3}\}$, which are consecutive so Ivan just plays as Marica again, winning him the game.

If $a - b \equiv 2\mod{3}$, take $x = \frac{a - b + 1}{3}$, giving $\{\frac{2a + b - 1}{3}, \frac{2a + b + 2}{3}\}$, which are consecutive so Ivan wins again.

Therefore, our answer is when $a = b$, or when $a, b$ are consecutive.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
SimplisticFormulas
99 posts
#8
Y by
yay here from rushils book
Z K Y
N Quick Reply
G
H
=
a