Live Discussion!
Game Jam: An Ultrametric Number Guessing Game is going on now!

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

Contests & Programs AMC and other contests, summer programs, etc.
AMC and other contests, summer programs, etc.
3 M G
BBookmark  VNew Topic kLocked
Contests & Programs AMC and other contests, summer programs, etc.
AMC and other contests, summer programs, etc.
3 M G
BBookmark  VNew Topic kLocked
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
djmathman mock 2013 p12
alcumusftwgrind   5
N 13 minutes ago by alcumusftwgrind
Source: djmathman mock 2013 p12
whats wrong with my solution?
let $a=\log y$ and $b= \log x$ so $a/b=6$ and $(\log2+a)/(\log2+b)=5\implies \log 2+a=5\log 2+5b\implies a=4\log 2+5b \implies 6b=4\log2+5b\implies b=4\log 2 $

therefore $a=24\log2$

our desired expression is $(\log 4+a)/(\log4+b)=(2 \log 2 +a) / (2 \log 2 +b)= 26/6=13/3$
5 replies
alcumusftwgrind
Monday at 9:56 PM
alcumusftwgrind
13 minutes ago
AMC 10/12 trainer
grapecoder   12
N 22 minutes ago by clod
Hey guys, I created an AMC 8/10/12 trainer a while back which has a bunch of different resources. It saves statistics and has multiple modes, allowing you to do problems in an alcumus style or full exam mode with a timer and multiple solutions scraped from the AOPS wiki. If anyone's interested, I can work on adding AIME and more.

Here's the link: https://amctrainer.org
And here's the code (if anyone's interested): https://github.com/megagames-me/amc-trainer

Any feedback/suggestions are appreciated!
12 replies
grapecoder
Oct 22, 2023
clod
22 minutes ago
AMC 8 score thread
Squidget   238
N 39 minutes ago by chaihanrui
$\begin{tabular}{c|c|c|c|c}Username & Grade & Score \\ \hline
Squidget & 7 & 21 \\
\end{tabular}$

238 replies
Squidget
Jan 30, 2025
chaihanrui
39 minutes ago
Max weight tree game
v_Enhance   6
N an hour ago by bin_sherlo
Source: USA TSTST 2025/6
Alice and Bob play a game on $n$ vertices labelled $1, 2, \dots, n$. They take turns adding edges $\{i, j\}$, with Alice going first. Neither player is allowed to make a move that creates a cycle, and the game ends after $n-1$ total turns.
Let the weight of the edge $\{i, j\}$ be $|i - j|$, and let $W$ be the total weight of all edges at the end of the game. Alice plays to maximize $W$ and Bob plays to minimize $W$. If both play optimally, what will $W$ be?

Max Lu, Kevin Wu
6 replies
v_Enhance
Jul 1, 2025
bin_sherlo
an hour ago
specific topic studying
Samcool   2
N an hour ago by HiCalculus
I was wondering if there are any reasources that i could get practice porblems for specific topics like Number Theory or maybe even more specific like Mod or Diophante Equations etc sop I can pratice on these specific areas since I know what topics im not the best in.
2 replies
Samcool
Yesterday at 4:07 AM
HiCalculus
an hour ago
IMO ShortList 1998, algebra problem 2
orl   40
N an hour ago by heheman
Source: IMO ShortList 1998, algebra problem 2
Let $r_{1},r_{2},\ldots ,r_{n}$ be real numbers greater than or equal to 1. Prove that

\[ \frac{1}{r_{1} + 1} + \frac{1}{r_{2} + 1} + \cdots +\frac{1}{r_{n}+1} \geq \frac{n}{ \sqrt[n]{r_{1}r_{2} \cdots r_{n}}+1}. \]
40 replies
orl
Oct 22, 2004
heheman
an hour ago
IMO Shortlist 2011, G4
WakeUp   135
N 2 hours ago by LHE96
Source: IMO Shortlist 2011, G4
Let $ABC$ be an acute triangle with circumcircle $\Omega$. Let $B_0$ be the midpoint of $AC$ and let $C_0$ be the midpoint of $AB$. Let $D$ be the foot of the altitude from $A$ and let $G$ be the centroid of the triangle $ABC$. Let $\omega$ be a circle through $B_0$ and $C_0$ that is tangent to the circle $\Omega$ at a point $X\not= A$. Prove that the points $D,G$ and $X$ are collinear.

