Plan ahead for the next school year. Schedule your class today!

G
Topic
First Poster
Last Poster
k a July Highlights and 2025 AoPS Online Class Information
jwelsh   0
Jul 1, 2025
We are halfway through summer, so be sure to carve out some time to keep your skills sharp and explore challenging topics at AoPS Online and our AoPS Academies (including the Virtual Campus)!

[list][*]Over 60 summer classes are starting at the Virtual Campus on July 7th - check out the math and language arts options for middle through high school levels.
[*]At AoPS Online, we have accelerated sections where you can complete a course in half the time by meeting twice/week instead of once/week, starting on July 8th:
[list][*]MATHCOUNTS/AMC 8 Basics
[*]MATHCOUNTS/AMC 8 Advanced
[*]AMC Problem Series[/list]
[*]Plus, AoPS Online has a special seminar July 14 - 17 that is outside the standard fare: Paradoxes and Infinity
[*]We are expanding our in-person AoPS Academy locations - are you looking for a strong community of problem solvers, exemplary instruction, and math and language arts options? Look to see if we have a location near you and enroll in summer camps or academic year classes today! New locations include campuses in California, Georgia, New York, Illinois, and Oregon and more coming soon![/list]

MOP (Math Olympiad Summer Program) just ended and the IMO (International Mathematical Olympiad) is right around the corner! This year’s IMO will be held in Australia, July 10th - 20th. Congratulations to all the MOP students for reaching this incredible level and best of luck to all selected to represent their countries at this year’s IMO! Did you know that, in the last 10 years, 59 USA International Math Olympiad team members have medaled and have taken over 360 AoPS Online courses. Take advantage of our Worldwide Online Olympiad Training (WOOT) courses
and train with the best! Please note that early bird pricing ends August 19th!
Are you tired of the heat and thinking about Fall? You can plan your Fall schedule now with classes at either AoPS Online, AoPS Academy Virtual Campus, or one of our AoPS Academies around the US.

Our full course list for upcoming classes is below:
All classes start 7:30pm ET/4:30pm PT unless otherwise noted.

Introductory: Grades 5-10

Prealgebra 1 Self-Paced

Prealgebra 1
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
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
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
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
Sunday, Oct 19 - Jan 25
Tuesday, Nov 4 - Feb 10
Sunday, Dec 7 - Mar 8

Introduction to Number Theory
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
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, 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!)
Sat & Sun, Sep 13 - Sep 14 (1:00 - 4:00 PM PT/4:00 - 7:00 PM ET)

Intermediate: Grades 8-12

Intermediate Algebra
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, Sep 28 - Feb 15
Tuesday, Nov 4 - Mar 24

Intermediate Number Theory
Wednesday, Sep 24 - Dec 17

Precalculus
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

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

Contest Preparation: Grades 6-12

MATHCOUNTS/AMC 8 Basics
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
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
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
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
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
Tuesday, Sep 2 - Nov 18

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

Intermediate Programming with Python
Friday, Oct 3 - Jan 16

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

Physics

Introduction to Physics
Tuesday, Sep 2 - Nov 18
Sunday, Oct 5 - Jan 11
Wednesday, Dec 10 - Mar 11

Physics 1: Mechanics
Sunday, Sep 21 - Mar 22
Sunday, Oct 26 - Apr 26
0 replies
jwelsh
Jul 1, 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
IMO Shortlist 2010 - Problem G1
Amir Hossein   142
N 8 minutes ago by Fly_into_the_sky
Let $ABC$ be an acute triangle with $D, E, F$ the feet of the altitudes lying on $BC, CA, AB$ respectively. One of the intersection points of the line $EF$ and the circumcircle is $P.$ The lines $BP$ and $DF$ meet at point $Q.$ Prove that $AP = AQ.$

Proposed by Christopher Bradley, United Kingdom
142 replies
Amir Hossein
Jul 17, 2011
Fly_into_the_sky
8 minutes ago
gcd (a^n+b,b^n+a) is constant
EthanWYX2009   86
N 21 minutes ago by cubres
Source: 2024 IMO P2
Determine all pairs $(a,b)$ of positive integers for which there exist positive integers $g$ and $N$ such that
$$\gcd (a^n+b,b^n+a)=g$$holds for all integers $n\geqslant N.$ (Note that $\gcd(x, y)$ denotes the greatest common divisor of integers $x$ and $y.$)

