Summer is a great time to explore cool problems to keep your skills sharp!  Schedule a class today!

G
Topic
First Poster
Last Poster
k a June Highlights and 2025 AoPS Online Class Information
jlacosta   0
Jun 2, 2025
Congratulations to all the mathletes who competed at National MATHCOUNTS! If you missed the exciting Countdown Round, you can watch the video at this link. Are you interested in training for MATHCOUNTS or AMC 10 contests? How would you like to train for these math competitions in half the time? We have accelerated sections which meet twice per week instead of once starting on July 8th (7:30pm ET). These sections fill quickly so enroll today!

[list][*]MATHCOUNTS/AMC 8 Basics
[*]MATHCOUNTS/AMC 8 Advanced
[*]AMC 10 Problem Series[/list]
For those interested in Olympiad level training in math, computer science, physics, and chemistry, be sure to enroll in our WOOT courses before August 19th to take advantage of early bird pricing!

Summer camps are starting this month at the Virtual Campus in math and language arts that are 2 - to 4 - weeks in duration. Spaces are still available - don’t miss your chance to have a transformative summer experience. 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 upcoming events:
[list][*]June 5th, Thursday, 7:30pm ET: Open Discussion with Ben Kornell and Andrew Sutherland, Art of Problem Solving's incoming CEO Ben Kornell and CPO Andrew Sutherland host an Ask Me Anything-style chat. Come ask your questions and get to know our incoming CEO & CPO!
[*]June 9th, Monday, 7:30pm ET, Game Jam: Operation Shuffle!, Come join us to play our second round of Operation Shuffle! If you enjoy number sense, logic, and a healthy dose of luck, this is the game for you. No specific math background is required; all are welcome.[/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, Jun 15 - Oct 12
Monday, Jun 30 - Oct 20
Wednesday, Jul 16 - Oct 29
Sunday, Aug 17 - Dec 14
Tuesday, Aug 26 - Dec 16
Friday, Sep 5 - Jan 16
Monday, Sep 8 - Jan 12
Tuesday, Sep 16 - Jan 20 (4:30 - 5:45 pm ET/1:30 - 2:45 pm PT)
Sunday, Sep 21 - Jan 25
Thursday, Sep 25 - Jan 29
Wednesday, Oct 22 - Feb 25
Tuesday, Nov 4 - Mar 10
Friday, Dec 12 - Apr 10

Prealgebra 2 Self-Paced

Prealgebra 2
Monday, Jun 2 - Sep 22
Sunday, Jun 29 - Oct 26
Friday, Jul 25 - Nov 21
Sunday, Aug 17 - Dec 14
Tuesday, Sep 9 - Jan 13
Thursday, Sep 25 - Jan 29
Sunday, Oct 19 - Feb 22
Monday, Oct 27 - Mar 2
Wednesday, Nov 12 - Mar 18

Introduction to Algebra A Self-Paced

Introduction to Algebra A
Sunday, Jun 15 - Oct 12
Thursday, Jun 26 - Oct 9
Tuesday, Jul 15 - Oct 28
Sunday, Aug 17 - Dec 14
Wednesday, Aug 27 - Dec 17
Friday, Sep 5 - Jan 16
Thursday, Sep 11 - Jan 15
Sunday, Sep 28 - Feb 1
Monday, Oct 6 - Feb 9
Tuesday, Oct 21 - Feb 24
Sunday, Nov 9 - Mar 15
Friday, Dec 5 - Apr 3

Introduction to Counting & Probability Self-Paced

Introduction to Counting & Probability
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
Wednesday, Jul 2 - Sep 17
Sunday, Jul 27 - Oct 19
Monday, Aug 11 - Nov 3
Wednesday, Sep 3 - Nov 19
Sunday, Sep 21 - Dec 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Friday, Oct 3 - Jan 16
Tuesday, Nov 4 - Feb 10
Sunday, Dec 7 - Mar 8

Introduction to Number Theory
Monday, Jun 9 - Aug 25
Sunday, Jun 15 - Sep 14
Tuesday, Jul 15 - Sep 30
Wednesday, Aug 13 - Oct 29
Friday, Sep 12 - Dec 12
Sunday, Oct 26 - Feb 1
Monday, Dec 1 - Mar 2

Introduction to Algebra B Self-Paced

Introduction to Algebra B
Wednesday, Jun 4 - Sep 17
Sunday, Jun 22 - Oct 19
Friday, Jul 18 - Nov 14
Thursday, Aug 7 - Nov 20
Monday, Aug 18 - Dec 15
Sunday, Sep 7 - Jan 11
Thursday, Sep 11 - Jan 15
Wednesday, Sep 24 - Jan 28
Sunday, Oct 26 - Mar 1
Tuesday, Nov 4 - Mar 10
Monday, Dec 1 - Mar 30

Introduction to Geometry
Monday, Jun 16 - Dec 8
Friday, Jun 20 - Jan 9
Sunday, Jun 29 - Jan 11
Monday, Jul 14 - Jan 19
Wednesday, Aug 13 - Feb 11
Tuesday, Aug 26 - Feb 24
Sunday, Sep 7 - Mar 8
Thursday, Sep 11 - Mar 12
Wednesday, Sep 24 - Mar 25
Sunday, Oct 26 - Apr 26
Monday, Nov 3 - May 4
Friday, Dec 5 - May 29

Paradoxes and Infinity
Mon, Tue, Wed, & Thurs, Jul 14 - Jul 16 (meets every day of the week!)

Intermediate: Grades 8-12

Intermediate Algebra
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
Friday, Aug 8 - Feb 20
Tuesday, Aug 26 - Feb 24
Sunday, Sep 28 - Mar 29
Wednesday, Oct 8 - Mar 8
Sunday, Nov 16 - May 17
Thursday, Dec 11 - Jun 4

Intermediate Counting & Probability
Sunday, Jun 22 - Nov 2
Sunday, Sep 28 - Feb 15
Tuesday, Nov 4 - Mar 24

Intermediate Number Theory
Sunday, Jun 1 - Aug 24
Wednesday, Jun 18 - Sep 3
Wednesday, Sep 24 - Dec 17

Precalculus
Sunday, Jun 1 - Nov 9
Monday, Jun 30 - Dec 8
Wednesday, Aug 6 - Jan 21
Tuesday, Sep 9 - Feb 24
Sunday, Sep 21 - Mar 8
Monday, Oct 20 - Apr 6
Sunday, Dec 14 - May 31

Advanced: Grades 9-12

Olympiad Geometry
Tuesday, Jun 10 - Aug 26

Calculus
Wednesday, Jun 25 - Dec 17
Sunday, Sep 7 - Mar 15
Wednesday, Sep 24 - Apr 1
Friday, Nov 14 - May 22

Group Theory
Thursday, Jun 12 - Sep 11

Contest Preparation: Grades 6-12

MATHCOUNTS/AMC 8 Basics
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!)
Sunday, Aug 17 - Nov 9
Wednesday, Sep 3 - Nov 19
Tuesday, Sep 16 - Dec 9
Sunday, Sep 21 - Dec 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Monday, Oct 6 - Jan 12
Thursday, Oct 16 - Jan 22
Tues, Thurs & Sun, Dec 9 - Jan 18 (meets three times a week!)

