We have your learning goals covered with Spring and Summer courses available. Enroll 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 March Highlights and 2025 AoPS Online Class Information
jlacosta   0
Mar 2, 2025
March is the month for State MATHCOUNTS competitions! Kudos to everyone who participated in their local chapter competitions and best of luck to all going to State! Join us on March 11th for a Math Jam devoted to our favorite Chapter competition problems! Are you interested in training for MATHCOUNTS? Be sure to check out our AMC 8/MATHCOUNTS Basics and Advanced courses.

Are you ready to level up with Olympiad training? Registration is open with early bird pricing available for our WOOT programs: MathWOOT (Levels 1 and 2), CodeWOOT, PhysicsWOOT, and ChemWOOT. What is WOOT? WOOT stands for Worldwide Online Olympiad Training and is a 7-month high school math Olympiad preparation and testing program that brings together many of the best students from around the world to learn Olympiad problem solving skills. Classes begin in September!

Do you have plans this summer? There are so many options to fit your schedule and goals whether attending a summer camp or taking online classes, it can be a great break from the routine of the school year. Check out our summer courses at AoPS Online, or if you want a math or language arts class that doesn’t have homework, but is an enriching summer experience, our AoPS Virtual Campus summer camps may be just the ticket! We are expanding our locations for our AoPS Academies across the country with 15 locations so far and new campuses opening in Saratoga CA, Johns Creek GA, and the Upper West Side NY. Check out this page for summer camp information.

Be sure to mark your calendars for the following events:
[list][*]March 5th (Wednesday), 4:30pm PT/7:30pm ET, HCSSiM Math Jam 2025. Amber Verser, Assistant Director of the Hampshire College Summer Studies in Mathematics, will host an information session about HCSSiM, a summer program for high school students.
[*]March 6th (Thursday), 4:00pm PT/7:00pm ET, Free Webinar on Math Competitions from elementary through high school. Join us for an enlightening session that demystifies the world of math competitions and helps you make informed decisions about your contest journey.
[*]March 11th (Tuesday), 4:30pm PT/7:30pm ET, 2025 MATHCOUNTS Chapter Discussion MATH JAM. AoPS instructors will discuss some of their favorite problems from the MATHCOUNTS Chapter Competition. All are welcome!
[*]March 13th (Thursday), 4:00pm PT/7:00pm ET, Free Webinar about Summer Camps at the Virtual Campus. Transform your summer into an unforgettable learning adventure! From elementary through high school, we offer dynamic summer camps featuring topics in mathematics, language arts, and competition preparation - all designed to fit your schedule and ignite your passion for learning.[/list]
Our full course list for upcoming classes is below:
All classes run 7:30pm-8:45pm ET/4:30pm - 5:45pm PT unless otherwise noted.

Introductory: Grades 5-10

Prealgebra 1 Self-Paced

Prealgebra 1
Sunday, Mar 2 - Jun 22
Friday, Mar 28 - Jul 18
Sunday, Apr 13 - Aug 10
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
Tuesday, Mar 25 - Jul 8
Sunday, Apr 13 - Aug 10
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, Mar 23 - Jul 20
Monday, Apr 7 - Jul 28
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
Sunday, Mar 16 - Jun 8
Wednesday, Apr 16 - Jul 2
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
Monday, Mar 17 - Jun 9
Thursday, Apr 17 - Jul 3
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
Sunday, Mar 2 - Jun 22
Wednesday, Apr 16 - Jul 30
Tuesday, May 6 - Aug 19
Wednesday, Jun 4 - Sep 17
Sunday, Jun 22 - Oct 19
Friday, Jul 18 - Nov 14

Introduction to Geometry
Tuesday, Mar 4 - Aug 12
Sunday, Mar 23 - Sep 21
Wednesday, Apr 23 - Oct 1
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

Intermediate: Grades 8-12

Intermediate Algebra
Sunday, Mar 16 - Sep 14
Tuesday, Mar 25 - Sep 2
Monday, Apr 21 - Oct 13
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
Sunday, Mar 23 - Aug 3
Wednesday, May 21 - Sep 17
Sunday, Jun 22 - Nov 2