Proposed by Valentio Iverson, Indonesia
86 replies
EthanWYX2009
Jul 16, 2024
cubres
21 minutes ago
Finding the minimal number of coins to pay without change
nAalniaOMliO   3
N 38 minutes ago by sami1618
Source: Belarusian-Iranian Friendly Competition 2025
In the magic land there are coins of all integer denominations from $1$ to $100$. Vlad has $n \geq 3$ coins, the sum of denominations of which is $200$. Find the minimal possible value of $n$ at which we can confidently say that Vlad is able to pay $100$ without change.
3 replies
+1 w
nAalniaOMliO
Jun 14, 2025
sami1618
38 minutes ago
Quadratic system
juckter   39
N 39 minutes ago by mudkip42
Source: Mexico National Olympiad 2011 Problem 3
Let $n$ be a positive integer. Find all real solutions $(a_1, a_2, \dots, a_n)$ to the system:

\[a_1^2 + a_1 - 1 = a_2\]\[ a_2^2 + a_2 - 1 = a_3\]\[\hspace*{3.3em} \vdots \]\[a_{n}^2 + a_n - 1 = a_1\]
39 replies
juckter
Jun 22, 2014
mudkip42
39 minutes ago
A geometry problem
Lttgeometry   0
an hour ago
Let triangle $ABC$ have $(w_A)$ as the $A$-mixtilinear incircle, and let $A'$ be the tangency point of $(w_A)$ with the circumcircle $(O)$. Let $AA''$ be a diameter of $(w_A)$. Define $B''$, $C''$ similarly. Prove that the lines $AA''$, $BB''$, and $CC''$ are concurrent.
0 replies
Lttgeometry
an hour ago
0 replies
Hard functional equation
Sardor   20
N an hour ago by player-019
Source: IZHO2015.P3
Find all functions $ f\colon \mathbb{R} \to \mathbb{R} $ such that $ f(x^3+y^3+xy)=x^2f(x)+y^2f(y)+f(xy) $, for all $ x,y \in \mathbb{R} $.
20 replies
Sardor
Jan 13, 2015
player-019
an hour ago
P2 Cono Sur 2021
Leo890   10
N an hour ago by lendsarctix280
Source: Cono Sur 2021 P2
Let $ABC$ be a triangle and $I$ its incenter. The lines $BI$ and $CI$ intersect the circumcircle of $ABC$ again at $M$ and $N$, respectively. Let $C_1$ and $C_2$ be the circumferences of diameters $NI$ and $MI$, respectively. The circle $C_1$ intersects $AB$ at $P$ and $Q$, and the circle $C_2$ intersects $AC$ at $R$ and $S$. Show that $P$, $Q$, $R$ and $S$ are concyclic.
10 replies
Leo890
Nov 30, 2021
lendsarctix280
an hour ago
Prove that $\angle FAC = \angle EDB$
micliva   32
N an hour ago by Fly_into_the_sky
Source: All-Russian Olympiad 1996, Grade 10, First Day, Problem 1
Points $E$ and $F$ are given on side $BC$ of convex quadrilateral $ABCD$ (with $E$ closer than $F$ to $B$). It is known that $\angle BAE = \angle CDF$ and $\angle EAF = \angle FDE$. Prove that $\angle FAC = \angle EDB$.

M. Smurov
32 replies
micliva
Apr 18, 2013
Fly_into_the_sky
an hour ago
Peru IMO TST 2023
diegoca1   1
N 2 hours ago by MathLuis
Source: Peru IMO TST 2023 D1 P2
Let $n$ be a positive integer. On an $n \times n$ board, players $A$ and $B$ take turns in a game. On each turn, a player selects an edge of the board (not on the board border) and makes a cut along that edge. If after the move the board is split into more than one piece, then that player loses the game.

