Happy Memorial Day! Please note that AoPS Online is closed May 24-26th.

G
Topic
First Poster
Last Poster
k a May Highlights and 2025 AoPS Online Class Information
jlacosta   0
May 1, 2025
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
May 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
Inspired by 2025 Beijing
sqing   9
N 6 minutes ago by ytChen
Source: Own
Let $ a,b,c,d >0  $ and $ (a^2+b^2+c^2)(b^2+c^2+d^2)=36. $ Prove that
$$ab^2c^2d \leq 8$$$$a^2bcd^2 \leq 16$$$$ ab^3c^3d \leq \frac{2187}{128}$$$$ a^3bcd^3 \leq \frac{2187}{32}$$
9 replies
sqing
Yesterday at 4:56 PM
ytChen
6 minutes ago
Three operations make any number
awesomeming327.   0
34 minutes ago
Source: own
The number $3$ is written on the board. Anna, Boris, and Charlie can do the following actions: Anna can replace the number with its floor. Boris can replace any integer number with its factorial. Charlie can replace any nonnegative number with its square root. Prove that the three can work together to make any positive integer in finitely many steps.
0 replies
awesomeming327.
34 minutes ago
0 replies
IMO 2017 Problem 4
Amir Hossein   116
N 40 minutes ago by cj13609517288
Source: IMO 2017, Day 2, P4
Let $R$ and $S$ be different points on a circle $\Omega$ such that $RS$ is not a diameter. Let $\ell$ be the tangent line to $\Omega$ at $R$. Point $T$ is such that $S$ is the midpoint of the line segment $RT$. Point $J$ is chosen on the shorter arc $RS$ of $\Omega$ so that the circumcircle $\Gamma$ of triangle $JST$ intersects $\ell$ at two distinct points. Let $A$ be the common point of $\Gamma$ and $\ell$ that is closer to $R$. Line $AJ$ meets $\Omega$ again at $K$. Prove that the line $KT$ is tangent to $\Gamma$.

Proposed by Charles Leytem, Luxembourg
116 replies
Amir Hossein
Jul 19, 2017
cj13609517288
40 minutes ago
A sharp one with 3 var
mihaig   10
N 40 minutes ago by mihaig
Source: Own
Let $a,b,c\geq0$ satisfying
$$\left(a+b+c-2\right)^2+8\leq3\left(ab+bc+ca\right).$$Prove
$$ab+bc+ca+abc\geq4.$$
10 replies
mihaig
May 13, 2025
mihaig
40 minutes ago
Another right angled triangle
ariopro1387   1
N an hour ago by lolsamo
Source: Iran Team selection test 2025 - P7
Let $ABC$ be a right angled triangle with $\angle A=90$. Point $M$ is the midpoint of side $BC$ And $P$ be an arbitrary point on $AM$. The reflection of $BP$ over $AB$ intersects lines $AC$ and $AM$ at $T$ and $Q$, respectively. The circumcircles of $BPQ$ and $ABC$ intersect again at $F$. Prove that the center of the circumcircle of $CFT$ lies on $BQ$.
1 reply
ariopro1387
6 hours ago
lolsamo
an hour ago
four points lie on a circle
pohoatza   78
N 2 hours ago by ezpotd
Source: IMO Shortlist 2006, Geometry 2, AIMO 2007, TST 1, P2
Let $ ABCD$ be a trapezoid with parallel sides $ AB > CD$. Points $ K$ and $ L$ lie on the line segments $ AB$ and $ CD$, respectively, so that $AK/KB=DL/LC$. Suppose that there are points $ P$ and $ Q$ on the line segment $ KL$ satisfying \[\angle{APB} = \angle{BCD}\qquad\text{and}\qquad \angle{CQD} = \angle{ABC}.\]Prove that the points $ P$, $ Q$, $ B$ and $ C$ are concyclic.