Intermediate Number Theory
Friday, Apr 11 - Jun 27
Sunday, Jun 1 - Aug 24
Wednesday, Jun 18 - Sep 3

Precalculus
Sunday, Mar 16 - Aug 24
Wednesday, Apr 9 - Sep 3
Friday, May 16 - Oct 24
Sunday, Jun 1 - Nov 9
Monday, Jun 30 - Dec 8

Advanced: Grades 9-12

Olympiad Geometry
Wednesday, Mar 5 - May 21
Tuesday, Jun 10 - Aug 26

Calculus
Sunday, Mar 30 - Oct 5
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
Sunday, Mar 23 - Jun 15
Wednesday, Apr 16 - Jul 2
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
Friday, Apr 11 - Jun 27
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
Tuesday, Mar 4 - May 20
Monday, Mar 31 - Jun 23
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

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
Monday, Mar 24 - Jun 16
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
Sunday, Mar 30 - Jun 22
Wednesday, May 21 - Aug 6
Sunday, Jun 15 - Sep 14
Monday, Jun 23 - Sep 15

Physics 1: Mechanics
Tuesday, Mar 25 - Sep 2
Thursday, May 22 - Oct 30
Monday, Jun 23 - Dec 15

Relativity
Sat & Sun, Apr 26 - Apr 27 (4:00 - 7:00 pm ET/1:00 - 4:00pm PT)
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
Mar 2, 2025
0 replies
MOHS for Day 1
MajesticCheese   13
N 4 minutes ago by HamstPan38825
What is your opinion for MOHS for day 1?

JMO 1:
JMO 2/AMO 1:
JMO 3:
AMO 2:
AMO 3:
13 replies
MajesticCheese
Today at 3:15 PM
HamstPan38825
4 minutes ago
USA Canada math camp
Bread10   15
N 17 minutes ago by akliu
How difficult is it to get into USA Canada math camp? What should be expected from an accepted applicant in terms of the qualifying quiz, essays and other awards or math context?
15 replies
Bread10
Mar 2, 2025
akliu
17 minutes ago
questions from a first-time applicant to math camps
akliu   18
N 36 minutes ago by akliu
hey!! im a first time applicant for a lot of math camps (namely: usa-canada mathcamp, PROMYS, Ross, MathILY, HCSSiM), and I was just wondering:

1. how much of an effect would being a first-time applicant have on making these math camps individually?
2. I spent a huge amount of effort (like 50 or something hours) on the USA-Canada Mathcamp application quiz in particular, but I'm pretty worried because supposedly almost no first-time applicants get into the camp. Are there any first-time applicants that you know of, and what did their applications (as in, qualifying quiz solutions) look like?
3. Additionally, a lot of people give off the impression that not doing the full problem set will screw your application over, except in rare cases. How much do you think a fakesolve would impact my PROMYS application chances?

thanks in advance!
18 replies
+2 w
akliu
Mar 12, 2025
akliu
36 minutes ago
conics ew
math31415926535   31
N an hour ago by Magnetoninja
Source: 2022 AIME II Problem 12
Let $a, b, x,$ and $y$ be real numbers with $a>4$ and $b>1$ such that $$\frac{x^2}{a^2}+\frac{y^2}{a^2-16}=\frac{(x-20)^2}{b^2-1}+\frac{(y-11)^2}{b^2}=1.$$Find the least possible value of $a+b.$
31 replies
1 viewing
math31415926535
Feb 17, 2022
Magnetoninja
an hour ago
nice limits :D
Levieee   11
N Today at 4:39 PM by alexheinis
$\text{nice limit sums}$ :D :play_ball:
11 replies
Levieee
Yesterday at 10:53 PM
alexheinis
Today at 4:39 PM
real analysis
ay19bme   2
N Today at 3:57 PM by ay19bme
..............
2 replies
ay19bme
Yesterday at 8:10 PM
ay19bme
Today at 3:57 PM
Diferential ecuation from physics
QQQ43   1
N Today at 2:25 PM by QQQ43
Find all functions f:R -> R such that :
f''(x)+f'(x)*b+cos(f(x))*c=a ; where a,b,c are constants in R
f'(0)=0
f(0)=0
1 reply
QQQ43
Yesterday at 2:10 PM
QQQ43
Today at 2:25 PM
ISI 2024 P1
MrOreoJuice   7
N Today at 1:22 PM by Levieee
Find, with proof, all possible values of $t$ such that
\[\lim_{n \to \infty} \left( \frac{1 + 2^{1/3} + 3^{1/3} + \dots + n^{1/3}}{n^t} \right ) = c\]for some real $c>0$. Also find the corresponding values of $c$.
7 replies
1 viewing
MrOreoJuice
May 12, 2024
Levieee
Today at 1:22 PM
Differentiation Marathon!
LawofCosine   186
N Today at 10:01 AM by LawofCosine
Hello, everybody!