Proposed by Ismail Isaev and Mikhail Isaev, Russia
135 replies
WakeUp
Jul 13, 2012
LHE96
2 hours ago
Find all natural numbers n
Iwanttostudymathbetter   2
N 2 hours ago by Feita
Find all natural numbers $n$ that satisfy:
$\sigma(n)-\varphi(n)=n+4$
2 replies
Iwanttostudymathbetter
Mar 9, 2025
Feita
2 hours ago
n+1 subsets
sturdyoak2012   3
N 2 hours ago by ostriches88
Suppose you have $n+1$ subsets of $\{1, 2, \ldots, n\}$ such that any two subsets have an intersection size of exactly one. Show that two of these subsets must be the same.
3 replies
sturdyoak2012
Sep 20, 2020
ostriches88
2 hours ago
Third degree and three variable system of equations
MellowMelon   59
N 2 hours ago by lpieleanu
Source: USA TST 2009 #7
Find all triples $ (x,y,z)$ of real numbers that satisfy the system of equations
\[ \begin{cases}x^3 = 3x-12y+50, \\ y^3 = 12y+3z-2, \\ z^3 = 27z + 27x. \end{cases}\]

Razvan Gelca.
59 replies
MellowMelon
Jul 18, 2009
lpieleanu
2 hours ago
About APMO 2025
AlexanderWangUSA   4
N 2 hours ago by ehuseyinyigit
When will the APMO 2025 problems be posted?
4 replies
AlexanderWangUSA
4 hours ago
ehuseyinyigit
2 hours ago
Simple geometry
LuxusN   3
N 2 hours ago by historypasser-by
Let triangle $ABC$ with orthocenter $H$ and circumcenter $O$, $AH \cap BC=D$.. Let $M$ be the midpoint $BC$, $MH$ meets $(O)$ at $N$. The line parallel to $AO$ through H meets $BC$ at $P$. Prove that $(DNP)$ is tangent to $(ABC)$.IMAGE
3 replies
LuxusN
5 hours ago
historypasser-by
2 hours ago
functional equation
COCBSGGCTG3   15
N 2 hours ago by grupyorum
Source: Azerbaijan Senior Math Olympiad Training TST 2025 P2
Find all functions $f: \mathbb{R} \rightarrow \mathbb{R}$ such that the following equality holds for any real numbers $x$ and $y$.
$f(f(x) + xf(y)) = xf(y + 1)$
15 replies
COCBSGGCTG3
Jul 21, 2025
grupyorum
2 hours ago
Functional equation
Eul12   5
N 2 hours ago by jasperE3
Source: My creation
Any help for my problem
Let a be a positive integer. Find all increasing function f : IN---->IN such that f(f(n)) = (a^2)*n
for all positive integer n.
5 replies
Eul12
Jul 27, 2025
jasperE3
2 hours ago
Convolution of order f(n)
trumpeter   77
N Jun 24, 2025 by eg4334
Source: 2019 USAMO Problem 1
Let $\mathbb{N}$ be the set of positive integers. A function $f:\mathbb{N}\to\mathbb{N}$ satisfies the equation \[\underbrace{f(f(\ldots f}_{f(n)\text{ times}}(n)\ldots))=\frac{n^2}{f(f(n))}\]for all positive integers $n$. Given this information, determine all possible values of $f(1000)$.

Proposed by Evan Chen
77 replies
trumpeter
Apr 17, 2019
eg4334
Jun 24, 2025
Convolution of order f(n)
G H J
G H BBookmark kLocked kLocked NReply
Source: 2019 USAMO Problem 1
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
john0512
4194 posts
#67
Y by
We claim that the answer is all even positive integers.

Say that a positive integer $n$ is stuck if $f(n)=n$ and $f(k)\neq n$ for all $k\neq n$. We will gradually build up to the claim that all odd $n$ are stuck. Denote by $ord(n)$ the minimum $m\geq 1$ such that $f^m(n)=n.$

