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
TST Junior Romania 2025
ant_   1
N a minute ago by wassupevery1
Source: ssmr
Consider the isosceles triangle $ABC$, with $\angle BAC > 90^\circ$, and the circle $\omega$ with center $A$ and radius $AC$. Denote by $M$ the midpoint of side $AC$. The line $BM$ intersects the circle $\omega$ for the second time in $D$. Let $E$ be a point on the circle $\omega$ such that $BE \perp AC$ and $DE \cap AC = {N}$. Show that $AN = 2AB$.
1 reply
ant_
Yesterday at 5:01 PM
wassupevery1
a minute ago
Very tight inequalities
KhuongTrang   2
N 29 minutes ago by SunnyEvan
Source: own
Problem. Given non-negative real numbers $a,b,c$ satisfying $ab+bc+ca=1.$ Prove that $$\color{black}{\frac{1}{35a+12b+2}+\frac{1}{35b+12c+2}+\frac{1}{35c+12a+2}\ge \frac{4}{39}.}$$$$\color{black}{\frac{1}{4a+9b+6}+\frac{1}{4b+9c+6}+\frac{1}{4c+9a+6}\le \frac{2}{9}.}$$When does equality hold?
2 replies
KhuongTrang
May 17, 2024
SunnyEvan
29 minutes ago
Sum of First, Second, and Third Powers
Brut3Forc3   47
N 42 minutes ago by cubres
Source: 1973 USAMO Problem 4
Determine all roots, real or complex, of the system of simultaneous equations
\begin{align*} x+y+z &= 3, \\
x^2+y^2+z^2 &= 3, \\
x^3+y^3+z^3 &= 3.\end{align*}
47 replies
Brut3Forc3
Mar 7, 2010
cubres
42 minutes ago
Modified Sum of floors
prMoLeGend42   2
N an hour ago by cubres
Find the closed form of : $\sum _{k=0}^{n-1} \left\lfloor \frac{ak+b}{n}\right \rfloor$ where $\gcd(a,n)=1$
2 replies
+1 w
prMoLeGend42
Yesterday at 9:09 AM
cubres
an hour ago
No more topics!
Peter and Bob
mathuz   16
N Oct 14, 2023 by chakrabortyahan
Source: All Russian 2014 Grade 11 Day 1 P2
Peter and Bob play a game on a $n\times n$ chessboard. At the beginning, all squares are white apart from one black corner square containing a rook. Players take turns to move the rook to a white square and recolour the square black. The player who can not move loses. Peter goes first. Who has a winning strategy?
16 replies
mathuz
Apr 30, 2014
chakrabortyahan
Oct 14, 2023
Peter and Bob
G H J
G H BBookmark kLocked kLocked NReply
Source: All Russian 2014 Grade 11 Day 1 P2
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mathuz
1512 posts
#1 • 2 Y
Y by Adventure10, Mango247
Peter and Bob play a game on a $n\times n$ chessboard. At the beginning, all squares are white apart from one black corner square containing a rook. Players take turns to move the rook to a white square and recolour the square black. The player who can not move loses. Peter goes first. Who has a winning strategy?
This post has been edited 1 time. Last edited by mathuz, May 3, 2014, 1:57 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
chaotic_iak
2932 posts
#2 • 3 Y
Y by mathuz, Adventure10, Mango247
Where are the rooks? Do Peter and Bob control one rook each or one rook together or some other number of rooks?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sayakalah
5 posts
#3 • 3 Y
Y by mathuz, Adventure10, and 1 other user
"the board is white(all cells), only for the CORNER cells- black and they have ROOKS.", I think Peter and Bob are allowed to move one of the rooks in each turn, and there is no rooks on the white cells, but we need to confirm this to the author.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mathuz
1512 posts
#4 • 2 Y
Y by Adventure10, Mango247
we have $1$-corner cell and $1$ rooks on the corner cell.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mathuz
1512 posts
#5 • 2 Y
Y by Adventure10, Mango247
chaotic_iak wrote:
Where are the rooks? Do Peter and Bob control one rook each or one rook together or some other number of rooks?
You are right! Sorry I have mistake! Edited. :)