MATHCOUNTS/AMC 8 Advanced
Wednesday, Jun 11 - Aug 27
Sunday, Jun 22 - Sep 21
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)
Sunday, Aug 17 - Nov 9
Tuesday, Aug 26 - Nov 11
Thursday, Sep 4 - Nov 20
Friday, Sep 12 - Dec 12
Monday, Sep 15 - Dec 8
Sunday, Oct 5 - Jan 11
Tues, Thurs & Sun, Dec 2 - Jan 11 (meets three times a week!)
Mon, Wed & Fri, Dec 8 - Jan 16 (meets three times a week!)

AMC 10 Problem Series
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!)
Sunday, Aug 10 - Nov 2
Thursday, Aug 14 - Oct 30
Tuesday, Aug 19 - Nov 4
Mon & Wed, Sep 15 - Oct 22 (meets twice a week!)
Mon, Wed & Fri, Oct 6 - Nov 3 (meets three times a week!)
Tue, Thurs & Sun, Oct 7 - Nov 2 (meets three times a week!)

AMC 10 Final Fives
Monday, Jun 30 - Jul 21
Friday, Aug 15 - Sep 12
Sunday, Sep 7 - Sep 28
Tuesday, Sep 9 - Sep 30
Monday, Sep 22 - Oct 13
Sunday, Sep 28 - Oct 19 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Wednesday, Oct 8 - Oct 29
Thursday, Oct 9 - Oct 30

AMC 12 Problem Series
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
Wednesday, Aug 6 - Oct 22
Sunday, Aug 10 - Nov 2
Monday, Aug 18 - Nov 10
Mon & Wed, Sep 15 - Oct 22 (meets twice a week!)
Tues, Thurs & Sun, Oct 7 - Nov 2 (meets three times a week!)

AMC 12 Final Fives
Thursday, Sep 4 - Sep 25
Sunday, Sep 28 - Oct 19
Tuesday, Oct 7 - Oct 28

AIME Problem Series A
Thursday, Oct 23 - Jan 29

AIME Problem Series B
Sunday, Jun 22 - Sep 21
Tuesday, Sep 2 - Nov 18

F=ma Problem Series
Wednesday, Jun 11 - Aug 27
Tuesday, Sep 16 - Dec 9
Friday, Oct 17 - Jan 30

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
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
Thursday, Aug 14 - Oct 30
Sunday, Sep 7 - Nov 23
Tuesday, Dec 2 - Mar 3

Intermediate Programming with Python
Sunday, Jun 1 - Aug 24
Monday, Jun 30 - Sep 22
Friday, Oct 3 - Jan 16

USACO Bronze Problem Series
Sunday, Jun 22 - Sep 1
Wednesday, Sep 3 - Dec 3
Thursday, Oct 30 - Feb 5
Tuesday, Dec 2 - Mar 3

Physics

Introduction to Physics
Sunday, Jun 15 - Sep 14
Monday, Jun 23 - Sep 15
Tuesday, Sep 2 - Nov 18
Sunday, Oct 5 - Jan 11
Wednesday, Dec 10 - Mar 11

Physics 1: Mechanics
Monday, Jun 23 - Dec 15
Sunday, Sep 21 - Mar 22
Sunday, Oct 26 - Apr 26

Relativity
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
Jun 2, 2025
0 replies
k i Adding contests to the Contest Collections
dcouchman   1
N Apr 5, 2023 by v_Enhance
Want to help AoPS remain a valuable Olympiad resource? Help us add contests to AoPS's Contest Collections.

Find instructions and a list of contests to add here: https://artofproblemsolving.com/community/c40244h1064480_contests_to_add
1 reply
dcouchman
Sep 9, 2019
v_Enhance
Apr 5, 2023
k i Zero tolerance
ZetaX   49
N May 4, 2019 by NoDealsHere
Source: Use your common sense! (enough is enough)
Some users don't want to learn, some other simply ignore advises.
But please follow the following guideline:


To make it short: ALWAYS USE YOUR COMMON SENSE IF POSTING!
If you don't have common sense, don't post.


More specifically:

For new threads:


a) Good, meaningful title:
The title has to say what the problem is about in best way possible.
If that title occured already, it's definitely bad. And contest names aren't good either.
That's in fact a requirement for being able to search old problems.