Claim 1: 1 is stuck. Clearly, $$f^{f(1)}(1)=f(f(1))=1.$$Now, if $f(1)\neq 1$, then $f(1)=2k$ and $f(2k)=1$ for some $k$ since $ord(1)=2$. However, we would then have $$f^{f(2k)}(2k)f(f(2k))=f^{1}(2k)f(1)=2k,$$which is a contradiction. Thus, $f(1)=1.$ Now, if $f(r)=1$ for $r\neq 1,$ then $$f^{f(r)}(r)f(f(r))=f^{1}(r)f(1)=1,$$also a contradiction. Hence, 1 is stuck.

Now, we will show that if $n$ is an odd positive integer for which all odd positive integers less than $n$ are stuck, then $n$ is also stuck. We have $$f^{f(n)}(n)f(f(n))=n^2.$$Note that $f^{f(n)}(n)$ and $f(f(n))$ must then both be odd since $n^2$ is odd. However, since we are assuming all odd positive integers less than $n$ are stuck, they cannot be less than $n$, and hence $$f^{f(n)}(n)=f(f(n))=n.$$Assume FTSOC that $f(n)\neq n$. Then, $ord(n)=2$, so $f(n)$ must be even since $ord(n)\mid f(n).$ Let $f(n)=2k,$ so $f(2k)=n.$ Then, $$f^{f(2k)}(2k)f(f(2k))=f^n(2k)(2k)=2kn,$$which is a contradiction. Hence, $f(n)=n$. Then, FTSOC assume that $f(z)=n$ for some other $z$. Then, $$f^n(z)f(f(z))=n^2,$$contradiction. Hence, $n$ is stuck.

Thus, by induction, all odd positive integers are stuck.

Therefore, $f(1000)$ cannot be odd. For a construction for even, let $f(1000)=2k$, $f(2k)=1000$, and $f(n)=n$ for all $n\notin\{2k,1000\}.$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
pi_is_3.14
1437 posts
#68
Y by
Answer is evens, construction is $f(1000) = k, f(k) = 1000$, and everything else fixed point.

Proof Odds Don't Work:

First, $f(f(1)) \cdot f^{f(1)}(1) = 1 \implies f(f(1)) = 1$.

Note that if any $a > 1$ has $f(a) = 1$, plugging in $a$ to the equation gives $1 = a^2$, obviously false.

So if $f(1) = a > 1$, $f(a) = 1$ which isn't allowed so $f(1) = 1$.

Next, we claim if $f(f(m)) = m$ and $f^{f(m)}(m) = m$ for an odd $m$, $f(m) = m$. Suppose for contradiction, $f(m) = n$ for an even $n$ as this implies $f(n) = m$ which when plugging in $n$ into the FE, gives a contradiction.

Now, induct to prove $f(m) = m$ with base case proven. Suppose until $m - 2$ it's proven. The claim each each productand in $f^{f(m)}(m) \cdot f(f(m)) = m^2$ is $m$. Note that otherwise, one of them must be less then $m$ (and odd). Therefore, this implies at some point, $f(j) = M$ for $j \neq M$ for some odd $M < m$. However, plugging in $j$ into the FE, gives $M^2 = j^2$ clearly false, so 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.
ATGY
2502 posts
#69
Y by
Very cool problem!