Proposed by Vyacheslev Yasinskiy, Ukraine
78 replies
pohoatza
Jun 28, 2007
ezpotd
2 hours ago
JBMO TST Bosnia and Herzegovina 2023 P4
FishkoBiH   2
N 2 hours ago by Stear14
Source: JBMO TST Bosnia and Herzegovina 2023 P4
Let $n$ be a positive integer. A board with a format $n*n$ is divided in $n*n$ equal squares.Determine all integers $n$3 such that the board can be covered in $2*1$ (or $1*2$) pieces so that there is exactly one empty square in each row and each column.
2 replies
FishkoBiH
Today at 1:38 PM
Stear14
2 hours ago
Does there exist 2011 numbers?
cyshine   8
N 2 hours ago by TheBaiano
Source: Brazil MO, Problem 4
Do there exist $2011$ positive integers $a_1 < a_2 < \ldots < a_{2011}$ such that $\gcd(a_i,a_j) = a_j - a_i$ for any $i$, $j$ such that $1 \le i < j \le 2011$?
8 replies
cyshine
Oct 20, 2011
TheBaiano
2 hours ago
D1036 : Composition of polynomials
Dattier   1
N 2 hours ago by Dattier
Source: les dattes à Dattier
Find all $A \in \mathbb Q[x]$ with $\exists Q \in \mathbb Q[x], Q(A(x))= x^{2025!+2}+x^2+x+1$ and $\deg(A)>1$.
1 reply
Dattier
Yesterday at 1:52 PM
Dattier
2 hours ago
number sequence contains every large number
mathematics2003   3
N 2 hours ago by sttsmet
Source: 2021ChinaTST test3 day1 P2
Given distinct positive integer $ a_1,a_2,…,a_{2020} $. For $ n \ge 2021 $, $a_n$ is the smallest number different from $a_1,a_2,…,a_{n-1}$ which doesn't divide $a_{n-2020}...a_{n-2}a_{n-1}$. Proof that every number large enough appears in the sequence.
3 replies
mathematics2003
Apr 13, 2021
sttsmet
2 hours ago
IMO ShortList 2002, geometry problem 2
orl   28
N 2 hours ago by ezpotd
Source: IMO ShortList 2002, geometry problem 2
Let $ABC$ be a triangle for which there exists an interior point $F$ such that $\angle AFB=\angle BFC=\angle CFA$. Let the lines $BF$ and $CF$ meet the sides $AC$ and $AB$ at $D$ and $E$ respectively. Prove that \[ AB+AC\geq4DE. \]
28 replies
orl
Sep 28, 2004
ezpotd
2 hours ago
Arc Midpoints Form Cyclic Quadrilateral
ike.chen   56
N 2 hours ago by ezpotd
Source: ISL 2022/G2
In the acute-angled triangle $ABC$, the point $F$ is the foot of the altitude from $A$, and $P$ is a point on the segment $AF$. The lines through $P$ parallel to $AC$ and $AB$ meet $BC$ at $D$ and $E$, respectively. Points $X \ne A$ and $Y \ne A$ lie on the circles $ABD$ and $ACE$, respectively, such that $DA = DX$ and $EA = EY$.
Prove that $B, C, X,$ and $Y$ are concyclic.
56 replies
ike.chen
Jul 9, 2023
ezpotd
2 hours ago
Non-linear Recursive Sequence
amogususususus   4
N 2 hours ago by GreekIdiot
Given $a_1=1$ and the recursive relation
$$a_{i+1}=a_i+\frac{1}{a_i}$$for all natural number $i$. Find the general form of $a_n$.

Is there any way to solve this problem and similar ones?
4 replies
amogususususus
Jan 24, 2025
GreekIdiot
2 hours ago
Russian Diophantine Equation
LeYohan   2
N 2 hours ago by RagvaloD
Source: Moscow, 1963
Find all integer solutions to