Player $A$ moves first. Depending on the value of $n$, determine whether one of the players has a winning strategy.
1 reply
diegoca1
Yesterday at 8:03 PM
MathLuis
2 hours ago
Purely projective statement
ChimkinGang   6
N 2 hours ago by axolotlx7
Source: Own
Let $ABCD$ be a quadrilateral with $S=AD\cap BC$, $T=AB\cap CD$, and $X=AC\cap BD$. Let $P$ be a point in the plane not on $TX$, $Q=BP\cap TX$, $R=SP\cap TX$, and $Q'$ be the point on $TX$ such that $(QQ';TX)=-1$. If $U=BD\cap PQ'$ and $V=AP\cap DR$, show that $U$, $V$, and $T$ are collinear.
6 replies
ChimkinGang
Jun 15, 2025
axolotlx7
2 hours ago
Rhombus EVAN
62861   72
N 2 hours ago by fearsum_fyz
Source: USA January TST for IMO 2017, Problem 2
Let $ABC$ be a triangle with altitude $\overline{AE}$. The $A$-excircle touches $\overline{BC}$ at $D$, and intersects the circumcircle at two points $F$ and $G$. Prove that one can select points $V$ and $N$ on lines $DG$ and $DF$ such that quadrilateral $EVAN$ is a rhombus.

Danielle Wang and Evan Chen
72 replies
62861
Feb 23, 2017
fearsum_fyz
2 hours ago
Probablity problem
AlanLG   1
N 3 hours ago by AlexCenteno2007
Source: Mathematics Regional Olympiad of Mexico Southeast 2019 P3
Eight teams are competing in a tournament all against all (every pair of team play exactly one time among them). There are not ties and both results of every game are equally probable. What is the probability that in the tournament every team had lose at least one game and won at least one game?
1 reply
AlanLG
Oct 23, 2021
AlexCenteno2007
3 hours ago
Four variables (5)
Nguyenhuyen_AG   1
N 3 hours ago by arqady
Let $a,\,b,\,c,\,d$ be non-negative real numbers, such that $a+b+c+d=4.$ Prove that
\[52  + 17(\sqrt a + \sqrt b + \sqrt c + \sqrt d)^2\geqslant 9(ab+ bc + ca + da  + db + dc)^2.\]hide
1 reply
Nguyenhuyen_AG
4 hours ago
arqady
3 hours ago
N-M where M,N two 5-digit ''consecutive'' palindromes
parmenides51   1
N 3 hours ago by AlexCenteno2007
Source: Mathematics Regional Olympiad of Mexico Center Zone 2018 P1
Let $M$ and $N$ be two positive five-digit palindrome integers, such that $M <N$ and there is no other palindrome number between them. Determine the possible values of $N-M$.
1 reply
parmenides51
Nov 13, 2021
AlexCenteno2007
3 hours ago
A game optimization on a graph
Assassino9931   3
N Apr 28, 2025 by dgrozev
Source: Bulgaria National Olympiad 2025, Day 2, Problem 6
Let \( X_0, X_1, \dots, X_{n-1} \) be \( n \geq 2 \) given points in the plane, and let \( r > 0 \) be a real number. Alice and Bob play the following game. Firstly, Alice constructs a connected graph with vertices at the points \( X_0, X_1, \dots, X_{n-1} \), i.e., she connects some of the points with edges so that from any point you can reach any other point by moving along the edges.Then, Alice assigns to each vertex \( X_i \) a non-negative real number \( r_i \), for \( i = 0, 1, \dots, n-1 \), such that $\sum_{i=0}^{n-1} r_i = 1$. Bob then selects a sequence of distinct vertices \( X_{i_0} = X_0, X_{i_1}, \dots, X_{i_k} \) such that \( X_{i_j} \) and \( X_{i_{j+1}} \) are connected by an edge for every \( j = 0, 1, \dots, k-1 \). (Note that the length $k \geq 0$ is not fixed and the first selected vertex always has to be $X_0$.) Bob wins if
\[
  \frac{1}{k+1} \sum_{j=0}^{k} r_{i_j} \geq r;
  \]otherwise, Alice wins. Depending on \( n \), determine the largest possible value of \( r \) for which Bob has a winning strategy.