First off, we claim injectivity of $f(x)$. Say $f(a) = f(b)$, $P(a)$, $P(b)$, yield $a^2 = b^2 \implies a = b$. It follows that $f^n(x)$ is injective as well. Now, we claim that $f(1) = 1$. $P(1)$ yields $f(f(1)) = 1$. $P(f(1))$ gives:
$$f(f(1))f(1) = f(1) \implies f(1) = 1$$Now, we claim that $f(x) = x$ when $2 \nmid x$ by induction. Our base case is true, so say it's satisfied for $\{1, 3, \dots, x - 2\}$. We have:
$$f(f(x)){f(f(\ldots f}_{f(x)\text{ times}}(x)\ldots)) = x^2$$As $f(1), f(3), \dots f(x - 2) = 1, 3, \dots, x - 2$, we have $f(f(x)), {f(f(\ldots f}_{f(x)\text{ times}}(x)\ldots)) > x - 2$, which implies $f(f(x)) ={f(f(\ldots f}_{f(x)\text{ times}}(x)\ldots)) = x$. This means that $f$ is an involution. Take $P(f(x))$ to get:
$$f^{x + 1} (x) f(x) = f(x)^2 \implies f^{x + 1} (x) = f(x) \implies f^x (x) = x = f(f(x))$$As $x$ is odd and $f$ is injective, we get $f^{x - 2} (x) = x = f(f(x)) = f^{x - 4} (x) = \dots = f(x) = f(f(x))$. Due to injectivity, we have $f(x) = x$. This means that all evens must map to evens only (due to injectivity once more), hence $f(1000)$ must be even. Now, we can take a trivial construction to finish the problem (for evens):
\[f(x) =
\begin{cases*}
2\alpha & $x = 1000$\\
1000 & $x = 2\alpha$
\end{cases*}\]Hence, we are done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
cj13609517288
1940 posts
#70
Y by
This typeup is kinda bad because I am salty I didn't type this up when I first solved it.

Note that $f$ is clearly injective. Now we will strong induct over the odd numbers to show that $f(f(n))=n$ for all odd $n$. Base case $n=1$ is trivial, so assume that everything below $n$ works. Then if $f(f(n))<n$ we lose by injectivity, so assume FTSOC $f(f(n))>n$, so the LHS is less than $n$, say $k$. Then the only $x$ that can have $f(f(x))=k$ is $k$, so we have $f(n)=k$ is odd. But that means $f(k)=f(f(n))$ has to be odd, meaning that $f(k)=k$ (by plugging in $k$), contradiction.

Now note that if an odd $n$ is not a fixed point, then the LHS requires $f(n)$ to be even, say $m$, but then $m$ is not a fixed point either, so we need $f(m)$ to be even, contradiction, so $f(n)=n$ for all odd $n$.

Now we will handle the even numbers and prove that $f(f(n))=n$ also with induction. Note that if you map to an odd number, you lose, so $f(f(2))=2$. Then for the inductive step, note that if $f(f(n))<n$ then the LHS will be stuck at that value which is too small, while if $f(f(n))>n$ then the LHS neesd to be less than $n$ which is impossible by injectivity.

We can see that the even numbers can be fixed points or paired. Thus the answers are all even numbers, with construction $f(1000)=2k$, $f(2k)=1000$, and $f$ is the identity for everything else. These clearly work. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
bjump
1070 posts
#71
Y by
We claim the set of all possible values of $f(1000)$ is the same as the set of even natural numbers.

Note that if $k$ is odd, then $f^{f(k)}(k), f^{2}(k) \equiv 1 \pmod{2}$, if we plug in $n=f(k)$. we get $f(k)=f^{f(f(k))+1}(k) \equiv f^{k+1}(k) \equiv 1 \pmod{2}$, so if $f(k)$ is odd. If $f(a) \equiv 1 \pmod{2}$ for an even $a$, then $f(f(a))f^{f(a)}(a)$ is forced to be odd and cannot equal $a^2$ which is even, so for any even $a$, $f(a) \equiv 0 \pmod{2}$.

Now for a construction take $f(x) =\begin{cases} a  & x= 1000 \\  x & x \neq a\\1000 & x = a \end{cases}$ for any even natural number $a$, and our proof is complete. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
RedFireTruck
4269 posts
#72
Y by
We claim that $f(1000)$ can be $2k$ for any positive integer $k$.The construction is $f(1000)=2k$, $f(2k)=1000$, and $f(n)=n$ for all $n\ne 1000, 2k$.

We claim that if $f^{f(a)}(a)=f(f(a))=a$ for some odd $a$, then $f(a)=a$.

Assume FTSOC that $f(a)=k\ne a$ and $f(k)=a$. Since $f^k(a)=a$, we must have $2|k$. We must have $f^a(k)f(f(k))=k^2$ but this isn't true as $f^a(k)=a$ and $f(f(k))=k$, as desired.