$\frac{xy}{z} + \frac{xz}{y} + \frac{yz}{x} = 3$.
2 replies
LeYohan
Yesterday at 2:59 PM
RagvaloD
2 hours ago
integer functional equation
ABCDE   156
N May 21, 2025 by MathIQ.
Source: 2015 IMO Shortlist A2
Determine all functions $f:\mathbb{Z}\rightarrow\mathbb{Z}$ with the property that \[f(x-f(y))=f(f(x))-f(y)-1\]holds for all $x,y\in\mathbb{Z}$.
156 replies
ABCDE
Jul 7, 2016
MathIQ.
May 21, 2025
integer functional equation
G H J
G H BBookmark kLocked kLocked NReply
Source: 2015 IMO Shortlist A2
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Ilikeminecraft
658 posts
#164
Y by
The answer is $f\equiv-1, f\equiv x + 1,$ both of which clearly work.
let $P(x, y)$ be the assertion.
$P(x, f(x))\implies f(x - f(f(x))) = f(f(x)) - f(f(x)) -1 = -1.$
$P(x, x - f(f(x)))\implies f(x + 1) = f(x - f(x - f(f(x)))) = f(f(x)) - f(x - f(f(x))) - 1 = f(f(x)).$
$P(x, y), P(x - 1, y)\implies$
\begin{align*}
    f(x - f(y)) & = f(x + 1) - 1 - f(y) \\ 
    f(x - 1 - f(y)) & = f(x) - 1 - f(y) 
\end{align*}By subtracting, we get $f(x - f(y)) - f(x - 1 - f(y)) = f(x + 1) - f(x).$ Taking $x= f(y)$, we get $f(0) - f(-1) = f(f(y) + 1) - f(f(y)) = f(f(f(y))) - f(f(f(y - 1))).$ Hence, $f(f(f(x)))$ is a linear function since its finite difference is constant. We write $f(f(f(x))) = ax + b.$
$P(f(y), y)\implies f(0) = f(f(f(y))) - f(y) - 1\implies f(y) = ay + b + 1 - f(0),$ or $f$ is linear.

let $f(x) = ax + b.$ plug this in to get $ax - a^2y - ab + b = a^2x + ab + b - ay - b - 1.$ Thus, $a = 1, 0.$ If $a = 1, b = 1,$ and if $a = 0, b = -1.$
This post has been edited 1 time. Last edited by Ilikeminecraft, Jan 24, 2025, 11:13 PM
Reason: typo
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
EpicBird08
1755 posts
#165
Y by
The only solutions are $f(x) = -1$ and $f(x) = x + 1$, which both work. Now we show that these are all the solutions. Let $P(x,y)$ denote the given assertion.

$P(0,f(0))$ gives $f(-f(f(0))) = -1.$ Letting $u = -f(f(0)),$ we see that $P(x,u)$ gives $$\boxed{f(f(x)) = f(x+1)}.$$Then $P(f(x),x)$ gives $$f(0) = f(f(f(x))) - f(x) - 1 = f(f(x+1)) - f(x) - 1 = f(x+2) - f(x) - 1.$$This implies that $$\boxed{f(x+2) = f(x) + f(0) + 1}.$$We now consider two cases.

Case 1: $f(0) = -1.$ The above boxed equation immediately gives $f(2k) = -1$ for all $k \in \mathbb{Z}.$ Let $f(1) = f(2k+1) = c$ for integers $k.$
Subcase 1: $c$ is odd. Then $P(2k,2k-1)$ gives $c = c - c - 1 \implies c = -1,$ yielding our first solution $f(x) = -1$ for all $x.$
Subcase 2: $c$ is even. Then $P(2k+1,2k+1)$ gives $c = -1 - c - 1 \implies c = -1,$ a contradiction.
Thus this case has been exhausted, and it yields one solution $\boxed{f(x) = -1}.$