This is a differentiation marathon. It is just like an ordinary marathon, where you can post problems and provide solutions to the problem posted by the previous user. You can only post differentiation problems (not including integration and differential equations) and please don't make it too hard!

Have fun!

(Sorry about the bad english)
186 replies
LawofCosine
Feb 1, 2025
LawofCosine
Today at 10:01 AM
IMC 1994 D2 P1
j___d   12
N Today at 5:32 AM by mqoi_KOLA
Let $f\in C^1[a,b]$, $f(a)=0$ and suppose that $\lambda\in\mathbb R$, $\lambda >0$, is such that
$$|f'(x)|\leq \lambda |f(x)|$$for all $x\in [a,b]$. Is it true that $f(x)=0$ for all $x\in [a,b]$?
12 replies
j___d
Mar 6, 2017
mqoi_KOLA
Today at 5:32 AM
Solve the following Limit
deepthinka   1
N Yesterday at 10:56 PM by HacheB2031
Solve:
\lim_{ x \to \frac{\pi}{2}^+ } tan(x)

NB:The calculus textbook I'm reading gives the answer

as as ( -\infty ) and not '0.027'.

( The textbook doesn't provide any algebraic justification
for this answer, it just plots the graphs.
But i'll like a Clear algebraic explanation
)
1 reply
deepthinka
Yesterday at 9:11 PM
HacheB2031
Yesterday at 10:56 PM
why cl(W) cap X is compact confusion
enter16180   1
N Yesterday at 9:05 PM by Tip_pay
can someone say here why $ Cl(W_{x}) \cap X$ is compact?
1 reply
enter16180
Feb 19, 2023
Tip_pay
Yesterday at 9:05 PM
topology
ay19bme   3
N Yesterday at 8:09 PM by ay19bme
............
3 replies
ay19bme
Mar 18, 2025
ay19bme
Yesterday at 8:09 PM
How to Scare Beginners/Intermediate Speed Integrators
Silver08   7
N Yesterday at 6:40 PM by Silver08
Compute:

$$\int e^{x+\tan^{-1}(\sec(x)+\tan(x))}dx$$
7 replies
Silver08
Yesterday at 5:34 AM
Silver08
Yesterday at 6:40 PM
Convolution of order f(n)
trumpeter   75
N Yesterday at 3:04 AM by quantam13
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
75 replies
trumpeter
Apr 17, 2019
quantam13
Yesterday at 3:04 AM
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.
bever209
1522 posts
#63
Y by
The answer is all evens. For a construction, take $f(x)=x$ but swap the outputs for an even $a$ and $1000$. Also, obviously $f(f(1))=1$.

FTSOC, assume there exists an odd $x$ such that $f(1000)=x$. Then we have \[f^x(1000)=\frac{1000^2}{f^2(1000)}\]
Claim: For no even $a$ does $f(a)=1$.
Proof: FTSOC, assume that $f(a)=1$ for some even $a$. Then, $f(a) = \frac{a^2}{f(f(a))}$ so $f(f(a))=a^2$. This means $f(1)=a^2$ so $f(a^2)=1$. Now plugging in $a^2$ into the original expression gives $f(a^2)=\frac{a^4}{f(f(a^2))} \implies f(a^2)=a^2$ which is a contradiction.