We claim that if $f(a)=a$, then $f(b)\ne a$ for all $b\ne a$.

Assume FTSOC that $f(b)=a$. Then, $f^a(b)f(f(b))=a^2\ne b^2$, as desired.

We claim that $f^{f(a)}(a)=f(f(a))=a$ for all odd $a$ so $f(a)=a$ for all odd $a$.

This is true for $a=1$ it is the only way to factor $1^2$.

We see that it is true for $a=p$ for odd primes $p$ as $1$ cannot be one of the factors of $p^2$.

We see that it is true for $a=p^k$ for odd primes $p$ and integers $k\ge 2$ as $p^n$ cannot be one of the factors of $p^{2k}$ for $n<k$.

We see that it is true for $a=pq^k$ for odd primes $p,q$ and integers $k\ge 1$ as a power of a prime cannot be one of the factors of $p^2q^{2k}$ and $pq^n$ cannot be one of the factors for $n<k$.

In general, we can first induct on the number of primes, and to prove it true for a certain number of primes, we induct on the lexicographical order of exponents when written from least to greatest.

Therefore, $f(a)=a$ for all odd $a$ and we are done.

edit: after reading other sols, i should've just inducted on $a$ normally instead of inducting on the prime factorization weirdly oops...
This post has been edited 2 times. Last edited by RedFireTruck, Jun 27, 2024, 2:26 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Ilikeminecraft
738 posts
#73
Y by
Claim: $f$ is injective
Proof: Assume $f(a) = f(b).$ Then, $a^2 = f(\dots f(a)) f(f(a)) = f(\dots f(b))f(f(b)) = b^2$. Thus, $a = b$ since all of range/domain are positive.
Claim: $f(n) = n$ for all odd $n$
Proof: We prove this by induction. For the base case, note that if $f(1) = k,$ we have $f(k) = 1$ from $n = 1.$

Taking $n = k,$ we get $k = 1$ or $k^2,$ which tells us $k = 1.$ Now, assume $f(n) = k \neq n.$ We get that $f(k) f(\dots f(n)\dots) = n^2.$ Hence, if $k\neq n,$ then either $f(k) < n$ or $f(\dots f(n)\dots) < n.$ In the former case, this is impossible since this implies $f(k) = f(n).$ The latter case implies $n = k.$

Observe that any involution function $f$ works. Hence, we can take the construction:
\[f \equiv \begin{cases}
    2k & x = 1000 \\
    1000 & x = 2k \\
    x & x \neq 2k, 1000
\end{cases}\]
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HamstPan38825
8904 posts
#74
Y by
The answer is all even integers $n$.

Construction: Let $2n$ be any even positive integer, and consider a function $f$ defined by $f(1000) = 2n$, $f(2n) = 1000$, and $f(k) = k$ for all other positive integers $k$.

Then, the assertion holds vacuously for $n = k$. We also have $f^{f(1000)}(1000) = 1000$ and $f^{f(2n)}(2n) = 2n$, so the assertion holds for $2n$ and $1000$ too, which completes the verification.

Bound: The main claim is the following:

Claim: For all odd positive integers $n$, $f(n) = n$.

Proof: We will perform a direct induction on the value of $n$. For our base case, suppose $\eta(n) = 0$, i.e. $n = 1$. Then $f(f(1)) = 1$; let $u = f(1)$, such that $f(f(u)) = u$. The assertion applied to $u$ yields $uf(u) = f(u) f(f(u)) = u^2$, hence $u = 1$.

Now, for the inductive step, suppose that the result is true for all $n \leq k$ for a nonnegative integer $k$. First, I claim that if $n \leq k$ and a positive integer $m$ satisfies $f^c(m) = n$ for a positive integer $c$, then $m = n$. It suffices to prove the case $c=1$. Applying the given assertion to $m$ yields $n^2 = f^n (m) f(f(m)) = m^2$ as $n \geq 1$, which yields $m = n$, as needed.