Case 2: $f(0) \ne -1.$ Then the first boxed equation implies that if $f(x) \equiv x+1 \pmod{2},$ then $f(x) = x+1.$ By the second boxed equation, we know $f(2) = 2 f(0) + 1$ is odd, as is $2 + 1 = 3.$ Hence $f(2) = 3,$ immediately giving $f(0) = 1.$ Hence $f(x) = x+1$ for even $x.$ Let $f(x) = x + c$ for odd $x.$ Again, the first boxed equation implies $f(1+c) = f(f(1)) = f(2) = 3.$ Hence either $1+c+1 = 3$ or $1 + 2c = 3.$ Both cases give $c = 1,$ yielding our second solution $\boxed{f(x) = x + 1}$ for all $x.$

Hence the only solutions are those claimed at the beginning.
This post has been edited 2 times. Last edited by EpicBird08, Jan 29, 2025, 12:11 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Ilikeminecraft
658 posts
#166
Y by
The solution is $f\equiv 1, x + 1.$

Take $y = f(x)$ to get that there exists $a = x - f(f(x))$ such that $f(a) = -1.$

Take $y = a$ to get that $f(x + 1) = f(f(x)).$

If $f$ is injective, we are done, as this implies $x + 1 = f(x),$ which indeed works.

Now, assume $f$ is not injective, and $f(a) = f(b)$ for some $a\neq b.$ Note that we can get $f(a + 1) = f(f(a)) = f(f(b)) = f(b + 1),$ and so thus, $f(x) = f(x + k(a - b))$ for some $k \in \mathbb Z.$