Examples:
Bad titles:
- "Hard"/"Medium"/"Easy" (if you find it so cool how hard/easy it is, tell it in the post and use a title that tells us the problem)
- "Number Theory" (hey guy, guess why this forum's named that way¿ and is it the only such problem on earth¿)
- "Fibonacci" (there are millions of Fibonacci problems out there, all posted and named the same...)
- "Chinese TST 2003" (does this say anything about the problem¿)
Good titles:
- "On divisors of a³+2b³+4c³-6abc"
- "Number of solutions to x²+y²=6z²"
- "Fibonacci numbers are never squares"


b) Use search function:
Before posting a "new" problem spend at least two, better five, minutes to look if this problem was posted before. If it was, don't repost it. If you have anything important to say on topic, post it in one of the older threads.
If the thread is locked cause of this, use search function.

Update (by Amir Hossein). The best way to search for two keywords in AoPS is to input
[code]+"first keyword" +"second keyword"[/code]
so that any post containing both strings "first word" and "second form".


c) Good problem statement:
Some recent really bad post was:
[quote]$lim_{n\to 1}^{+\infty}\frac{1}{n}-lnn$[/quote]
It contains no question and no answer.
If you do this, too, you are on the best way to get your thread deleted. Write everything clearly, define where your variables come from (and define the "natural" numbers if used). Additionally read your post at least twice before submitting. After you sent it, read it again and use the Edit-Button if necessary to correct errors.


For answers to already existing threads:


d) Of any interest and with content:
Don't post things that are more trivial than completely obvious. For example, if the question is to solve $x^{3}+y^{3}=z^{3}$, do not answer with "$x=y=z=0$ is a solution" only. Either you post any kind of proof or at least something unexpected (like "$x=1337, y=481, z=42$ is the smallest solution). Someone that does not see that $x=y=z=0$ is a solution of the above without your post is completely wrong here, this is an IMO-level forum.
Similar, posting "I have solved this problem" but not posting anything else is not welcome; it even looks that you just want to show off what a genius you are.

e) Well written and checked answers:
Like c) for new threads, check your solutions at least twice for mistakes. And after sending, read it again and use the Edit-Button if necessary to correct errors.



To repeat it: ALWAYS USE YOUR COMMON SENSE IF POSTING!


Everything definitely out of range of common sense will be locked or deleted (exept for new users having less than about 42 posts, they are newbies and need/get some time to learn).

The above rules will be applied from next monday (5. march of 2007).
Feel free to discuss on this here.
49 replies
ZetaX
Feb 27, 2007
NoDealsHere
May 4, 2019
XY is tangent to a fixed circle
a_507_bc   2
N a few seconds ago by math-olympiad-clown
Source: Baltic Way 2022/15
Let $\Omega$ be a circle, and $B, C$ are two fixed points on $\Omega$. Given a third point $A$ on $\Omega$, let $X$ and $Y$ denote the feet of the altitudes from $B$ and $C$, respectively, in the triangle $ABC$. Prove that there exists a fixed circle $\Gamma$ such that $XY$ is tangent to $\Gamma$ regardless of the choice of the point $A$.
2 replies
a_507_bc
Nov 12, 2022
math-olympiad-clown
a few seconds ago
Super easy problem
M11100111001Y1R   6
N 3 minutes ago by sami1618
Source: Iran TST 2025 Test 2 Problem 1
The numbers from 2 to 99 are written on a board. At each step, one of the following operations is performed:

$a)$ Choose a natural number \( i \) such that \( 2 \leq i \leq 89 \). If both numbers \( i \) and \( i+10 \) are on the board, erase both.

$b)$ Choose a natural number \( i \) such that \( 2 \leq i \leq 98 \). If both numbers \( i \) and \( i+1 \) are on the board, erase both.

By performing these operations, what is the maximum number of numbers that can be erased from the board?
6 replies
M11100111001Y1R
May 27, 2025
sami1618
3 minutes ago
Beware the degeneracies!
Rijul saini   7
N 6 minutes ago by Adywastaken
Source: India IMOTC 2025 Day 1 Problem 1
Let $a,b,c$ be real numbers satisfying $$\max \{a(b^2+c^2),b(c^2+a^2),c(a^2+b^2) \} \leqslant 2abc+1$$Prove that $$a(b^2+c^2)+b(c^2+a^2)+c(a^2+b^2) \leqslant 6abc+2$$and determine all cases of equality.

Proposed by Shantanu Nene
7 replies
Rijul saini
Yesterday at 6:30 PM
Adywastaken
6 minutes ago
13th PMO Area Part 1 #17
scarlet128   1
N 9 minutes ago by scarlet128
Source: https://pmo.ph/wp-content/uploads/2014/08/13thPMO-Area_ver5.pdf
The number x is chosen randomly from the interval (0, 1]. Define y = floor of (log base 4(x)). Find the sum of the lengths of all subintervals of (0, 1] for which y is odd.
1 reply
scarlet128
24 minutes ago
scarlet128
9 minutes ago
Romanian Geo
oVlad   3
N 13 minutes ago by NuMBeRaToRiC
Source: Romania TST 2025 Day 1 P2
Let $ABC$ be a scalene acute triangle with incentre $I{}$ and circumcentre $O{}$. Let $AI$ cross $BC$ at $D$. On circle $ABC$, let $X$ and $Y$ be the mid-arc points of $ABC$ and $BCA$, respectively. Let $DX{}$ cross $CI{}$ at $E$ and let $DY{}$ cross $BI{}$ at $F{}$. Prove that the lines $FX, EY$ and $IO$ are concurrent on the external bisector of $\angle BAC$.

David-Andrei Anghel
3 replies
+1 w
oVlad
Apr 9, 2025
NuMBeRaToRiC
13 minutes ago
inequality
SunnyEvan   2
N 14 minutes ago by sqing
Let $ x,y \geq 0 ,$ such that : $ \frac{x^2}{x^3+y}+\frac{y^2}{x+y^3} \leq 1 .$
Prove that : $$ x^2+y^2-xy \leq x+y $$$$ (x+\frac{1}{2})^2+(x+\frac{1}{2})^2 \leq \frac{5}{2} $$$$ (x+1)^2+(y+1)^2 \leq 5 $$$$ (x+2)^2+(y+2)^2 \leq 13 $$
2 replies
SunnyEvan
an hour ago
sqing
14 minutes ago
IMO 2011 Problem 5
orl   86
N 15 minutes ago by bjump
Let $f$ be a function from the set of integers to the set of positive integers. Suppose that, for any two integers $m$ and $n$, the difference $f(m) - f(n)$ is divisible by $f(m- n)$. Prove that, for all integers $m$ and $n$ with $f(m) \leq f(n)$, the number $f(n)$ is divisible by $f(m)$.