Next, let $n$ be a positive integer and assume that $f(k) = k$ for all odd positive integers less than $n$. Then, we have two cases:
  • If $f(f(n)) \neq f^{f(n)}(n)$, then one of these two quantities is an odd integer $m$ strictly less than $n$, as they multiply to $n^2$. By the result we proved earlier and the inductive hypothesis, it follows $n = m$, which is clearly impossible.
  • If $f(f(n)) = f^{f(n)}(n) = n$, then $f(n)$ can be odd or even. If $f(n)$ is odd, then $n=f\left(f^{f(n) - 1}(n)\right) = f(n)$ and we have the result. If $f(n) = 2m$ is even, then applying the assertion to $2m$ yields $n = f^n(2m) = 2m$, which is a clear contradiction.
Thus it follows that $f(n) = n$ too, which completes the proof. $\blacksquare$

So now assume that $f(1000) = n$ is an odd integer. Then $f^n(1000) = f(f(1000)) = n$, hence $n = 1000$, which is impossible. Thus $f(1000)$ must be even, and this concludes the proof.
This post has been edited 1 time. Last edited by HamstPan38825, Mar 15, 2025, 4:09 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
chenghaohu
109 posts
#75
Y by
I claim that $f(1000)$ could be any even positive integer.

To show that there exist a function for $f(1000) = k$, for every even positive integer $k$, consider $f(x)$ such that $f(1000) = k$, $f(k) = 1000$, and $f(n) = n$ for all other integers $n$. Then for all other integers $n$, $f^k(n) = n$ for any positive integer $k$, so indeed the definition of the function holds. Since $f(1000) = k$ is even, the LHS of the equation for $n = 1000$ becomes $1000$, as $f^{2j}(1000) = 1000$ for all positive integers $j$, so the given equation becomes $ 1000=\frac{1000^2}{1000}$, which holds. Similarly, when we have $n = k$, the $f^{2i}(k) = k$ for all positive integers $i$, so the equation for $n = k$ becomes $k = \frac{k^2}{k}$, which holds. Thus all the solutions we described have functions that satisfy them.

Now, I prove the following: If $f(a) = z$, where $z$ is an odd number, then we must have that $a = z$.

We do induction on the number of primes dividing $z$ with multiplicity.

The base cases are $z = 1$ and $z = p$, where $p$ is an odd prime. $z = 1$ gives that $f(f(1)) = 1$. If $f(1) = b$, where $b$ is odd, then $\frac{b^2}{f(f(b))} = b = f(b) = 1$, due to the fact that $f(b) = 1$, forcing $b = 1$. If $f(1) = c$, where $c$ is even, then $\frac{c^2}{f(f(c))} = c = f(c) = 1$, creating a contradiction. Thus $1$ is indeed the only $a$ such that $f(a) = a$.

For $z = p$, we have that $f(f(p)) = p$ is forced, as neither $f^{f(p)}(p)$ nor $f(f(p))$ can equal to $1$. If $f(p) = a$, where $a$ is odd, then $f(a) = p$ gives that $p = \frac{a^2}{a}$, forcing $a = p$. Similarly, if $a$ is even, we also force $a = p$, creating contradiction. Thus the only $a$ such that $f(a) = p$ is $p$. So we proved the base cases.

For the inductive step, let the inductive hypothesis be true for all $n$ which have $j$ primes dividing it, counting multiplicity. We will show that it also holds for all $n$ which have $j+1$ primes dividing it. By the inductive hypothesis, we must have $f(f(qn)) = qn$ for any $q$ a prime. If $f(qn) = b$, where $b$ is odd, then $f(b) = qn$ gives that $qn = \frac{b^2}{b}$, forcing $b = qn$. Similarly, if $b$ is even, we also force $b = qn$, creating contradiction. Thus the only positive integer $b$ such that $f(b) = qn$ is $b = qn$, and by induction our claim holds.

Thus, we showed that $f(1000)$ cannot be odd, and we finished the problem.
This post has been edited 1 time. Last edited by chenghaohu, Mar 16, 2025, 3:08 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
peace09
5459 posts
#76
Y by
The answer is even integers.