On the board there is one rook on corner cell.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sabbasi
248 posts
#6 • 1 Y
Y by Adventure10
Someone please check this solution:

Peter can always win by always moving the maximum amount that he can vertically.

Firstly we can show that every time Bob moves he does so horizontally and the black squares that he draws all either share an edge with the edge of the board or with black squares he previously drew. To prove this, note that it is true for the first move since Peter goes to the end of the board. Now consider some point in the game after Peter has made a move. If Peter reached the end of the board, Bob must move along the end. Otherwise Peter must have reached a black square along a row drawn by Bob. The drawing of this row had a vertical column drawn by Peter before and after it, so all of Bob's squares will be adjacent to the horizontal row (since he is bounded by the vertical columns).

As a result of this, Bob's moves will always stack along the top and bottom of the board, so in other words, no square drawn by Bob can be untouched by the board or another square drawn by him both above it and below it. So this means that when Peter moves, he will always completely fill his column.

The only other thing we have to show is that Peter always will have a column to fill. This is true because if Peter reaches a column he hasn't touched yet, at most n - 1 moves must have passed (since otherwise he moved through every column) but that means Bob has only drawn n-1 rows, so there's no way that this new column could be filled after Bob's move.

Peter always has a move so Bob must be the loser.

Solution 2 : I also just realized that Peter always cuts off a new uncolored section with more rows and columns, which will eventually lead to his win since Bob can only win after Peter's move if Peter cuts off a 1xn rectangle. So I think this works too
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
johnkwon0328
188 posts
#7 • 1 Y
Y by Adventure10
sabbasi wrote:
Someone please check this solution:

Peter can always win by always moving the maximum amount that he can vertically.

I think your solution is incorrect. Bob can also be a loser considering n=1.

My solution:

n is odd -> Bob wins, n is even -> Peter wins

case 1: n is even

Peter can always win by moving rook from (i, j) to (n+1-i, j) every time.

case 2: n is odd

WLOG we can assume that at the beginning, rook is on (n,1), and Peter moved it to (n,2).
Bob can win by using the following method. Assume that Peter placed the rook on (i, j).
If i<n, Bob can place rook on (n-i, j).
If i=n, Bob can place rook on nth column, because on Bob's turn, number of white cells in nth column is odd.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sabbasi
248 posts
#8 • 2 Y
Y by Adventure10, Mango247
n=1 is an exception but in every other case that I tried Peter wins using this strategy.
Also you should provide some proof for your strategies since it's not obvious why/if they work.

Here I'll prove that Peter can win in a 3x3
label the cells from (1,1) to (3,3). Peter starts by going from (1,1) to (1,3).
Case 1: Bob goes to (2,3)
Then Peter moves to (2,1), Bob is forced to move to (3,1) then Peter moves to (3,3) and wins
Case 2: Bob goes to (3,3)
Then peter moves to (3,1) Bob is forced to go to (2,1) then Peter moves to (2,3) and wins.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
BSJL
641 posts
#9 • 2 Y
Y by Adventure10, Mango247
Do you consider the case that Bob goes to (1,2)? :wink:
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sabbasi
248 posts
#10 • 2 Y
Y by Adventure10, Mango247
@BSJL

I do not understand your concern. I suspect there is confusion in understanding the problem. Both players move the rook, and every square the rook moves over turns black, and black squares can't be moved on at all times. At least that is what the version here would suggest: http://www.artofproblemsolving.com/Forum/viewtopic.php?f=125&t=587460 but that version was the only way I could think of playing anyways. Since if paths are not drawn, it is only dependent on parity, and if paths are self intersecting the game doesn't need to end. So clearly (2,3) and (3,3) are the only possible moves by Bob.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
johnkwon0328
188 posts
#11 • 1 Y
Y by Adventure10
sabbasi wrote:
At least that is what the version here would suggest: http://www.artofproblemsolving.com/Forum/viewtopic.php?f=125&t=587460 but that version was the only way I could think of playing anyways.