Proposed by Mahyar Sefidgaran, Iran
86 replies
orl
Jul 19, 2011
bjump
15 minutes ago
11th PMO Nationals, Easy #5
scarlet128   1
N 17 minutes ago by Mathzeus1024
Source: https://pmo.ph/wp-content/uploads/2020/12/11th-PMO-Questions.pdf
Solve for x : 2(floor of x) = x + 2{x}
1 reply
scarlet128
2 hours ago
Mathzeus1024
17 minutes ago
Cute Geometry
EthanWYX2009   0
25 minutes ago
In triangle \( X_AX_BX_C \), let \( X \) and \( Y \) be a pair of isogonal conjugate points. The line \( XX_A \) intersects \( X_BX_C \) at \( P \), and the line \( XY \) intersects \( X_BX_C \) at \( Q \). Let the circumcircle of \( XX_BX_C \) and the circumcircle of \( XPQ \) intersect again at \( R \) (other than \( X \)). Prove that the line \( RX \) bisects \( \angle PRX_A \).
IMAGE
0 replies
EthanWYX2009
25 minutes ago
0 replies
Interior point of ABC
Jackson0423   0
27 minutes ago
Let D be an interior point of the acute triangle ABC with AB > AC so that ∠DAB = ∠CAD. The point E on the segment AC satisfies ∠ADE = ∠BCD, the point F on the segment AB satisfies ∠F DA = ∠DBC, and the point X on the line AC satisfies CX = BX. Let O1 and O2 be the circumcenters of the triangles ADC and EXD, respectively. Prove that the lines BC, EF, and O1O2 are concurrent
0 replies
Jackson0423
27 minutes ago
0 replies
Dominoes and polygons
NO_SQUARES   0
29 minutes ago
Source: Kvant 2025, no.4 M2841; 46th Tot
Alice paints each cell of a $2m \times 2n$ board black or white so that the cells of each color form a polygon. Then Bob dissects the board into dominoes (rectangles consisting of two cells). Alice wants to maximize the number of two-colored dominoes, and Bob wishes to minimize it. What maximal number of two-colored dominoes can be guaranteed by Alice regardless of Bob’s moves? (Recall that the boundary of a polygon is a closed broken line without self-intersections.)
A. Gribalko
0 replies
NO_SQUARES
29 minutes ago
0 replies
complex variables inequality
RainbowNeos   1
N 30 minutes ago by RainbowNeos
Given complex numbers $a,b,c$. If
\[|a+b+c|=|ab+bc+ca|=|abc|=1,\]show that $|a|\leq 3|b|$.
1 reply
RainbowNeos
35 minutes ago
RainbowNeos
30 minutes ago
Bisectors in BHC,... Find \alpha+\beta+\gamma
NO_SQUARES   0
32 minutes ago
Source: Kvant 2025, no.4 M2840; 46th Tot
The altitudes $AA_1$, $BB_1$, $CC_1$ of an acute-angled triangle $ABC$ intersect at point $H$. The bisectors of angles $B$ and $C$ of triangle $BHC$ meet the segments $CH$ and $BH$ at points $X$ and $Y$ respectively. Denote the value of the angle $XA_1Y$ by $\alpha$. Define $\beta$ and $\gamma$ similarly. Find the sum $\alpha+\beta+\gamma$.
A. Doledenok
0 replies
NO_SQUARES
32 minutes ago
0 replies
What the isogonal conjugate on IO
reni_wee   0
33 minutes ago
Source: buratinogigle
Given a triangle $ABC$ with incircle $(I)$ tangent to $BC, CA, AB$ at points $D, E, F$, respectively. Let $P$ be a point such that its isogonal conjugate lies on the line $OI$ (where $O$ is the circumcenter and $I$ the incenter of $ABC$). The line $PA$ intersects segments $DE$ and $DF$ at points $M_a$ and $N_a$, respectively, such that the circle with diameter $M_a N_a$ meets $BC$ at points $P_a$ and $Q_a$.

1) Prove that the circle $(AP_a Q_a)$ is tangent to the incircle $(I)$ at some point $X$.

2) Similarly define points $Y, Z$ corresponding to vertices $B, C$. Prove that the lines $AX, BY, CZ$ are concurrent.
0 replies
reni_wee
33 minutes ago
0 replies
Japanese Triangles
pikapika007   67
N Apr 2, 2025 by quantam13
Source: IMO 2023/5
Let $n$ be a positive integer. A Japanese triangle consists of $1 + 2 + \dots + n$ circles arranged in an equilateral triangular shape such that for each $i = 1$, $2$, $\dots$, $n$, the $i^{th}$ row contains exactly $i$ circles, exactly one of which is coloured red. A ninja path in a Japanese triangle is a sequence of $n$ circles obtained by starting in the top row, then repeatedly going from a circle to one of the two circles immediately below it and finishing in the bottom row. Here is an example of a Japanese triangle with $n = 6$, along with a ninja path in that triangle containing two red circles.
IMAGE
In terms of $n$, find the greatest $k$ such that in each Japanese triangle there is a ninja path containing at least $k$ red circles.
67 replies
pikapika007
Jul 9, 2023
quantam13
Apr 2, 2025
Japanese Triangles
G H J
G H BBookmark kLocked kLocked NReply
Source: IMO 2023/5
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ZNatox
67 posts
#61
Y by
And yet another solution to this beautiful problem!