Construction. Swap $2k$ with $1000$ and fix everything else; for $n=2k,1000$ we have
\[f^{f(n)}(n)=f^{\text{even}}(n)=n=\tfrac{n^2}{n}=\tfrac{n^2}{f^2(n)}\]and other $n$ satisfy the FE clearly.

Necessity. We inductively show that each odd integer is its own unique preimage. For the base case, setting $n:=1$ implies that $f^2(1)\mid 1^2$, and so $f^2(1)=1$ with $f(1)$ the unique preimage of $1$. Then $n:=f(1)$ produces
\[f^{f^2(1)+1}(1)=\tfrac{f(1)^2}{f^3(1)}\implies 1=\tfrac{f(1)^2}{f(1)}=f(1).\]Now, assume the inductive hypothesis holds for all odds less than some $m$. Setting $n:=m$ gives $f^{f(m)}(m)f^2(m)=m^2$, and since both the values on the LHS are odd, the inductive assumption implies that they are at least $m$. So they are exactly $m$, and in particular $f^2(m)=m$ with $f(m)$ the unique preimage of $m$. Then $n:=f(m)$ results in
\[f^{f^2(m)+1}(m)=\tfrac{f(m)^2}{f^3(m)}\implies f^{m+1}(m)=f(m),\]and since $m$ is odd the LHS becomes $m$, completing the inductive step. $\square$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
jcoons91
15 posts
#77
Y by
We are given a function \( f: 2\mathbb{N} \to 2\mathbb{N} \) that is an involution, meaning that applying \( f \) twice returns the original input, i.e., \( f(f(n)) = n \). We claim that such a function must be of the form

\[
f(n) = 
\begin{cases} 
n, & \text{if } n \text{ is odd}, \\
g(n), & \text{if } n \text{ is even}.
\end{cases}
\]
To establish this, we first demonstrate that \( f \) is injective. Suppose that \( f(a) = f(b) \). Applying \( f \) again, we get

\[
f(f(a)) = f(f(b)),
\]
which implies that \( a = b \) due to the properties of an involution. Thus, \( f \) is injective. Next, we show that \( f \) is indeed an involution by considering a set \( S = \{n, f(n), f(f(n)), f(f(f(n))), \dots\} \) and proving that \( |S| \leq 2 \). Taking a minimal element \( m \) in \( S \), we find that if \( f(f(m)) < m \), then \( f(f(m)) \) belongs to \( S \), contradicting the minimality of \( m \). If \( f(f(m)) > m \), then applying \( f \) once more gives \( f(f(m)) = \frac{m^2}{f(m)} < m \), which is again a contradiction. Therefore, we must have \( f(f(m)) = m \), confirming the claim that \( |S| \leq 2 \), which ensures \( f \) is an involution.

Furthermore, we establish that \( f \) maps even numbers to even numbers. If \( f(2k) \) were odd, then applying \( f \) twice would yield \( f(f(2k)) = 2k \), contradicting our assumption that \( f(2k) \) was odd. Hence, \( f(2k) \) must also be even. Finally, we verify that \( f \) fixes all odd numbers. If \( f(2k+1) \) were even, then applying \( f \) would lead to a contradiction, as \( f(\text{even}) = 2k+1 \) contradicts our earlier finding that even numbers map to even numbers. If \( f(2k+1) \) were odd, then applying \( f \) twice gives \( f(f(2k+1)) = 2k+1 \), ensuring \( f(2k+1) = 2k+1 \), which confirms that odd numbers remain unchanged under \( f \). This completes the proof. \(\square\)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
EpicBird08
1772 posts
#78 • 1 Y
Y by giratina3
Answer is all even positive integers; the construction is to let $f(n) = n$ for all $n$ but we swap $f(1000) = 2k$ and $f(2k) = 1000.$ This can be checked to work.

Now we will prove that all odd integers are fixed via induction. For the base case, we use $n=1$ to get $\frac{1}{f(f(1))}$ is an integer, so $f(f(1)) = 1.$ Using $n = f(1)$ gives $$f^{f(f(1))} (f(1)) = f(f(1)) = 1 = \frac{f(1)^2}{f(f(f(1)))} = \frac{f(1)^2}{f(1)} = f(1),$$so $f(1) = 1.$

