Stay ahead of learning milestones! Enroll in a class over the summer!

G
Topic
First Poster
Last Poster
k a May Highlights and 2025 AoPS Online Class Information
jlacosta   0
Yesterday at 11:16 PM
May is an exciting month! National MATHCOUNTS is the second week of May in Washington D.C. and our Founder, Richard Rusczyk will be presenting a seminar, Preparing Strong Math Students for College and Careers, on May 11th.

Are you interested in working towards MATHCOUNTS and don’t know where to start? We have you covered! If you have taken Prealgebra, then you are ready for MATHCOUNTS/AMC 8 Basics. Already aiming for State or National MATHCOUNTS and harder AMC 8 problems? Then our MATHCOUNTS/AMC 8 Advanced course is for you.

Summer camps are starting next 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 an enriching 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][*]May 9th, 4:30pm PT/7:30pm ET, Casework 2: Overwhelming Evidence — A Text Adventure, a game where participants will work together to navigate the map, solve puzzles, and win! All are welcome.
[*]May 19th, 4:30pm PT/7:30pm ET, What's Next After Beast Academy?, designed for students finishing Beast Academy and ready for Prealgebra 1.
[*]May 20th, 4:00pm PT/7:00pm ET, Mathcamp 2025 Qualifying Quiz Part 1 Math Jam, Problems 1 to 4, join the Canada/USA Mathcamp staff for this exciting Math Jam, where they discuss solutions to Problems 1 to 4 of the 2025 Mathcamp Qualifying Quiz!
[*]May 21st, 4:00pm PT/7:00pm ET, Mathcamp 2025 Qualifying Quiz Part 2 Math Jam, Problems 5 and 6, Canada/USA Mathcamp staff will discuss solutions to Problems 5 and 6 of the 2025 Mathcamp Qualifying Quiz![/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
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
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
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
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
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
Tuesday, May 6 - Aug 19
Wednesday, Jun 4 - Sep 17
Sunday, Jun 22 - Oct 19
Friday, Jul 18 - Nov 14

Introduction to Geometry
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

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

Intermediate Counting & Probability
Wednesday, May 21 - Sep 17
Sunday, Jun 22 - Nov 2

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

Precalculus
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
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
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

AIME Problem Series A
Thursday, May 22 - Jul 31

AIME Problem Series B
Sunday, Jun 22 - Sep 21

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
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
Yesterday at 11:16 PM
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
hard square root problem
kjhgyuio   1
N 31 minutes ago by RagvaloD
........
1 reply
kjhgyuio
3 hours ago
RagvaloD
31 minutes ago
extremaly hard NT
gggzul   2
N 38 minutes ago by thehound
Source: Cambodian IMO training camp
We will say that a set of $2025$ consecutive positive integers is cool if it contains exactly $13$ primes. Are there infinitely many cool sets?
2 replies
gggzul
an hour ago
thehound
38 minutes ago
3 var inequality
sqing   1
N an hour ago by pooh123
Source: Own
Let $ a,b,c>0 ,\frac{a}{b} +\frac{b}{c} +\frac{c}{a} \leq 2\left( \frac{1}{a}+\frac{1}{b}+\frac{1}{c}\right). $ Prove that
$$a+b+c+2\geq abc$$Let $ a,b,c>0 , a^3+b^3+c^3\leq 2(ab+bc+ca). $ Prove that
$$a+b+c+2\geq abc$$
1 reply
sqing
Wednesday at 9:30 AM
pooh123
an hour ago
Tangent to two circles
Mamadi   0
an hour ago
Source: Own
Two circles \( w_1 \) and \( w_2 \) intersect each other at \( M \) and \( N \). The common tangent to two circles nearer to \( M \) touch \( w_1 \) and \( w_2 \) at \( A \) and \( B \) respectively. Let \( C \) and \( D \) be the reflection of \( A \) and \( B \) respectively with respect to \( M \). The circumcircle of the triangle \( DCM \) intersect circles \( w_1 \) and \( w_2 \) respectively at points \( E \) and \( F \) (both distinct from \( M \)). Show that the line \( EF \) is the second tangent to \( w_1 \) and \( w_2 \).
0 replies
Mamadi
an hour ago
0 replies
Number Theory problem
Mamadi   0
2 hours ago
Source: Own
Find all \( a, b \in \mathbb{N} \) such that \( a! + b \) and \( b! + a \) are both perfect squares.
0 replies
Mamadi
2 hours ago
0 replies
Inspired by JK1603JK
sqing   3
N 2 hours ago by alexheinis
Source: Own
Let $ a,b,c $ be reals such that $  abc\neq 0$ and $ a+b+c=0.  $ Prove that
$$\left|\frac{a-b}{c}\right|+k\left|\frac{b-c}{a} \right|+k^2\left|\frac{c-a}{b} \right|\ge 3(k+1)$$Where $ k\geq 1.$
$$\left|\frac{a-b}{c}\right|+2\left|\frac{b-c}{a} \right|+4\left|\frac{c-a}{b} \right|\ge 9$$
3 replies
sqing
Yesterday at 9:44 AM
alexheinis
2 hours ago
Two equal angles
jayme   0
2 hours ago
Dear Mathlinkers,

1. ABCD a square
2. I the midpoint of AB
3. 1 the circle center at A passing through B
4. Q the point of intersection of 1 with the segment IC
5. X the foot of the perpendicular to BC from Q
6. Y the point of intersection of 1 with the segment AX
7. M the point of intersection of CY and AB.

Prove : <ACI = <IYM.

Sincerely
Jean-Louis
0 replies
jayme
2 hours ago
0 replies
Digits permutations all not divisible by 7
NicoN9   0
2 hours ago
Source: Japan Junior MO Preliminary 2020 P12
Find the number of possible quadruples $(a, b, c, d)$ with $1\le a<b<c<d\le 9$, satisfies the following property:

$24$ integers obtained by arranging four digits $a, b, c, d$ in some order, are all not divisible by $7$.
0 replies
NicoN9
2 hours ago
0 replies
8 times 8 grid and 64 coins
NicoN9   0
2 hours ago
Source: Japan Junior MO Preliminary 2020 P11
There are $8\times 8$ grid, and in each cell, there is a coin with one side white, and other side black. We start by all coin facing white. Alice and Bob executes the following operation:

First, Alice choose $8$ pairwise distinct cells, and turn over all of the coins in those cells. Next, Bob chooses one row or column, and turn over all of the coins in that row, or column.

Find the maximum possible positive integer $k$ with the following property:

No matter how Bob plays, Alice can always make $k$ coins facing black, after $2020$ turns.
0 replies
NicoN9
2 hours ago
0 replies
existence of a circle tangent to AB and AC
NicoN9   0
2 hours ago
Source: Japan Junior MO Preliminary 2020 P10
Let $ABC$ be a triangle with integer side lengths. Let $D, E$ be points on segment $BC$ such that $B, D, E,C$ are in this order, $BD=4$, and $EC=7$.
Suppose that there exists a circle which is tangent to sides $AB$ and $AC$, passes through $D, E$. Find the minimum of the perimeter of triangle $ABC$.
0 replies
NicoN9
2 hours ago
0 replies
filling tiles again?
NicoN9   0
2 hours ago
Source: Japan Junior MO Preliminary 2020 P9
There is a board with regular hexagon shape with side length $1$. As shown below, we dessert the board into $24$ of equilateral triangle, with side length $1/2$. We call the $19$ points of $\circ$ is good in the figure.

IMAGE
There are $12$ of tiles with side length $\frac{1}{2}$, $\frac{\sqrt{3}}{2}$, $1$ (thus the tile is right-angled). How many ways are there to fill the board with these tiles such that
$\bullet$ Each vertex of the tiles are on good points, and
$\bullet$ There doesn't exist $2$ tiles, such that it forms a equilateral triangle of side length $1$.
0 replies
NicoN9
2 hours ago
0 replies
3 variables NT
NicoN9   0
2 hours ago
Source: Japan Junior MO Preliminary 2020 P8
Find all triples $(l, m, n)$ such that \[
l^2+mn=m^2+ln,\quad  n^2+lm=2020,\quad  l\le m\le n.
\]
0 replies
NicoN9
2 hours ago
0 replies
Filling with tiles
NicoN9   0
2 hours ago
Source: Japan Junior MO Preliminary 2020 P7
Consider the following tiles, created by using three and five unitsquare, respectively.
IMAGE
There are twelve of L, and four of X. We fill the following gray region created by $56$ unitsquare, using L and X.

IMAGE
Find the number of ways to do so.
0 replies
NicoN9
2 hours ago
0 replies
3D combo puzzle
NicoN9   0
2 hours ago
Source: Japan Junior MO Preliminary 2020 P6
As shown below, there is a figure $Q$ created by removing the unitcube at the cornor of the cube with side length $5$. Also, there are infinitely many figure $L$ created with four unitcube, and infinitely many unitcubes.

IMAGE
We paste together $L$ and unitcubes to create $Q$.
What is the maximum possible number of $L$ that we can use?
0 replies
NicoN9
2 hours ago
0 replies
Equal pairs in continuous function
CeuAzul   16
N Apr 12, 2025 by Ilikeminecraft
Let $f(x)$ be an continuous function defined in $\text{[0,2015]},f(0)=f(2015)$
Prove that there exists at least $2015$ pairs of $(x,y)$ such that $f(x)=f(y),x-y \in \mathbb{N^+}$
16 replies
CeuAzul
Aug 6, 2018
Ilikeminecraft
Apr 12, 2025
Equal pairs in continuous function
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.
CeuAzul
994 posts
#1 • 2 Y
Y by Adventure10, Mango247
Let $f(x)$ be an continuous function defined in $\text{[0,2015]},f(0)=f(2015)$
Prove that there exists at least $2015$ pairs of $(x,y)$ such that $f(x)=f(y),x-y \in \mathbb{N^+}$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
CeuAzul
994 posts
#2 • 2 Y
Y by Adventure10, Mango247
Anyone???
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
hutu683
112 posts
#4 • 2 Y
Y by Adventure10, Mango247
Bump for solution. :trampoline:
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
me9hanics
375 posts
#5 • 2 Y
Y by Adventure10, Mango247
I never took calculus (yet) so I can't write it down algebraicly but the solution is noticing that there will be at least 1 $x$, for which $f(x)=f(x+1)$, atleast 1 $x$, for which $f(x)=f(x+2)$... and you can notice that by moving the function by $k$ ($k=1,2,...,2015$) units, as long as $k \leq 2015$ there shall be a common point
This post has been edited 1 time. Last edited by me9hanics, Aug 27, 2018, 2:31 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
hutu683
112 posts
#6 • 2 Y
Y by Adventure10, Mango247
misinnyo wrote:
I never took calculus (yet) so I can't write it down algebraicly but the solution is noticing that there will be at least 1 $x$, for which $f(x)=f(x+1)$, atleast 1 $x$, for which $f(x)=f(x+2)$... and you can notice that by moving the function by $k$ ($k=1,2,...,2015$) units, as long as $k \leq 2015$ there shall be a common point

I don’t think you are right. If $f(0)=f(2015)=0$, and $f(x)>0$ when $0< x\leqslant 1007$, $f(x)<0$ when $2015>x>1007$, then there will be no solution when $k=2014$.
This post has been edited 1 time. Last edited by hutu683, Aug 27, 2018, 2:46 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
hutu683
112 posts
#8 • 2 Y
Y by Adventure10, Mango247
Sorry for the previous wrong solution.(deleted)
Prove by induction on $n$ (2015).
Sketch:
First show that there is some $t\in [0, n-1]$ such that $f(t)=f(t+1)$.
Then denote $g(x)=f(x)$ when $0\leqslant x\leqslant t$ and $g(x)=f(x+1)$ when $t\leqslant x\leqslant n-1$, and refer to the case of $n-1$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
CyclicISLscelesTrapezoid
372 posts
#10 • 2 Y
Y by CeuAzul, ihatemath123
Replace $2015$ with positive integer $n$. We do induction on $n$, with the base case of $n=1$ obvious. The following claim lets us do induction.

Claim: There exists a real number $a$ with $0 \le a \le n-1$ such that $f(a+1)=f(a)$.

Proof: Suppose that there doesn't exist such $a$, and assume WLOG that $f(1)>f(0)$. If $f(2)<f(1)$, then consider $f(x)$ and $g(x)=f(x+1)$. Since $f(0)<g(0)$ and $f(1)>g(1)$, there exists $a \in (0,1)$ such that $f(a)=g(a)$ by the intermediate value theorem. Thus, we have $f(2)>f(1)$. Similarly, we have $f(2)<f(3),\ldots,f(n-1)<f(n)$, so \[f(0)<f(1)<\cdots<f(n).\]However, $f(n)=f(0)$, a contradiction, so such $a$ must exist. $\square$

Now, we can induct. Choose $a$ such that $f(a)=f(a+1)$, and consider the function \[f'(x)=\begin{cases}f(x) & x \le a \\ f(x+1) & x>a\end{cases}.\]This function is continuous and $f'(n-1)=f'(0)$, so there exist at least $n-1$ pairs $(x,y)$ such that $f'(x)=f'(y)$ and $x-y$ is a positive integer. Suppose that $x'=x$ if $x \le a$ and $x'=x+1$ if $x>a$, and define $y'$ similarly. Notice that each pair $(x,y)$ converts to a pair $(x',y')$ such that $f(x')=f(y')$ and $x'-y'$ is a positive integer, so we have $n-1$ pairs. We also have the pair $(a,a+1)$, so there are at least $n$ pairs and we are done. $\square$
This post has been edited 2 times. Last edited by CyclicISLscelesTrapezoid, Sep 5, 2023, 9:26 PM
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
#11
Y by
A very similar variation of this problem was apparently a China IMO camp problem. It's possible to solve the Chinese problem by specifically utilizing the fact that $f$ in that problem is a polynomial and solutions need not lie in $[0,n]$, but there's a totally valid solution without.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Ritwin
156 posts
#12 • 1 Y
Y by LLL2019
Hilarious problem, I love it :D
Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
joshualiu315
2533 posts
#13
Y by
We will prove this using strong induction. The base case $n=1$ is vacuous so we move towards the inductive step. Suppose our claim holds for all integers $n$ from $1$ to $k-1$.


Claim: There exists some value of $t \in [0, n-1]$ such that $p(t) = p(t+1)$.

Proof: Assume for the sake of contradiction that there is no such $t$. Consider the set $\{p(1)-p(0), p(2)-p(1), \dots, p(n)-p(n-1)\}$. Evidently, none of the elements in the set can be $0$, but the cumulative sum is $0$. This means that at some point, the elements will change sign. Denote $f(x) = p(x)-p(x-1)$; $f(x)$ is continuous and changes sign at some point, so it must equal $0$ at some point by the Intermediate Value Theorem, contradiction. $\square$


Consider the function $q(x)$ such that $q(x)=p(x)$ when $x = [0,t)$ and $q(x)=p(x+1)$ when $x = [t+1,n-1]$. From the inductive claim, we know that $q(x)$ has at least $n-1$ pairs. Simply translate the pairs back to $p(x)$ and include $(t,t+1)$ to get the desired result. $\square$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Martin2001
147 posts
#14
Y by
Let $f(x)=p(x)-p(x-1).$ Note that
$$\sum_{i=1}^{i=16}f(i)=0.$$We are trying to prove that there exists an $x$ such that $f(x)=0.$ Note that if there isn't an integer $i$ that works, then
at least one of $f(i)$ will be positive and at least one will be negative. Thus, by Intermediate Value Theorem, there has to exist such an $i.$
Delete the interval $[i-1, i].$ Note that the ends of the graph are the same, so the graph is still continuous, and that all $x-y$ are either unchanged or the value is increased by $1.$ Then simply continue as before $n-1$ more times, until you can't anymore. We succesefully have found $n$ different pairs, so we're done.$\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ihatemath123
3446 posts
#15 • 2 Y
Y by peace09, cosmicgenius
oops i overcomplicated this :stretcher: i still think this solution is pretty nice, hopefully its not a fakesolve ?

For integers $k$ with $0 \leq k \leq n-1$, define $g_k : [0, 1) \to \mathbb R$ as $g_k (x) = f(x+k)$. Now plot these functions all at once; each intersection point counts as one of the pairs $(x,y)$ with $x-y \in \mathbb N$ such that $f(x)=f(y)$. We will show there are at least $n-1$ intersection points (none of the intersection points will count the pair $(x,y) = (0,n)$, so this is the $n$th pair).
[asy]
unitsize(0.6cm);

path p = (0,0)..(1,2)..(2,3)..(3,2.5)..(4,1.5)..(5,1)..(6,2)..(7,1)..(8,0);

draw(shift((12,0))*p, mediumred+linewidth(1.5));
draw(shift((10,0))*p, deepgreen+linewidth(1.5));
draw(shift((8,0))*p, royalblue+linewidth(1.5));
draw(shift((6,0))*p, orange+linewidth(1.5));
fill((0,-0.5)--(12,-0.5)--(12,4.5)--(0,4.5)--cycle, white);
fill((14,-0.5)--(20.1, -0.5)--(20.1,4.5)--(14, 4.5)--cycle, white);
draw((12,-0.5)--(12,4.5), black+linewidth(1.5));
draw((14,-0.5)--(14,4.5), black+linewidth(1.5));

draw(p, black+linewidth(1.5));
label("becomes", (9.5,1), fontsize(9));
label("$1$", (1,-1), fontsize(9)+mediumred);
draw(brace((0.1,-0.3),(1.9,-0.3),-0.4),mediumred+linewidth(1.5));
label("$2$", (3,-1), fontsize(9)+deepgreen);
draw(brace((2.1,-0.3),(3.9,-0.3),-0.4),deepgreen+linewidth(1.5));
label("$3$", (5,-1), fontsize(9)+royalblue);
draw(brace((4.1,-0.3),(5.9,-0.3),-0.4),royalblue+linewidth(1.5));
label("$4$", (7,-1), fontsize(9)+orange);
draw(brace((6.1,-0.3),(7.9,-0.3),-0.4),orange+linewidth(1.5));
[/asy]
If any $i$ and $j$ exist for which $g_i (0) = g_j (0)$, we can nudge $f$ by a negligible amount at certain points so that this is no longer the case – evidently, this only decreases the number of intersection points. Note that, now, $g_0 (0), g_1 (0), \dots, g_{n-1} (0)$ is a permutation of $g_0 (1), g_1 (1), \dots, g_{n-1} (1)$. (Well, $g_i(1)$ is not defined, but we can take the limiting value.) Each inversion in this permutation corresponds to an intersection point, so it suffices to prove the following lemma:

Claim: A permutation of $1, 2, \dots, n $ with one component has at least $n-1$ inversions.
Proof: Call an element of the permutation a "gamechanger" if it is greater than all the elements to its left. Let the gamechangers be $y_1 < y_2 <  \cdots < y_k$, and let their indices be $x_1 < x_2 < \cdots < x_k$. Clearly, we have $x_{i+1} < y_{i}$ for all $i$ – in particular, $y_1 > 1$. As such, each gamechanger $y_i$ comes before $y_{i-1}+1, y_{i-2}+1, \dots, y_i-1$. If $i > 1$, this gamechanger also comes before some number from $1$ to $y_{i-1} - 1$ since there are only $x_i - 1 < y_{i-1} - 1$ numbers before the gamechanger in the permutation.

Altogether: the first gamechanger is the larger element of $y_1-1$ inversions while for $i > 1$, the gamechanger $y_i$ is the larger element of at least $y_i - y_{i-1}$ elements. Since the largest game changer is $n$, we have a total of at least $n-1$ inversions.
This post has been edited 3 times. Last edited by ihatemath123, Aug 18, 2024, 1:35 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
CyclicISLscelesTrapezoid
372 posts
#16
Y by
We solve the following problem (half of the solution is copied from my previous post in this thread):
Generalization of China TST Quiz 2001/1/1 wrote:
Let $a$ be a positive real number, and let $f \colon [0,a] \to \mathbb{R}$ be a continuous function with $f(0)=f(a)$. Find the minimum possible number of pairs of real numbers $(x,y)$ such that $f(x)=f(y)$ and $x-y$ is a positive integer.

The answer is $a$ if $a$ is an integer and $0$ otherwise.

If $a$ is an integer, then $f(x)=\tfrac{a}{2}-|x-\tfrac{a}{2}|$ works: for a positive integer $n \le a$, the only pair $(x,y)$ such that $f(x)=f(y)$ and $x-y=n$ is $(\tfrac{a+n}{2},\tfrac{a-n}{2})$, so there are $a$ pairs. If $a$ is not an integer, then construct $f$ by shifting a function with period $1$ by a nonconstant linear function:
\[f(x)=\cos(2\pi x)-1+\frac{1-\cos(2\pi a)}{a}x.\]Notice that $f(0)=f(a)=0$. For a positive integer $n$, we have $f(x+n)-f(x)=\tfrac{1-\cos(2\pi a)}{a}n>0$, so there are $0$ pairs.

It remains to prove that there are at least $a$ pairs if $a$ is an integer.

Claim: There exists a real number $b$ with $0 \le b \le a-1$ such that $f(b+1)=f(b)$.

Proof: Assume WLOG that $f(1) \ge f(0)$, and let $g(x)=f(x+1)$. Since $f(0)=f(a)$, there exists $n \in \{1,2,\ldots,a-1\}$ such that $f(n-1) \le f(n)$ and $f(n) \ge f(n+1)$. This means $f(n-1) \le g(n-1)$ and $f(n) \ge g(n)$, so there exists $b \in [n-1,n]$ such that $f(x)=g(x)$ by the intermediate value theorem, as desired. $\square$

Now, we induct on $a$. For the base case, the pair $(1,0)$ works for $a=1$. For the inductive step, choose $b$ such that $f(b)=f(b+1)$, and consider the function
\[f_1(x)=\begin{cases} f(x) & x \le b \\ f(x+1) & x>b \end{cases}.\]This function is continuous and $f_1(a-1)=f_1(0)$, so there exist at least $a-1$ pairs $(x,y)$ such that $f_1(x)=f_1(y)$ and $x-y$ is a positive integer. Suppose that $x'=x$ if $x \le b$ and $x'=x+1$ if $x>b$, and define $y'$ similarly. Notice that each pair $(x,y)$ converts to a pair $(x',y')$ such that $f(x')=f(y')$ and $x'-y'$ is a positive integer, so we have $a-1$ pairs by the inductive hypothesis. We also have the pair $(b,b+1)$, so there are at least $a$ pairs and we are done. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
quantam13
112 posts
#17
Y by
Wow what a problem, i loved it :)

I prove the desired result with strond induction, while replacing 2015 with $n$

Claim: There is some value $t \in [0, n-1]$ such that $p(t+1)=p(t)$

Proof: Assume FTSOC that there is no such value. Upon considering the set $\{p(1)-p(0), p(2)-p(1), \cdots, p(n)-p(n-1)\}$, we get that none of the elements of the set can be zero, but by the condition the total sum is 0, and hence some time in the list it switches signs. But if we consider the function $q(x)=p(x+1)-p(x)$, we get a contradiction by the intermediate value theorem.

Now by the claim we take a value $r$ such that $f(r+1)=f(r)$ and remove it from the interval $[0,n]$, and consider the two remaining intervals together which finishes by strong induction
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
quantam13
112 posts
#18
Y by
Oopsies one small error in mine, we musnt use strong inductionand instead shift the part of $f$ above $r+1$ down and induct, and then all the pairs will be preserved and then we shift back to get the extra pair $(r,r+1)$, which solves the problem, noting that the shifting preserves continuity as $f(r+1)=f(r)$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Likeminded2017
391 posts
#19
Y by
We prove this works for any $n,$ by induction. First, if $n=1$ then $p(0)=p(1)$ so we are done. Suppose this holds until some $n=i.$ For $i+1,$ Let $q(x)=p(x+1),$ and let $r(x)=p(x+1)-p(x).$ If $r(x)$ is always zero then we are done. If not, observe $\int_{0}^{i} r(x)=0,$ so if $r$ is positive at some point, it must also be negative at some point. By the IVT, there must be some point $t$ where $r(t)$ is $0.$ Suppose this point is $t.$ Then $p(t)=p(t+1).$ Now consider
\[s(x)=
\begin{cases}
    p(x) & x \in (-\infty,t] \\
    p(x+1) & x \in (t, +\infty)
\end{cases}
\]this function is clearly continuous as $p(x)$ is continuous and $p(t)=p(t+1).$ Then $s(0)=p(0)=p(n)=s(n-1)$ so there are $i$ such pairs in function $s.$ If they exist in function $s,$ they must exist in function $p$ too. Therefore adding the extra $(t+1,t)$ pair yields a total of $i+1$ pairs, and we are done by induction.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Ilikeminecraft
611 posts
#20
Y by
We show this for any continuous function $g$. We can induct. If $n = 1,$ this fact is obviously true.

Now, let $k\in\{0, \dots, n - 1\}$ denote the integer such that $f(k) > f(k - 1), f(x) > f(k + 1)$ or the inequalities are swapped. By extremal value theorem, this must exist. By IVT, there exists $t\in[0, j]$ such that $f(t) = f(t + 1).$

Define $\overline{g}\colon[0, n - 1]\to\mathbb R$ to be a continuous function such that \[\overline{g}(x) = \begin{cases*}
    g(x) & x < t \\
    g(x - 1) & g > t
\end{cases*}\]This is obviously continuous. By inductive hypothesis, this also finishes.
Z K Y
N Quick Reply
G
H
=
a