Number the rows $0,1, \cdots , n-1$.

Denote by $c_i$ the position of the red circle in the $i$th row. ($0\le c_i \le i$)

Notice that we can get from a red circle $c_i$ to another one $c_j$ with $j>i$, if and only if $c_i-c_j\ge i-j$, that is if $i-c_i\ge j-c_j$. Let $y_i=i-c_i, 0\le y_i\le i$, we want to find $i_1<i_2<\cdots <i_k$ with $y_{i_1}\le \cdots \le y_{i_k}$.

The problem becomes:

> Let $(y_i)$ with $0\le i\le n-1$ be a sequence of integers such that $0\le y_i\le i$ (we'll call such a sequence a beautiful sequence of rank $n$). Find the maximal $k$ such that there must exists a nondecreasing subsequence of $y_i$ of size at least $k$.

We omit the upper bound since it is similar to the other posts. As for the lower bound, we only need to prove it for powers of $2$, that is if we are given a beautiful sequence of rank $2^i$ then it must contain a nondecreasing subsequence of size $i+1$. We can argue this by induction. The case $n=1$ is trivial.

Suppose we know the result for all smaller $<n$, and suppose for the sake of contradiction that there is a counterexample for $n$
The main claim is that for every $0\le i\le n-1$ every number $a \in [2^i, 2^{i+1}-1]$ must appear in the sequence for at most $n-i-1$ times. Otherwise, we can form an non-decreasing subsequence of length $n+1$
by taking a non-decreasing subsequence of length $i+1$ in $[0,2^i-1]$ followed by all occurrence of $a$

Summing the number of appearance over all such $a$, we conclude that the number of non-zero terms in the sequence is at most $\sum_{i = 0}^{n - 1} (n - i - 1) \cdot 2^i = \sum_{j = 0}^{n - 2} \sum_{i = 0}^j 2^i = \sum_{j = 0}^{n - 2} (2^{j + 1} - 1) = 2^n - n - 1.$

However, this means that $0$ must appear at least $n+1$ times, so all occurrence of $0$ forms a non-decreasing subsequence, contradiction.

Source: https://math.stackexchange.com/questions/4752434/maximal-non-decreasing-subsequence
This post has been edited 2 times. Last edited by ZNatox, Aug 17, 2023, 12:53 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
math90
1482 posts
#62 • 1 Y
Y by CT17
It is a stronger version of this problem.
This post has been edited 4 times. Last edited by math90, Sep 12, 2023, 5:29 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Joider
136 posts
#63
Y by
\begin{align*}
\MoveEqLeft \sum_{j=1}^{i+1} 2^{a_{i+1,j}} -\sum_{j=1}^{i} 2^{\max\{a_{i+1,j}, a_{i+1,j+1}\}} \\
&= \begin{multlined}[t] \left(i+1+\sum_{b=1}^\infty 2^{b-1} \lvert \{ j : a_{i+1,j} \geq b\}\rvert\right) \\ - \left(i+\sum_{b=1}^\infty 2^{b-1} \lvert \{ j : \max\{a_{i+1,j}, a_{i+1,j+1}\} \geq b\}\rvert\right)\end{multlined} \\
& = 1 + \sum_{b=1}^\infty 2^{b-1} (1+\lvert \{ j :\max\{a_{i+1,j}, a_{i+1,j+1}\} < b\}\rvert- \lvert \{ j : a_{i+1,j} < b\}\rvert) \\
&\leq 1 + \sum_{b = 1}^{\min_j \{a_{i+1,j}\}} 2^{b-1} \\
&= 2^{\min_j \{a_{i+1,j}\}}.
\end{align*}
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Fibonacci_11235
45 posts
#66
Y by
Who is the proposer?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
CBMaster
93 posts
#67
Y by
Cool problem! Posting for storage...

The answer is $k = \lfloor \log_2 n \rfloor + 1$. Examples showing this bound is tight is suggested in solutions like #8 already, so I'll only prove that there is ninja path pass through at least $k = \lfloor \log_2 n \rfloor + 1$ circles.

It's sufficient to show that for $2^k\leq n< 2^{k+1}$, there is ninja path containing at least $k+1$ red circles. Let's prove it by induction. Level the rows $1$ to $n$ from top to bottom.

Pick one red circle $C$, and define it's good ninja path as ninja path starting at top red circle and ends at $C$. Let length of $C$ as maximum number of red circles in ninja path among all good ninja paths of it.

Claim. Number of length $t$ red circle is at most $2^{t-1}$ for all $1\leq t\leq k$.

Proof. For $t=1$ it's obvious because only top red circle has length $1$. For $t\geq 2$, by induction there is red circle $C_0$ such that it's row number is at most $2^{t-1}$ and length is at least $t$(think row $1, ..., 2^{t-1}$). Let it's row number $s$, and in row $s$, there is $x$, $y$ circles in left/right side of $C_0$.

Think about subtriangle such that top circle is $C_0$. And define $P_0$ the good ninja path of $C_0$ containing at least $t$ red circles. For each red circles in subtriangle different from $C_0$, think about ninja path from $C_0$ and ends at it. Combining this with $P_0$, we get good ninja path containing at least $t+1$ red circles. This means there is no red circles of length $t$ in subtriangle, other than $C_0$.

Furthermore, think about $x$ leftmost rows parallel to left side of original triangle(we call it left rows), and $y$ rightmost rows parallel to right side of original triangle(we call it right rows).
Since length $t$ red circle different from $C_0$ is in left row or right row, number of length $t$ red circle is at most $|($length t red circles in left rows$)|+|($length t red circles in right rows$)|+1$(as $C_0$ can be length $t$).

But no two length $t$ red circles is in same left or right row, since it does, lower circle has length at least $t+1$(think good ninja path connects top red circle, upper circle, lower circle). So each left/right rows has at most $1$ length $t$ red circle. So number of length $t$ red circle is at most $x+y+1=(s-1)+1=s\leq 2^{t-1}$. So claim is proved.

By claim, number of length $\leq k$ red circle is at most $2^0+2^1+...+2^{k-1}=2^k-1$. It is less than $n$ and since there is $n$ red circles, there must be red circle $C_1$ with length at least $k+1$. Pick good ninja path ends at $C_1$ and has at least $k+1$ red circles, we're done!!
This post has been edited 12 times. Last edited by CBMaster, Apr 29, 2024, 5:52 AM
Reason: .
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Phorphyrion
398 posts
#68
Y by
Fibonacci_11235 wrote:
Who is the proposer?

Merlijn Staps.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
math90
1482 posts
#69
Y by
Answer: $\lceil\log_2(n+1)\rceil$.

Construction is same as others have done above. Now we prove the lower bound. Motivation is ISL 2019/C9 which uses the same function.

For $1 \leq j \leq i \leq n$, let $a_{i,j}$ be the maximum number of red circles in any path starting from the top of the triangle and ends at the $j$th circle in the $i$th row.

Claim. For every positive integer $n$, we have $\sum_{i=1}^n 2^{-a_{n,i}}<1$.
Proof. By induction on $n$. The base case $n=1$ is true since $a_{1,1}=1$ so $2^{-a_{1,1}}=\frac{1}{2}<1$. For the induction step, assume the statement is true for $n$ and we will prove it for $n+1$. Observe that we have
$$a_{n+1,i}=\max\{a_{n,i},a_{n,i-1}\}+r_{n+1,i},$$where $a_{n,0}=a_{n,n+1}=0$ and $r_{n+1,i}=1$ if the $i$-th ball in the $n+1$-th row is colored red, and $r_{n+1,i}=0$ otherwise.
Let $p\in[1,n]$ such that $a_{n,p}=\max_{1\le i\le n}a_{n,i}$. Hence $\sum_{i=1}^n 2^{-a_{n,i}}\le 1-2^{-a_{n,p}}$. Since one of $r_{n+1,i}$ is strictly positive, we have:
\begin{align*}
\sum_{i=1}^{n+1}2^{-a_{n+1,i}}&\le\sum_{i=1}^p 2^{-a_{n,i}-r_{n+1,i}}+\sum_{i=p+1}^{n+1}2^{-a_{n,i-1}-r_{n+1,i}}\\
&<\sum_{i=1}^p 2^{-a_{n,i}}+\sum_{i=p+1}^{n+1}2^{-a_{n,i-1}}\\
&=\sum_{i=1}^n 2^{-a_{n,i}}+2^{-a_{n,p}}\\
&\le 1.
\end{align*}
This proves the induction step. $\square$

Now to prove the bound, let $n$ be a positive integer and let $M=\max_{1\le i\le n} a_{n,i}$. Then
$$1>\sum_{i=1}^n 2^{-a_{n,i}}\ge\sum_{i=1}^n 2^{-M}= n 2^{-M}.$$Hence $2^M>n$ so $2^M\ge n+1$ and $M\ge\lceil\log_2(n+1)\rceil$.
This post has been edited 8 times. Last edited by math90, May 10, 2024, 7:03 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Cali.Math
128 posts
#70
Y by
We uploaded our solution https://calimath.org/pdf/IMO2023-5.pdf on youtube https://youtu.be/tL6-102WzmM.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sami1618
928 posts
#71
Y by
Cali.Math wrote:

Great video! If you are planning on making a video going over probabilistic methods could you cover some of the topics involving variance as used in CTST 2023?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
YaoAOPS
1546 posts
#72 • 1 Y
Y by GeoKing
old sol uploaded now.


We claim that $k = \left\lfloor \log_2(n) \right\rfloor$.

Claim: This can be constructed.
Proof. Disect the rows of the triangle into collections of rows $[2^k, 2^{k+1} - 1]$.
Then for each collection, space the red circles such that the adjacent rows have elements spaced two apart.
Then any ninja path only contains at most one element from each collection. $\blacksquare$

Claim: If $n = 2^a$, then some ninja path has $k$ elements.
Proof. Add an $n+1$st row of just white circles.
We write a number in each circle as follows, first writing a zero in each circle of the newly added row.
Then for all other circles, write the maximum of the two circles below it, adding $1$ if this circle is also red. It remains to show that the top circle's number is at least $\left\lfloor \log_2(n) \right\rfloor$.
Define $R_k$ as the multiset of $k$ numbers in the $k$th row. Order multisets $a_k \ge a_{k-1} \ge \dots \ge a_2 \ge a_1$ based off the ordinal $a_k \omega^k + a_{k-1} \omega^{k-1} + \dots + a_1 \omega$.
We can model this by taking the following process: Start out with $C_{n+1}$ with $n+1$ zeros. Then to get $C_k$ from $C_{k+1}$, add $1$ to some element of $C_{k+1}$ then discard the smallest element of $C_k$.
We can check that $R_k \ge C_k$ inductively for some process generating some $C_k$.
It thus remains to show that $C_1$ contains an element at least $a$ than $C_n$ or $C_{2^a}$. We prove this inductively.
Note that if we consider a processes starting at $C_k$ have the same number of elements, and some other $C_k' < C_k$ with the same sum, then there exists a process starting from $C_k$ that can be mimiced from $C_k'$ such that $C_i \ge C_i'$ for all $i = k-1, k-2, \dots, 1$.
It then follows that we can WLOG assume that the process means that for $2^{a-1} \le i \le 2^a = n$, that $C_i$ consists of $2^a - i$ ones and $2i - 2^a$ zeros.
Notably, it follows that $C_{2^{a-1}}$ is just $2^{a-1}$ ones. Inductively, the maximum element of $C_1$ is at least $a-1$ more than the maximum element of $C_{2^{a-1}}$, which finishes. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
alba_tross1867
44 posts
#74
Y by
My solution is similar to many above so I won't post it but my motivation looks way too different, since I focused on $f(c)$ where $c$ is a circle in a japanese triangle to be a function that computes the maximal number of red circles that can be on a ninja path passing through $c$ in a scenario where the the given japanese triangle is meant to minimise $max(f)$ over the $i$-th row. You observe that the value of $f$ kind of "propagates" and increases by $1$ unescapably at rows $i=2^{t}$. From which follows a construction for an upper bound.
This post has been edited 1 time. Last edited by alba_tross1867, Aug 8, 2024, 7:41 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
bobthesmartypants
4337 posts
#75
Y by
Good problem.

Define a red circle to cover a target circle if a ninja path exists from the red circle to the target circle. Define a level to be a set of red circles that cover all red circles excluding themselves and any red circles that cover one of them. Note that a ninja path can pass through at most one red circle in a level, as no red circle in a level covers another red circle.

Lemma: if a level contains a red circle on row $i$, then it contains at most $i$ red circles.

Proof: In order to not cover each other, each red circle in the level must inhabit a unique diagonal not covered by the red circle on row $i$. There are only $i-1$ diagonals left, so there can only be $i-1$ additional red circles in the level.

Claim: for a Japanese triangle of size $n$, we can partition the red circles into at least $\lfloor \log_2n\rfloor +1$ disjoint levels.

Proof: First, we show a partition exists. We iteratively construct each level by taking the highest uncategorized red circle, and adding uncategorized red circles not covered by this level to the level as we move down the rows until there are none left to add.

[asy]
size(7cm);
  pair X = dir(240); pair Y = dir(0);
  path c = scale(0.5)*unitcircle;
  int[] t = {0,1,1,3,0,3,0};
  pen[] color = {lightred, lightgreen, lightblue, lightblue, lightgreen, orange, lightblue};
  for (int i=0; i<=6; ++i) {
    for (int j=0; j<=i; ++j) {
      filldraw(shift(i*X+j*Y)*c, (t[i]==j) ? color[i] : white);
      draw(shift(i*X+j*Y)*c);
    }
  }
  draw((0,0)--(X+Y)--(2*X+Y)--(3*X+2*Y)--(4*X+2*Y)--(5*X+3*Y)--(6*X+3*Y),linewidth(1.5));
  label("Level 0", (5, 0), p=red);
  label("Level 1", (5, 0) + X+Y*0.5, p=green);
  label("Level 2", (5, 0) + 2*X+Y, p=blue);
  label("Level 3", (5, 0) + 5*X+Y*2.5, p=orange);
[/asy]

Next we show that we can create at least $\lfloor \log_2n\rfloor +1$ disjoint levels. Label the levels as $0, 1, 2, \ldots$ ordered by their highest row. I claim level $k$ must start at row $2^k$ or higher. This can be seen inductively, as level $0$ starts unambiguously at row $2^0=1$, and if we assume level $k-1$ starts on row $r \le 2^{k-1}$, then by our lemma it can at best contain the next $r\le 2^{k-1}$ rows, leaving row $2r\le 2^k$ for level $k$ to claim. What this means for us is that when $n=2^k$, we must create a new level $k$ netting $k+1$ levels total. This solves to $\lfloor \log_2n\rfloor +1$ levels total.

To finish off the proof, note that each level $i$, by definition, covers level $i+1$. Thus, for any red circle in level $i+1$, there exists a red circle in level $i$ that covers it; a.k.a there exists a ninja path starting at level $0$ that passes through one red circle from each level, for a total of $\lfloor \log_2n\rfloor +1$ red circles.

Equality can be constructed by any setup where level $k$ contains red circles from rows $2^k, \ldots, 2^{k+1}-1$. Many examples have been given above.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HamstPan38825
8877 posts
#76
Y by
The answer is $k = \lfloor \log_2 n \rfloor + 1$ red circles.

The main idea is the following. For each circle in position $j$ of row $i$ (from now on we denote by $(i, j)$), define $g(i, j)$ to be the maximum number of red circles a ninja path terminating at $(i, j)$ may contain. In particular,
  • $g(i, j) = \operatorname{max}(g(i-1, j-1), g(i-1, j))$ if $(i, j)$ is colored white, and
  • $g(i, j) = \operatorname{max}(g(i-1, j-1), g(i-1, j)) + 1$ if $(i, j)$ is colored red.
By convention, $g(i, j) = 0$ for $j = 0$ or $j = i+1$.

Construction: In row $2^k + r$ for $ 0\leq r < 2^k$, color circle $\left(2^k+r, 2r+1\right)$ red. Calculating the values of $g(i, j)$ shows that $g(i, j) \leq k+1$ for row $2^k+r$.

Bound: The bound is a delicious induction argument. For each $k$, let $f(k)$ denote the minimum positive integer $n$ such that in any Japanese triangle with $n$ rows, there exists a ninja path through at least $k$ red circles. The construction implies that $f(k) \geq 2^{k-1}$ for each $k$. I contend:

Claim: In any Japanese triangle with $n= f(k)$ rows, the sum of $g(n, j)$ for all $1 \leq j \leq n$ is at least $n(k-1) + 1$.

Proof: We prove the first claim by induction on $k$, with the base case $k=2$ clear. Consider any Japanese triangle with $2n$ rows, and let $S(n)$ denote the sum of $g(n, j)$ for all $1 \leq j \leq n$.

For all $m \geq f(k)$, I claim that the inequality $S(m+1) \geq S(m) + k + 1$ holds. To see this, let $j$ be the maximal index such that $g(m, j) \geq k$. Then, before picking a red circle, $g(m+1, \ell) \geq g(m, \ell)$ for all $\ell \leq j$, $g(m+1, \ell+1) \geq g(m, \ell)$ for all $\ell > j$. Therefore
\begin{align*}
S(m+1) - S(m) &= \sum_{\ell=1}^j \left(g(m+1, \ell) - g(m, \ell)\right) + g(m+1, \ell + 1) + \sum_{\ell = j+1}^m \left(g(m+1, \ell + 1) - g(m, \ell)\right)\\
&\geq k + 1
\end{align*}because $g(m+1, \ell + 1) \geq k$ and $S$ increases by exactly one when we color a red circle.

Thus, \[S(2n) \geq S(n) + n(k+1) = 2nk + 1. \ \ (*)\]So in any Japanese triangle with $2n$ rows, there exists a $g(2n, j) \geq k + 1$; so in fact, $f(k+1) \leq 2f(k)$ for every positive integer $k$. Because $f(2) = 2$ and $f(k) \geq 2^{k-1}$, it follows that $f(k) = 2^{k-1}$ precisely; thus in fact $f(k+1) = 2f(k)$, so $(*)$ reads the induction hypothesis for $f(k+1)$. The claim follows. $\blacksquare$

It is evident that the claim also solves the problem, so we are done.

Remark: The induction argument in the bound proof is an example of strengthening the inductive hypothesis; but unlike most examples, it makes no explicit reference to what the size of $f(k+1)$ should be. In a sense, we take an inductive step into nowhere by picking $2n$, then realize that the inductive hypothesis itself proves to us that we have indeed landed at $f(k+1)$. Really cool stuff.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
lksb
184 posts
#77
Y by
numbersandnumbers wrote:
The answer is $k = \lfloor \log_2 n \rfloor + 1$. To prove that one can't do better, note that it suffices to find a construction for $n = 2^m-1$ that has no path with more than $m$ circles. This is doable by placing the red cells "diagonally" such that no path intersects more than one red cell in rows $1$, $2$, $3$ through $4$, ..., $2^{m-1}$ to $2^m - 1$. An example with $m = 4$ is shown below:
[asy]
unitsize(5mm);
for (int i = 1; i < 2; ++i) {
int j = 2*(i-1);
fill(shift(i*dir(240)+j*dir(0))*scale(0.5)*unitcircle,lightred);
}
for (int i = 2; i < 4; ++i) {
int j = 2*(i-2);
fill(shift(i*dir(240)+j*dir(0))*scale(0.5)*unitcircle,lightred);
}
for (int i = 4; i < 8; ++i) {
int j = 2*(i-4);
fill(shift(i*dir(240)+j*dir(0))*scale(0.5)*unitcircle,lightred);
}
for (int i = 8; i < 16; ++i) {
int j = 2*(i-8);
fill(shift(i*dir(240)+j*dir(0))*scale(0.5)*unitcircle,lightred);
}
for (int i = 1; i < 16; ++i) {
for (int j = 0; j < i; ++j) {
draw(shift(i*dir(240)+j*dir(0))*scale(0.5)*unitcircle);
}
}
[/asy]

Now we show that $k = \lfloor \log_2 n \rfloor + 1$ is always achievable. To do this, for $1 \leq j \leq i \leq n$, let $a_{i,j}$ be the maximum number of red circles in any path starting from the $j$th circle in the $i$th row and going to the bottom of the triangle. We have the recurrence
\[a_{i,j} = \max\{a_{i+1,j}, a_{i+1,j+1}\} + \begin{cases*} 1 & the $j$th circle in the $i$th row is colored \\ 0 & else \end{cases*}\]and we wish to show that $a_{1,1} \geq \lfloor \log_2 n\rfloor + 1$.

To do this, our main claim is that
\[\sum_{j=1}^{i} 2^{a_{i,j}} \geq \sum_{j=1}^{i+1} 2^{a_{i+1,j}}\]for all $i$. This will finish, since we can compute that $\sum_{j=1}^{n} 2^{a_{n,j}} = n+1$, and chaining together these inequalities shows that $2^{a_{1,1}} \geq n+ 1$.

To prove the inequality, pick a specific $i$. For a given $b$, the number of $j$ with $a_{i+1,j} < b$ is strictly greater than the number of $j$ with $\max\{a_{i+1,j}, a_{i+1,j+1}\} < b$, unless the former quantity is zero. Therefore
\begin{align*}
\MoveEqLeft \sum_{j=1}^{i+1} 2^{a_{i+1,j}} -\sum_{j=1}^{i} 2^{\max\{a_{i+1,j}, a_{i+1,j+1}\}} \\
&= \begin{multlined}[t] \left(i+1+\sum_{b=1}^\infty 2^{b-1} \lvert \{ j : a_{i+1,j} \geq b\}\rvert\right) \\ - \left(i+\sum_{b=1}^\infty 2^{b-1} \lvert \{ j : \max\{a_{i+1,j}, a_{i+1,j+1}\} \geq b\}\rvert\right)\end{multlined} \\
& = 1 + \sum_{b=1}^\infty 2^{b-1} (1+\lvert \{ j :\max\{a_{i+1,j}, a_{i+1,j+1}\} < b\}\rvert- \lvert \{ j : a_{i+1,j} < b\}\rvert) \\
&\leq 1 + \sum_{b = 1}^{\min_j \{a_{i+1,j}\}} 2^{b-1} \\
&= 2^{\min_j \{a_{i+1,j}\}}.
\end{align*}On the other hand, if $j^*$ is the location of the colored circle in row $i$,
\[ \sum_{j=1}^{i} 2^{a_{i,j}} -\sum_{j=1}^{i} 2^{\max\{a_{i+1,j}, a_{i+1,j+1}\}} = 2^{\max\{a_{i+1,j^*}, a_{i+1,j^*+1}\}} \geq 2^{\min_j \{a_{i+1,j}\}}.\]Subtracting these two inequalities yields the claim.

crazy LaTeX
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
quantam13
126 posts
#78
Y by
Amazing problem! I got quite a few solutions, but my favorite one is the following: Create a binary tree on the red circles in the obvious manner. Each vertex has atmost 2 children so the depth of the tree is atleast $1+\lfloor \log_2n\rfloor$ !! :cool:
Z K Y
N Quick Reply
G
H
=
a