Now assume $f(n) = n$ for all odd $n \le 2k - 1.$ Using $n = 2k+1$ in the equation gives $$f^{f(2k+1)} (2k+1) \cdot f(f(2k+1)) = (2k+1)^2.$$Clearly $f$ is injective, and one of the factors is at most $2k+1.$ If it were less than $2k+1,$ then it must be at most $2k-1,$ and spamming injectivity gives a contradiction. Thus $f(f(2k+1)) = 2k+1.$ Using $n = f(2k+1)$ gives $$f^{f(f(2k+1))} (f(2k+1)) = f^{2k+2} (2k+1) = \frac{f(2k+1)^2}{f(f(f(2k+1)))}.$$Since $f^{2k+2} (2k+1) = 2k+1$ and $f(f(f(2k+1))) = f(2k+1),$ we get $f(2k+1) = 2k + 1.$ This completes the induction, so $f(n) = n$ for all odd $n.$ In particular, since $f$ is injective, $f(1000)$ can never be odd, as desired.

Motivation
This post has been edited 2 times. Last edited by EpicBird08, Mar 18, 2025, 1:43 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
quantam13
161 posts
#79
Y by
The answer is all even integers $k$, which can be achieved by setting $f(1000)=2k$, $(2k)=1000$ and making $f$ fix everything else, which clearly works.

Now to see that it can only achieve even numbers, firstly notice that $f$ is both injective and surjective. Thus it suffices to prove that $f$ fixes all odd numbers. Though this is not so hard with a simple induction.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ray66
113 posts
#80
Y by
The answer is all even integers $k$.

First we prove that $f$ is injective. Suppose that $f(a)=f(b)$. Then $a^2 = f^{f(a)}(a) f^2(a) = f^{f(b)}(b) f^2(b) = b^2$, so this implies $a=b$.
Next we prove that $f(x)=x$ for all odd $x$. We do this by induction. Let $P_x$ denote the assertion that $f(i)=i$ for all odd $I <x$. Suppose that there exists an odd integer $x$ such that $f(x) \neq x$, and assume that $P_x$ is true. Then one of $f^2(x)$ or $f^{f(x)}(x)$ must be an odd integer $k$ than $x$ because they multiply to $x^2$. However $f$ is injective, so this would imply $x=k$, contradiction. This completes the induction with base case $f(1)=1$ (because f(1) cannot map to any other odd number by test), so $f(x)=x$ for all positive odd integers $x$.

This implies that $f(y)$ must map to an even integer for any even $y$ because $f$ is injective. Now to prove that $f(1000)$ ranges over all even numbers, consider $f(f(1000))=1000$. Each even element is a part of a cycle of length 2, and this clearly works, so we finish.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
eg4334
745 posts
#81
Y by
We have $f^{f(n)}(n) f^2(n) = n^2$. Obviously, $f$ is injective.

Next we find $f(1)$. Note that $f(f(1))=1$ and $f^{f(1)}(1)=1$. $f(1)=1$ works fine, and clearly $f(1)$ must otherwise be even. Now if $f(1)=2a$ then $f(2a)=1$ and we have $4a^2 = f^{f(2a)}(2a) f^2(2a)$ which is not true. Hence, $f(1)=1$.

Then I claim $f(2k+1)=2k+1$ for all integers $k$. We prove this using induction. We thus assume the statement is true for $0, 1, \dots, k-1$. Then we have $f^{f(2k+1)}(2k+1) f^2(2k+1)=(2k+1)^2$. Both terms on the LHS must be $2k+1$. if, for the sake of contradiction some term is an odd number $a$ less than $2k+1$. That then implies that $f(2k+1)=a$ which violates injectivity. Thus our induction is complete.

To show all even numbers work, $f(\text{odd}) = \text{odd}$, $f(1000)=2k$, $f(2k)=1000$, and $f(\text{other evens}) = \text{other evens}$ works.
Z K Y
N Quick Reply
G
H
=
a