3 replies
Assassino9931
Apr 8, 2025
dgrozev
Apr 28, 2025
A game optimization on a graph
G H J
G H BBookmark kLocked kLocked NReply
Source: Bulgaria National Olympiad 2025, Day 2, Problem 6
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Assassino9931
1530 posts
#1 • 1 Y
Y by cubres
Let \( X_0, X_1, \dots, X_{n-1} \) be \( n \geq 2 \) given points in the plane, and let \( r > 0 \) be a real number. Alice and Bob play the following game. Firstly, Alice constructs a connected graph with vertices at the points \( X_0, X_1, \dots, X_{n-1} \), i.e., she connects some of the points with edges so that from any point you can reach any other point by moving along the edges.Then, Alice assigns to each vertex \( X_i \) a non-negative real number \( r_i \), for \( i = 0, 1, \dots, n-1 \), such that $\sum_{i=0}^{n-1} r_i = 1$. Bob then selects a sequence of distinct vertices \( X_{i_0} = X_0, X_{i_1}, \dots, X_{i_k} \) such that \( X_{i_j} \) and \( X_{i_{j+1}} \) are connected by an edge for every \( j = 0, 1, \dots, k-1 \). (Note that the length $k \geq 0$ is not fixed and the first selected vertex always has to be $X_0$.) Bob wins if
\[
  \frac{1}{k+1} \sum_{j=0}^{k} r_{i_j} \geq r;
  \]otherwise, Alice wins. Depending on \( n \), determine the largest possible value of \( r \) for which Bob has a winning strategy.
This post has been edited 1 time. Last edited by Assassino9931, Apr 23, 2025, 4:03 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ayeen_izady
46 posts
#2 • 3 Y
Y by GoodGuy2008, sami1618, dgrozev
Hopefully this is correct! I claim that the answer is: $\begin{cases}n=2k\implies r= \frac{1}{k(k+1)}\\n=2k+1\implies r=\frac{1}{(k+1)^2}\end{cases} $
WLOG assume that Alice makes a tree $T$ (a connected graph without cycles). Now use BFS starting from $X_0$. Let $S$ be the set of vertices of $T$ that are not connected to any vertex below them. I claim that in the best strategy for Alice(worst case scenario for Bob) any vertex $X_i\not\in S$ should be labeled with $r_i=0$. The proof of this claim is quite easy since when we have a vertex $X_i\not\in S$ such that $r_i=c>0$ we can turn $r_i$ into $0$ and add $c$ to vertices below $X_i$(maybe more than one layer) that are in $S$. Note that by doing this algorithm largest possible value for $r$ will be decreasing(not necessarily strictly decreasing). Hence we may assume that in the best strategy for Alice, our claim holds. Now I claim that the distance between any vertex in $S$ and $X_0$ should be a constant(every two vertices in $S$ should have equal distance to $X_0$). In order to prove this, assume that we have vertices $X_i,X_j\in S$ such that $d(X_i,X_0)>d(X_j,X_0)$. in this case by deleting $X_i$ and putting it between $X_0$ and the second layer of our BFS Tree we will decrease $r$. Thus by doing this process again and again we may assume that in the worst case scenario for Bob, all vertices in $S$ have equal distance to $X_0$. Here is an example for this process:
[asy] 
unitsize(2cm);
pair A,B,C,D,E,F,G; A=(0,0); B=(0.5,-1); C=(-0.5,-1); D=(-1,-2); E=(0,-2); F=(1,-2); G=(1,-3);
dot(A); label("$X_0$",A,dir(100)); dot(B); dot(C); dot(D); dot(E); dot(F); dot(G); draw(G--F--B--A);draw(A--C--D); draw(A--C--E); label("$X_i$",G,dir(270));
[/asy]
The above tree turns into:
[asy] 
unitsize(2cm);
pair A,B,C,D,E,F,G; A=(0,0); B=(0.5,-1); C=(-0.5,-1); D=(-1,-2); E=(0,-2); F=(1,-2); G=(0,1);
dot(A); label("$X_0$",G,dir(100)); dot(B); dot(C); dot(D); dot(E); dot(F); dot(G); draw(F--B--A--G);draw(A--C--D); draw(A--C--E); label("$X_i$",A,dir(180));
[/asy]
So we finally have that the distance between any two vertices of $S$ and $X_0$ is equal. Since they are equidistant we may assume that their labeling numbers are equal. Thus $r_{i_1}=r_{i_2}=\ldots r_{i_{|S|}}=\frac{1}{|S|}$. So the least value that Alice can bound is: $$\frac{1}{|S|}\times\frac{1}{d}\ge\frac{1}{|S|}\times\frac{1}{n+1-|S|}\ge\begin{cases}n=2k\implies r\ge \frac{1}{k(k+1)}\\n=2k+1\implies r\ge\frac{1}{(k+1)^2}\end{cases}$$Which we used AM-GM for the last equality. And the structure is that the graph will be a path of length $\lfloor\frac{n}{2}\rfloor-1$ which the last vertex is connected to $\lceil\frac{n}{2}\rceil$ other vertices. Here is an example for $n=8$:
[asy] 
unitsize(1.5cm);
pair A,B,C,D,E,F,G,H; pair A=(0,0);B=(0,-1);C=(0,-2);D=(0,-3);E=(1.5,-4);F=(0.5,-4);G=(-0.5,-4);H=(-1.5,-4);
dot(A);dot(B);dot(C);dot(D);dot(E);dot(F);dot(G);dot(H); draw(A--B--C--D--F); draw(D--G); draw(D--H);draw(D--E);label("$r_1=0$",B,dir(180));label("$r_2=0$",C,dir(180));label("$r_3=0$",D,dir(180));label("$r_0=0$",A,dir(90));label("$r_4=\frac{1}{4}$",E,dir(270));
label("$r_5=\frac{1}{4}$",F,dir(270));label("$r_6=\frac{1}{4}$",G,dir(270));label("$r_7=\frac{1}{4}$",H,dir(270));
[/asy]
Which gives $r=\frac{1}{20}$ for $n=8$. Q.E.D $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dgrozev
2482 posts
#3 • 1 Y
Y by ayeen_izady
@above: It's ok, but why do you need a BFS tree? The job can be done using any spanning tree! Btw, your set $S$ is usually called "leaves".
This post has been edited 2 times. Last edited by dgrozev, Apr 28, 2025, 11:17 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dgrozev
2482 posts
#4
Y by
(Ilya Bogdanov) The required maximum is
$$
\frac1{\bigl\lfloor\frac{n+1}2\bigr\rfloor\cdot\bigl\lceil\frac{n+1}2\bigr\rceil} = 
\begin{cases}
	\frac{4}{(n+1)^2} & \text{ if } n \text{ is odd,}\\
	\frac{4}{n(n+2)} & \text{ if } n \text{ is even,}