Thanks for the link. I had some kind of confusion understanding this problem. I didn't realized that the path of the rook was colored.(the problem wasn't clear in the version of this post, actually)

But I cannot understand why it depends on parity, if the path is not drawn. I think that this game can come to the end before every cell is colored...
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sabbasi
248 posts
#12 • 1 Y
Y by Adventure10
Sorry that was a comment I made because I thought I had a strategy. But yeah this problem statement isn't clear.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Niosha
18 posts
#13 • 4 Y
Y by SockFoot, newovertimee, Alireza_Amiri, Adventure10
I'm agree with Johnkwon. I had another strategy:
If n is odd: Bob wins. it's enough to divide our chessboard into $1\times 2$ rectangles. And then when Peter moves Bob can move to the second square.
If n is even: Peter wins . Like first situation just in the first move Peter goes to the (1,n) and then we should divide remain squares into $1\times 2$ rectangles. So Peter wins :whistling:
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mathtastic
3258 posts
#14 • 1 Y
Y by Adventure10
In fact, they shouldn't divide the board into dominoes because that makes their strategies obvious to the other player. The players can just pair the squares randomly :).
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
PCChess
548 posts
#15 • 1 Y
Y by Mango247
I claim that Peter wins if $n$ is even and Bob wins when $n$ is odd. For simplicity, let the squares be denoted $(i,j)$, where a square is located in the $i$th column from the left and $j$th row from the bottom. WLOG, let the rook start at $(n,n)$ and let Peter's first move be along the top row.

First we will prove that Peter wins when $n$ is even. Consider the vertical line $m$ between the $n/2$ and $n/2+1$ column. For whatever Bob's first move is, Peter will just move the rook to the square that is the reflection of Bob's last move across $m$. Peter's move is always legal, since each square has exactly one reflection and each square is in the same row as its reflection across $m$. Since Peter can always play the mirrored square of Bob, Peter will win.

Now consider when $n$ is odd. After Peter's first move, let Bob move to another square in the top row. Consider the horizontal line $\ell$ that is between the $(n-1)/2$ and $(n+1)/2$ row. If Peter moves to a square in a top row, Bob will move to a square in the top row. If Peter moves to a square not in the top row, Bob will move to the reflection of Peter's square over line $\ell$. Note that there are an even number of squares in the top row if the starting square $(n,n)$ is not considered, so if Peter moves to a square in the top row Bob will always be able to move to a square in the top row. Moreover, for the squares not in the top row, each square corresponds to exactly one another square that is its reflection over $\ell$, and these two squares are always in the same column. Hence, if Peter moves to a square not in the top row, Bob will always be able to move to its reflection across $\ell$. Since Bob always has a response to whatever square Peter moves to, Bob wins for odd $n$.
This post has been edited 1 time. Last edited by PCChess, Mar 30, 2021, 4:14 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
IAmTheHazard
5001 posts
#16 • 7 Y
Y by centslordm, Fatemeh06, EpicNumberTheory, KK_1729, quantam13, Eka01, guruguha9
El clásico

Peter wins iff $n$ is even. If $n$ is even, his strategy is to divide the board into $1 \times 2$ rectangles; whenever a rook enters a rectangle (including on the first move) he moves it to the other cell. If $n$ is odd, Bob's strategy is to divide the board except for the starting cell into $1 \times 2$ rectangles and employ the same strategy. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
chakrabortyahan
377 posts
#17 • 1 Y
Y by iamahana008
I saw this problem 3 times last week USSR 78, Bmo 1 2023 and now this
Peter has a winning strategy if $n$ is even and Bob has one if $n$ is odd. We break the whole board into $2 \cdot 1 $ dominoes and note that if $n$ is even then $\text{Peter}$ has always a move if $\text{Bob}$ has a move because the square where $\text{Bob}$ moves is part of some domino and by his move $\text{Bob}$ bridges two dominoes always. So, B will be exhausted of his moves.
Similarly, for $n$ odd $\text{Bob}$ has a similar winning strategy .
Z K Y
N Quick Reply
G
H
=
a