Take $x = f(y)$ to get $f(0) = f(f(f(y))) - f(y) - 1 = f(y + 2) - f(y) - 1$ to get that $f(2k)$ is linear and $f(2k + 1)$ is linear. By $f(x) = f(x + k(a - b)),$ we can also get that $f(2k) = c_2, f(2k + 1) = c_1$ for two constants(not necessarily the same). Finally, we do parity casework on $c_1, c_2:$
\begin{enumerate}
\item If $c_2\equiv 0\pmod 2,$ then taking $x\equiv y\equiv 0\pmod 2$ tells us $c_2 = -1,$ contradiction.
\item If $c_1 \equiv 0\pmod 2,$ then taking $x\equiv 0, y\equiv 1\pmod 2$ tells us $c_1 = -1,$ contradiction.
\item If $c_1 \equiv c_2 \equiv 1 \pmod 2,$ taking $x\equiv 0\pmod 2$ tells us $f(y) = -1,$ which finishes.
\end{enumerate}
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Bardia7003
22 posts
#167
Y by
Let $P(x,y)$ denote the given assertion.
$\newcommand{\RomanNumeral}[1]{\MakeUppercase{\romannumeral #1}}
P(f(x),x): f(0) = \underline{f(f(f(x))) - f(x) - 1 \quad (\RomanNumeral{1})} \\
P(x, f(x)):  \underline{f(x - f(f(x))) = -1 \quad (\RomanNumeral{2})} \\
P(x, x - f(f(x))): f(x - f(x - f(f(x)))) = f(f(x)) - f(x - f(f(x))) - 1 \xrightarrow{\RomanNumeral{2}}  \underline{f(x+1) = f(f(x)) \quad (\RomanNumeral{3})}$
So by $\newcommand{\RomanNumeral}[1]{\MakeUppercase{\romannumeral #1}} (\RomanNumeral{3})$ we have that $f(f(f(x))) = f(f(x+1)) = f(x+2)$, and putting that in $\newcommand{\RomanNumeral}[1]{\MakeUppercase{\romannumeral #1}} (\RomanNumeral{1})$ we have: $ \underline{f(0) + 1 = f(x+2) - f(x) \newcommand{\RomanNumeral}[1]{\MakeUppercase{\romannumeral #1}} \quad (\RomanNumeral{4})}$. Which means $f(2x)$ is linear. So $f(2x) = ax + b$, which $a = f(0) + 1 = b + 1$, So $f(2x) = (b+1)x + b$.
$f(2x+1)$ is also linear, so $f(2x + 1) = ax + c (a = f(0) + 1)$
We want to prove that $b$ is odd, so we assume otherwise. For an odd $x$, $f(f(2x)) = f((b+1)x + b)$, $(b+1)x$ is odd and $b$ is even so the value is odd: $f(f(2x)) = (b+1)(\frac{(b+1)x + b - 1}{2}) + c$. Also by $\newcommand{\RomanNumeral}[1]{\MakeUppercase{\romannumeral #1}} (\RomanNumeral{3})$ we know $f(f(2x)) = f(2x + 1) = (b+1)x + c$
So $(b+1)x = (b+1)(\frac{(b+1)x + b - 1}{2})$. $b$ is even so $b+1\neq0$ and we can cross it out: $x = \frac{bx + x + b - 1}{2} \rightarrow x = bx + b -1 \rightarrow (1-b)x = (b - 1) \xrightarrow{b-1\neq0} x = -1$, but we had the equation for any odd $x$, hence contradiction. As a result, we proved $b$ is odd.
Now we know $f(2x+1) = ax+c \xrightarrow{\newcommand{\RomanNumeral}[1]{\MakeUppercase{\romannumeral #1}} \RomanNumeral{3}} f(f(2x)) = ax + c \rightarrow f(ax + b) = ax + c \xrightarrow{x := 0} f(b) = c$
As we know $b$ is odd, so:
$c = f(b) = a(\frac{b-1}{2}) + c \rightarrow a(\frac{b-1}{2}) = 0$ so $b = 1$ or $a = 0$.
Case 1: $a = 0$. Then $b+1 = 0, f(2x) = b \rightarrow f(2x) = -1$ and $f(2x + 1) = c$. If c is odd, then by $\newcommand{\RomanNumeral}[1]{\MakeUppercase{\romannumeral #1}} (\RomanNumeral{3})$ we know $f(c+1) = f(f(c)) = f(c) = c$ and $c + 1$ is even so $-1 = c = f(2x+1)$.
Hence $\boxed{f(x) = -1 \quad \forall x \in \mathbb{Z}}$ is the solution in this case, which indeed works.
Case 2: $b=1$. Then $f(2x) = 2x + 1, f(2x + 1) = 2x + c$. By $\newcommand{\RomanNumeral}[1]{\MakeUppercase{\romannumeral #1}} (\RomanNumeral{2})$ we know $\newcommand{\RomanNumeral}[1]{\MakeUppercase{\romannumeral #1}} f(2x - f(f(2x)) = -1 \xrightarrow{\RomanNumeral{3}} f(2x - f(2x + 1)) = -1 \rightarrow f(2x - 2x - c) = -1 \rightarrow f(-c) = -1$. If c is even then $-c +1 = -1 \rightarrow c = 2$, and we want to prove $c$ is even so we can conclude $c=2$, so we assume not. If c is odd then $f(f(c)) = f((c-1) + c) = ((2c-1)-1) + c$, and by $\newcommand{\RomanNumeral}[1]{\MakeUppercase{\romannumeral #1}} (\RomanNumeral{3})$ we know that $f(f(c)) = f(c+1) = (c+1) + 1$ so $3c - 2 = c + 2 \rightarrow c = 2$ but we supposed c is odd, contradiction.
So we proved $c$ is even and as a result $c=2$, as we proved. Now we have that $f(2x) = 2x+1, f(2x+1) = 2x+2$, so we can generally conclude $\boxed{f(x) = x+1 \quad \forall x \in \mathbb{Z}}$ in this case, which is also a solution.
So both cases are solved and we found all the solutions. $\blacksquare$
Please feel free to point out if I've made any mistakes through this proof, thanks. :)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Ihatecombin
66 posts
#168
Y by
A pretty unique problem, bit annoying to be honest lol. The only solutions are $f(x) \equiv -1$ and $f(x) \equiv x+1$.
You can use \(P(x,f(x))\) to get
\[f(x - f^2(x)) = -1\]Afterwards let \(f(r) = -1\), we can use \(P(x,r)\)
to get
\[f(x+1) = f^2(x)\]Notice that the equation can be transformed into
\[f(x-f(y)) = f(x+1) - f(y) - 1\]Let \(f(p+1) = k \neq -1\) (otherwise \(f(x) \equiv -1\), which works).
Notice that if we use \(P(k+p+1,p+1)\), then we must have
\[f(p+1) = f(k+p+2) -k-1 \Longrightarrow 2k+1 =  f(k+p+2)\]Since \(k \neq -1\), we must have that \(2k+1 \neq k\) and \(2k+1\) is also in the image of \(f(x)\),
thus \(2(2k+1) + 1\) is also in the image and so on. Therefore the set containing all the integers which are in the image of \(f(x)\) is infinite.
Now let \(n\) be a number such that \(f(n) = k \neq -1\) for some \(k\). Substituting \(P(x,n)\) we have
\[f(x-k) = f(x+1)-k-1\]we already know that if \(k\) is in the image of \(f(x)\), then \(2k+1\) is in the image. Let \(f(m) = 2k+1\), we can substitute \(P(x,m)\) to get
\[f(x-2k-1) = f(x+1) - 2k - 2\]Thus we must have
\[f(x-2k-1) + k + 1= f(x-k) \Longrightarrow f(x) = f(x-k-1) +k+1\]for some \(k \neq -1\).

Notice that since \(f(x+1) = f^2(x)\), if \(f(x)\) is injective then we are done \(f(x) \equiv x+1\).
Therefore assume \(f(x) \not\equiv -1\) and \(f(x) \not\equiv x+1\) and \(f(x)\) is not injective. Let \(f(a) = f(b)\), notice that since \(f(x+1) = f^2(x)\), we must have
\[f(a+1) = f^2(a) = f^2(b) = f(b+1)\]similarly
\[f(a+2) = f^2(a+1) = f^2(b+1) = f(b+2) \Longrightarrow f(a) = f(b) = f(2b-a)\]By induction we have
\[f(a) = f(xb-(x-1)a)\]However substituting \(k+1\), we have
\[f(a) = f([k+1](b-a) + a)\]But since \(f(x) = f(x-k-1) + k +1\), we easily get
\[f(a) = f([k+1](b-a) + a) = f(a) + (k+1)(b-a)\]This is a clear contradiction.
This post has been edited 1 time. Last edited by Ihatecombin, Mar 13, 2025, 1:28 PM
Reason: Apparently \textbf{} doesn't cause bold text in AOPS
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Adywastaken
62 posts
#169
Y by
$y=f(x)\implies f(x-f(f(x)))=-1$
$y=x-f(f(x))\implies f(x+1)=f(f(x))$
$x=f(y)-1\implies f(-1)+1=f(f(f(x)-1))-f(x)=f(f(x))-f(x)=f(x+1)-f(x)$
So, $f=mx+c$, and matching coefficients,
$m^2=m, 2mc=c+1$
So, $(m,c)=(0,-1),(1,0)$
$f(x) \equiv -1$ or $f(x)=x+1$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Jakjjdm
4 posts
#170
Y by
The only solutions are $f(x) \equiv -1$ and $f(x) = x + 1$. Let $P(m,n)$ be the main equation plugging $x = m$ and $y = n$. $P(x,f(x)) : f(x - f(f(x))) = - 1$, so let k be an integer such that $f(k) = -1$, so $P(x,k) : f(x +1) = f(f(x))$. $P(f(y) - 1, y) : f(-1) + 1 = f(f(f(y) - 1)) - f(y) = f(y + 1) - f(y)$, so the function is linear. Now, Just check the cases when $f(x) \equiv c$, giving $f(x) \equiv -1$, and check when $f(x) = x + c$, that gives $f(x) = x + 1$, and we're done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ezpotd
1293 posts
#171
Y by
We claim the only such functions that work are $f(x) = x + 1$ and $f(x) = -1 $. It is obvious to see that both of these work.

Set $y = f(x)$, then $f$ is $-1$ at some input, then set $y$ such that $f(y) = -1$, so $f(x + 1) = f(f(x))$. If $f$ is injective, we are done. Otherwise, take two inputs $a,b$ such that $f(a) = f(b), a \neq b$. Then we also have $f(a +1) = f(f(a)) = f(f(b)) =  f(b + 1)$, applying this inductively gives $f$ periodic with period $ b -a$. Assume $f$ is periodic, thus it has finite range. Now consider the range $R$ of $f$, take the largest element $l$ in $R$ and the smallest element $s$ in $R$, then since $f(f(x)) = f(x + 1)$, $f(f(x))$ has the same range $R$, so set $x$ with $f(f(x)) = l, y$ with $f(y) = s$, then we have $l - s - 1 \in R$. We must then have $s \ge -1$ otherwise a number at least $l + 1$ would be in $R$, contradiction, but since $-1 \in R$ we have $s = -1$. Likewise $l = -1$, so $f$ must be constantly $-1$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
youochange
180 posts
#172
Y by
ABCDE wrote:
Determine all functions $f:\mathbb{Z}\rightarrow\mathbb{Z}$ with the property that \[f(x-f(y))=f(f(x))-f(y)-1\]holds for all $x,y\in\mathbb{Z}$.
can someone pls veify my sol :maybe:
f(x)=x+1
This post has been edited 2 times. Last edited by youochange, May 13, 2025, 12:31 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
youochange
180 posts
#173
Y by
Bummmmmp
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
pco
23515 posts
#174 • 1 Y
Y by youochange
youochange wrote:
ABCDE wrote:
Determine all functions $f:\mathbb{Z}\rightarrow\mathbb{Z}$ with the property that \[f(x-f(y))=f(f(x))-f(y)-1\]holds for all $x,y\in\mathbb{Z}$.
can someone pls veify my sol :maybe:
Let $P(x,y)$ be the assertion.

Let $f(a)=0$ for a special $a \in \mathbb Z$
...
And what if such $a$ does not exist ?
(which is the case in the forgotten - in your post - solution $f\equiv -1$)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
heheman
1004 posts
#175
Y by
BRO MY COMPUTER JUST RESTARTED AND DELETED ALL MY PROGRESS
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
heheman
1004 posts
#176
Y by
Answers are $f(x) = -1$ for all $x$ or $f(x) = x+1$ for all $x$.

Put $y=f(x)$ to see some $f(u) = -1$.
Put $(x, u)$ to see that $f(f(x)) = f(x+1)$.
If $f$ is injective, then $f(x) = x+1$. Otherwise, some $f(a)=f(b)$ with $a \ne b$.
Then $f(f(a)) = f(f(b))$ implies that $f(a+1) = f(b+1)$ etc. so $f$ is periodic.
Suppose $g$ and $l$ are the greatest and least values in the period. Let $x_g$ and $x_l$ be very large values of $x$ that achieves $g, l$ when plugging them into $f$ (we want $x_g, x_l$ to be large so $x-f(y)$ stays in the periodic part). Note that $(x_l-1, x_g)$ and $(x_g-1, x_l$ gives $l-g-1$ and $g-l-1$ are both in the period. If $l < -1$ the second expression is larger than $g$, contradiction. If $g > -1$, it would make the first expression less than $l$, contradiction. Then we have $-1 \le l \le g \le -1$, so $l = g = -1$. So $f(x) = -1$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
heheman
1004 posts
#177
Y by
comment
This post has been edited 1 time. Last edited by heheman, May 21, 2025, 9:02 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MathIQ.
46 posts
#178
Y by
Sol:Click to reveal hidden text
Z K Y
N Quick Reply
G
H
=
a