\end{cases}
$$and is achieved by the tree described at the end of the solution.

Consider the number $r_i$ Alice assigns to vertex $X_i$. If she replaces her graph by some of its spanning trees, that makes Bob's job just harder, so we assume she draws a tree.
Now, assume that she has drawn a graph and assigned some numbers $r_i$ to vertices. We show how to modify those numbers to make Bob's job not easier.
Consider every leaf $X_i$ with $i>0$, and assign it the sum of the numbers on the (unique) path from $X_0$ to $X_i$; all other numbers are replaced by zeroes. Then Bob's sum on every path does not increase. On the other hand, every number at a vertex is accounted for at least one leaf, so the sum of the numbers does not decrease. Now Alice may decrease the numbers at the leaves so as to fulfil the condition on the sum.

The problem now reads: Consider a tree on $n$ vertices rooted at $X_0$. Let $L_1,\dots,L_k$ be the leaves of this tree different from the root, and let $d_i$ be the number of vertices of the path from $X_0$ to $L_i$. We are to choose non-negative numbers $s_1,\dots,s_k$ adding up to $1$ so as to minimize the quantity
$$
 r=\max_{1\leq i\leq k} \frac{s_i}{d_i}.
 $$Let $d=\max_i d_i$; without loss of generality, let $d=d_1$. Then the path from $X_0$ to $L_1$ has $d-1$ vertices distinct from the $L_i$, so $k\leq n-(d-1)$. Hence
$$
 r\geq \frac1k \sum_{i=1}^k \frac{s_i}{d_i}\geq \frac 1{dk}\sum_{i=1}^k s_i=\frac1{dk}\geq \frac1{d(n-d+1)}\geq \frac1{\bigl\lfloor\frac{n+1}2\bigr\rfloor\cdot\bigl\lceil\frac{n+1}2\bigr\rceil}.
 $$Equality is achieved, if, say, $d=\left\lceil\frac{n+1}2\right\rceil$, and the graph consists of a path of length $d-1$, one of whose endpoints is $X_0$, and to the other $n-d+1=\left\lfloor\frac{n+1}2\right\rfloor$ leaves are attached. Each of those leaves should be assigned the number $1/(n-d+1)$, while all other vertices are assigned zeroes.

Remark. When I proposed this problem, I hadn't expected it would be selected as p6. One can see the originally proposed solution as well as some further comments in my blog.
Z K Y
N Quick Reply
G
H
=
a