Now consider the sequence $S=(f^0(n),f^1(n) \dots)$ where $n=1000$. Note that the $i$th term is the product of the $i+2$th term and the $i+f(x)$th term where $x$ is the value of the $i+1$th term. In particular, both of those values divide the $i$th term.

Claim: The terms $f^{(2k+1)}(n)$ are odd.
Proof: Note every $f^{(2k+1)}(n)$ divides $f^{(2k-1)}(n)$ and since $f^1(n)$ is odd by assumption, we are done by induction.

Claim: The terms $f^{(2k)}(n)$ are all even.
Proof: Consider the first term $f^{(2k)}(n)$ that isn't even. Note that this must at least be the second term since the first is even by assumption. Then, $f^{(2k-2)}(n)^2$ is the product of this non-even term and some even term later down the sequence. However, note that $f^{(2k+2)}(n)|f^{(2k)}(n)^2$ so that later term shares all its primes with $f^{(2k)}(n)$, implying that is is also even.

Thus, all the even terms are of type $f^{(2k)}(n)$. Now consider the first occurrence of the smallest term in $S$, which is more than $1$ by the first claim. Then, since its square is the product of two terms later, those two terms must equal that smaller term. In particular, we have $x=f^2(x)$ for some $x$ in the sequence, so at some point, the sequence repeats with periodicity at most $2$.

The periodicity cannot be $1$ by the parity claims above.

If the periodicity is $2$, then consider the first even term in the periodic part. It is equal to the geometric mean of the two repeated terms because they have different parities by the claim above, implying that they are equal, contradicting that they have periodicity $2$. Thus, we are done.
This post has been edited 1 time. Last edited by bever209, Mar 18, 2023, 8:21 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ihatemath123
3434 posts
#64 • 1 Y
Y by megarnie
Of course, $f$ is injective.

We claim that $f(n) = n$ for all odd $n$. We will use strong induction.

Base case: $f(1) = 1$. Note that $f(f(1)) = 1$. If $f(1)$ were some even integer, say $2n$, then, $f(2n) = 1$, so $f(2n) = \frac{4n^2}{f(f(2n))} = \frac{4n^2}{2n} = 2n$, a contradiction. If $f(1)$ were some odd integer, say $2n+1$, it follows that $f(1) = \frac{n^2}{1}$. Solving over positive integers gives us $n=1$, so $f(1)  =1$.

Inductive step: To show $f(n) = n$. If $f(f(n)) > n$, then $\underbrace{f(f(\ldots f}_{f(n)\text{ ties}}(n)\ldots))$ is some odd integer $m$ that is less than $n$. But that implies that $n = m$, due to the injectivity of $f$ and our inductive assumption (only $f(m) = m$), so this is a contradiction. If $f(f(n)) < n$, $f(f(n))$ must be odd, which results in a similar contradiction. So $f(f(n)) = n$. Therefore,
\[ \underbrace{f(f(\ldots f}_{f(n)\text{ times}}(n)\ldots)) = n. \]If $f(n) = m$ for some even $m$, it follows that $f(m) = n$; then, plugging $m$ into the functional equation gives us $f(m) = \frac{m^2}{f(f(m))} = m,$
a contradiction.
So, $f(n)$ is odd. Then, the functional equation becomes
\[ f(n) = \frac{n^2}{f(f(n))} = n,\]as desired.

Therefore, due to the injectivity of $f$, $f(1000)$ must be even. It may, in fact, be any even integer, since for any even integers $a$ and $b$, we can let $f(a) = b$ and $f(b) = a$ without any adverse effects.

The fact that Evan wrote a problem as nice as this, not just in his head, but in a dream, is proof that God must exist - God is Evan.
This post has been edited 3 times. Last edited by ihatemath123, May 22, 2023, 2:14 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
john0512
4170 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
1868 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
973 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
4219 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
300 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
8855 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
68 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
5411 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
3 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
1734 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
96 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
N Quick Reply
G
H
=
a