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
k i Suggestion Form
jwelsh   0
May 6, 2021
Hello!

Given the number of suggestions we’ve been receiving, we’re transitioning to a suggestion form. If you have a suggestion for the AoPS website, please submit the Google Form:
Suggestion Form

To keep all new suggestions together, any new suggestion threads posted will be deleted.

Please remember that if you find a bug outside of FTW! (after refreshing to make sure it’s not a glitch), make sure you’re following the How to write a bug report instructions and using the proper format to report the bug.

Please check the FTW! thread for bugs and post any new ones in the For the Win! and Other Games Support Forum.
0 replies
jwelsh
May 6, 2021
0 replies
k i Read me first / How to write a bug report
slester   3
N May 4, 2019 by LauraZed
Greetings, AoPS users!

If you're reading this post, that means you've come across some kind of bug, error, or misbehavior, which nobody likes! To help us developers solve the problem as quickly as possible, we need enough information to understand what happened. Following these guidelines will help us squash those bugs more effectively.

Before submitting a bug report, please confirm the issue exists in other browsers or other computers if you have access to them.

For a list of many common questions and issues, please see our user created FAQ, Community FAQ, or For the Win! FAQ.

What is a bug?
A bug is a misbehavior that is reproducible. If a refresh makes it go away 100% of the time, then it isn't a bug, but rather a glitch. That's when your browser has some strange file cached, or for some reason doesn't render the page like it should. Please don't report glitches, since we generally cannot fix them. A glitch that happens more than a few times, though, could be an intermittent bug.

If something is wrong in the wiki, you can change it! The AoPS Wiki is user-editable, and it may be defaced from time to time. You can revert these changes yourself, but if you notice a particular user defacing the wiki, please let an admin know.

The subject
The subject line should explain as clearly as possible what went wrong.

Bad: Forum doesn't work
Good: Switching between threads quickly shows blank page.

The report
Use this format to report bugs. Be as specific as possible. If you don't know the answer exactly, give us as much information as you know. Attaching a screenshot is helpful if you can take one.

Summary of the problem:
Page URL:
Steps to reproduce:
1.
2.
3.
...
Expected behavior:
Frequency:
Operating system(s):
Browser(s), including version:
Additional information:


If your computer or tablet is school issued, please indicate this under Additional information.

Example
Summary of the problem: When I click back and forth between two threads in the site support section, the content of the threads no longer show up. (See attached screenshot.)
Page URL: http://artofproblemsolving.com/community/c10_site_support
Steps to reproduce:
1. Go to the Site Support forum.
2. Click on any thread.
3. Click quickly on a different thread.
Expected behavior: To see the second thread.
Frequency: Every time
Operating system: Mac OS X
Browser: Chrome and Firefox
Additional information: Only happens in the Site Support forum. My tablet is school issued, but I have the problem at both school and home.

How to take a screenshot
Mac OS X: If you type ⌘+Shift+4, you'll get a "crosshairs" that lets you take a custom screenshot size. Just click and drag to select the area you want to take a picture of. If you type ⌘+Shift+4+space, you can take a screenshot of a specific window. All screenshots will show up on your desktop.

Windows: Hit the Windows logo key+PrtScn, and a screenshot of your entire screen. Alternatively, you can hit Alt+PrtScn to take a screenshot of the currently selected window. All screenshots are saved to the Pictures → Screenshots folder.

Advanced
If you're a bit more comfortable with how browsers work, you can also show us what happens in the JavaScript console.

In Chrome, type CTRL+Shift+J (Windows, Linux) or ⌘+Option+J (Mac).
In Firefox, type CTRL+Shift+K (Windows, Linux) or ⌘+Option+K (Mac).
In Internet Explorer, it's the F12 key.
In Safari, first enable the Develop menu: Preferences → Advanced, click "Show Develop menu in menu bar." Then either go to Develop → Show Error console or type Option+⌘+C.

It'll look something like this:
IMAGE
3 replies
slester
Apr 9, 2015
LauraZed
May 4, 2019
k i Community Safety
dcouchman   0
Jan 18, 2018
If you find content on the AoPS Community that makes you concerned for a user's health or safety, please alert AoPS Administrators using the report button (Z) or by emailing sheriff@aops.com . You should provide a description of the content and a link in your message. If it's an emergency, call 911 or whatever the local emergency services are in your country.

Please also use those steps to alert us if bullying behavior is being directed at you or another user. Content that is "unlawful, harmful, threatening, abusive, harassing, tortuous, defamatory, vulgar, obscene, libelous, invasive of another's privacy, hateful, or racially, ethnically or otherwise objectionable" (AoPS Terms of Service 5.d) or that otherwise bullies people is not tolerated on AoPS, and accounts that post such content may be terminated or suspended.
0 replies
dcouchman
Jan 18, 2018
0 replies
Trapezoid ABCD
tenniskidperson3   52
N 11 minutes ago by MathRook7817
Source: 2009 USAMO problem 5
Trapezoid $ ABCD$, with $ \overline{AB}||\overline{CD}$, is inscribed in circle $ \omega$ and point $ G$ lies inside triangle $ BCD$. Rays $ AG$ and $ BG$ meet $ \omega$ again at points $ P$ and $ Q$, respectively. Let the line through $ G$ parallel to $ \overline{AB}$ intersects $ \overline{BD}$ and $ \overline{BC}$ at points $ R$ and $ S$, respectively. Prove that quadrilateral $ PQRS$ is cyclic if and only if $ \overline{BG}$ bisects $ \angle CBD$.
52 replies
tenniskidperson3
Apr 30, 2009
MathRook7817
11 minutes ago
MAN IS KID
DrMath   135
N 2 hours ago by thdnder
Source: USAMO 2017 P3, Evan Chen
Let $ABC$ be a scalene triangle with circumcircle $\Omega$ and incenter $I$. Ray $AI$ meets $\overline{BC}$ at $D$ and meets $\Omega$ again at $M$; the circle with diameter $\overline{DM}$ cuts $\Omega$ again at $K$. Lines $MK$ and $BC$ meet at $S$, and $N$ is the midpoint of $\overline{IS}$. The circumcircles of $\triangle KID$ and $\triangle MAN$ intersect at points $L_1$ and $L_2$. Prove that $\Omega$ passes through the midpoint of either $\overline{IL_1}$ or $\overline{IL_2}$.

Proposed by Evan Chen
135 replies
DrMath
Apr 19, 2017
thdnder
2 hours ago
9 What motivates you
AndrewZhong2012   60
N 2 hours ago by giangtruong13
What got you guys into math? I'm asking because I got ~71 on the AMC 12B and 94.5 on 10A last year. This year, my dad expects me to get a 130 on 12B and 10 on AIME, but I have sort of lost motivation, and I know these goals will be impossible to achieve without said motivation.
60 replies
+1 w
AndrewZhong2012
Feb 22, 2025
giangtruong13
2 hours ago
Good luck on olympiads tomorrow!
observer04   5
N 4 hours ago by ElectricWolverine
Hello mortals!

For those of you that qualified for the USAMO / USAJMO, I have a message for you! Remember to have fun! And enjoy the experience! Personally, I did not qualify for the USAMO / USAJMO! But I am still eager to try the high quality thought-provoking problems! As I once said... it's not all about the score!

Furthermore, for those like myself who failed along the way, it's A-OK! Don't worry, fellows! Remember to smile and enjoy your lives! There is more than math out there!


Warmest Regards
5 replies
observer04
Today at 1:27 AM
ElectricWolverine
4 hours ago
k The My classes tab shows cyan even though im on community
Craftybutterfly   10
N Yesterday at 8:29 PM by jlacosta
Summary of the problem: The My classes tab shows cyan even though I'm on community. Notice the tabs next to the AoPS Online words.
Page URL: artofproblemsolving.com/community
Steps to reproduce:
1. Press on my classes next to the AoPS Online
2. Then press on community tab
Expected behavior: My Classes tab should be dark blue
Frequency: 100%
Operating system(s): HP EliteBook 835 G8 Notebook PC
Browser(s), including version: Chrome: 134.0.6998.89 (Official Build) (64-bit) (cohort: Stable)
Additional information: It happens on this specific computer only.
10 replies
Craftybutterfly
Mar 17, 2025
jlacosta
Yesterday at 8:29 PM
k Happy St. Patrick's Day!
A_Crabby_Crab   62
N Yesterday at 3:32 PM by Moonshot
A very happy St. Patrick's day to all!
62 replies
A_Crabby_Crab
Mar 17, 2025
Moonshot
Yesterday at 3:32 PM
Mathcounts Trainer Leaderboard
ChristianYoo   3
N Yesterday at 3:10 PM by Craftybutterfly
The leaderboard is broken.
3 replies
ChristianYoo
Yesterday at 3:03 PM
Craftybutterfly
Yesterday at 3:10 PM
AoPS Academy: Exporting rich format results in broken BBCode.
Minium   0
Yesterday at 6:57 AM
When exporting a rich format document in the writing tab into the message board, bold formatting specifically is broken and results in broken BBCode.
Page URL: virtual.aopsacademy.org/class/<any writing class works here>/writing

TO REPRODUCE
1. enter "Lorem ipsum".
2. apply bold to "Lorem"
3. apply italic to "ip".
4. click the Post Draft on Message Board
5. read the contents of the message board post.

FOR EXAMPLE
When I format "Lorem ipsum" (in the writing tab of course), but when I export to post it, I get

[code]Lorem[/b] ipsum[/code].

Notice that the first bolding does not start, only ends.
0 replies
Minium
Yesterday at 6:57 AM
0 replies
Minor Color Issue
KangarooPrecise   3
N Yesterday at 1:42 AM by BrighterFrog11
In my AOPS class, there are points on your report where your red bar turns orange, and your orange turns green, well my orange bar passed the small green mark but the bar did not turn green. I can't take a screenshot, but my orange bar should be green according to the color marking.
3 replies
KangarooPrecise
Yesterday at 12:59 AM
BrighterFrog11
Yesterday at 1:42 AM
k Negative accuracy?
DarintheBoy   3
N Monday at 10:24 PM by DarintheBoy
Slow and Steady (Accuracy) I
Gain 100 Accuracy XP per day in each of the next 2 days. (-19 XP on day 1)

How did this happen? Has anyone else had this?
3 replies
DarintheBoy
Monday at 10:20 PM
DarintheBoy
Monday at 10:24 PM
k Writing Problem Extension
WildFitBrain   5
N Mar 16, 2025 by bpan2021
I already submitted an extension but I cannot edit it because I submitted an unfinished solution. I have not viewed the solution.
5 replies
WildFitBrain
Mar 16, 2025
bpan2021
Mar 16, 2025
k Happy Pi Day!
greenplanet2050   5
N Mar 15, 2025 by Yihangzh
Happy Pi Day! $3.141592653589793238462643383279 50288419716939937510 5820974944 5923078164062862089986280348253421170679$

:D :D :D :D
5 replies
greenplanet2050
Mar 15, 2025
Yihangzh
Mar 15, 2025
Contest collection PDFs don&#039;t work when LaTeX is embedded within BBCode
Equinox8   5
N Mar 14, 2025 by jlacosta
This could very well be reported before, however a quick search did not find anything.

While embedding LaTeX commands within BBCode (like this: [i]text $\dfrac{1}{2}$ text[/i]) typically displays as intended within a forum, trying to render a contest collection using these commands breaks the PDF renderer.
5 replies
Equinox8
Feb 26, 2025
jlacosta
Mar 14, 2025
k 2023 IMO
ostriches88   4
N Mar 14, 2025 by jlacosta
As outlined in this (locked) post, the forum/blog creation message is out of date. It has been over a year since that post, and it still has not changed. I don't know if this got lost somewhere in the "passing this along" chain or if it was determined to be irrelevant, but it seems like a relatively simple fix ;)
4 replies
ostriches88
Mar 10, 2025
jlacosta
Mar 14, 2025
Convolution of order f(n)
trumpeter   75
N Today 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
Today 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.
trumpeter
3332 posts
#1 • 6 Y
Y by megarnie, HWenslawski, asdf334, aaaa_27, Adventure10, NicoN9
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
This post has been edited 1 time. Last edited by trumpeter, Apr 17, 2019, 11:36 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
william122
1576 posts
#2 • 21 Y
Y by kingofgeedorah, Pathological, P_ksAreAllEquivalent, samuel, Ultroid999OCPN, Naruto.D.Luffy, mathleticguyyy, Illuzion, Aryan-23, IAmTheHazard, suvamkonar, centslordm, 554183, asdf334, supercarry, ApraTrip, Lamboreghini, mathboy100, Adventure10, NicoN9, aidan0626
I claim that the answer is all positive evens. As a construction for an even $a$, consider the function \begin{align*}
f(x)=
\begin{cases}
  x \text{ for } x\neq a,1000 \\
  a \text{ for } x=1000 \\
  1000 \text { for } x=a \\
\end{cases}
\end{align*}Clearly, this function satisfies the assertion.

Now, suppose that $f(1000)$ is odd. First, we will show injectivity. If $f(a)=f(b)$, then the condition implies $a^2=b^2\implies a=b$ as desired. Now, consider the sequence $S:\,1000,f(1000),f^2(1000),\ldots$. Note that, if we plug $f^k(1000)$ into the assertion, we get $f^{f^{k+1}(1000)+k}(1000)f^{k+2}(1000)=f^k(1000)^2$. So, one of the factors on the LHS is $\le f^k(1000)$. In particular, this implies that for all elements in $S$, there always exists a later element which is at most the current number. However, we can't have it always strictly decreasing, since all the values are positive integers, so eventually we find $i>j$ such that $f^i(1000)=f^j(1000)$, which combined with injectivity gives that $f^{i-j}(1000)=1000$. Therefore, $S$ is periodic with period $i-j$.

Now, suppose we have an odd $x$. By the condition, $f^2(x)|x^2$, so $f^2(x)$ is odd. This means that $f^3(1000),f^5(1000),$ etc. are all odd. In general, $f^{2i+1}(1000)\equiv 1\pmod 2$. Now, plug $1000$ into the assertion to get that $1000^2=f^2(1000)f^{f(1000)}(1000)$. The latter factor is odd, so we must have $2^6|f^2(1000)$. Similarly, after plugging in $f^2(1000)$, we realize that $2^{12}|f^4(1000)$, and then $2^{24}|f^6(1000)$, etc. So, the sequence $\{v_2(f^{2i}(1000)\}$ is unbounded, which of course implies that $S$ is unbounded, as all terms are nonzero. However, this is a contradiction to the fact that it is periodic, and therefore $f(1000)$ cannot be odd.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
yayups
1614 posts
#3 • 5 Y
Y by HardySalmon, matinyousefi, megarnie, aaaa_27, Adventure10
Let $P(n)$ be the assertion that
\[f^{f(n)}(n)f^2(n)=n^2.\]Note that this is our FE.

We'll first show that $f(1)=1$. $P(1)$ gives
\[f^{f(1)}(1)f^2(1)=1,\]so $f^2(1)=1$. Let $k=f(1)$. Then, $P(k)$ gives
\[f^1(k)f^2(k)=k^2,\]so $k=k^2$, or $k=1$, or $f(1)=1$. We now have a lemma that is the crux of the solution.

Lemma: If $f(n)=n$, and $f(m)=n$, then $m=n$.

Proof of Lemma: $P(m)$ gives
\[f^n(m)f^2(m)=m^2,\]or $n^2=m^2$, or $n=m$. $\blacksquare$

This yields an easy corollary that if $f^\ell(m)=n$, then $m=n$. We now show that $f$ is the identity on the odds.

Claim: $f(n)=n$ for odd $n$.

Proof of Claim: Proceed by strong induction on $n$. The case $n=1$ is sovled. Suppose $f(n')=n'$ for all odd $n'<n$. We have
\[f^2(n)f^{f(n)}(n)=n,\]so if $f^2(n)\ne n$, then one of the two LHS terms is odd and less than $n$. But then the lemma gives a contradiction, so $f^2(n)=n$. Let $k=f(n)$. $P(k)$ gives
\[f^n(k)f^2(k)=k^2,\]or $f^n(k)=k$. But since $n$ is odd, $f^n(k)=f(k)=n$, so $n=k$, so $f(n)=n$, completing the induction. $\blacksquare$

The lemma now implies that $f(1000)$ must be even. To see that all even values are attained, it's easy to check that if $f$ is the identity on the odds and an involution on the evens, it satisfies the FE. Our involution can swap $1000$ and $k$ for any even $k$, so we hit all evens, as desired.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
v_Enhance
6858 posts
#4 • 74 Y
Y by trumpeter, yayups, Ultroid999OCPN, Ashrafuzzaman_Nafees, RAMUGAUSS, fatant, mela_20-15, notverysmart, scrabbler94, reaganchoi, MortemEtInteritum, AngleChasingXD, Cyclic_Melon, reedmj, alex_g, samuel, Wizard_32, GeneralCobra19, matinyousefi, Spiralflux789, GAAB, Omeredip, Fermat_Theorem, mathleticguyyy, ftheftics, aops29, Polynom_Efendi, Imayormaynotknowcalculus, user0003, Unum, fjm30, RubixMaster21, Pendronator, Jerry122805, Ankoganit, mlgjeffdoge21, Aryan-23, akjmop, ETS1331, tapir1729, Illuzion, OlympusHero, Ayod19, ghu2024, v4913, HamstPan38825, 606234, tigerzhang, megarnie, justJen, math31415926535, rayfish, IMUKAT, 554183, ironpanther29, Atpar, Anandatheertha, bobjoe123, Inconsistent, Tang_Tang, bobthegod78, Lamboreghini, EpicBird08, mathboy100, sabkx, ihatemath123, OronSH, Adventure10, Deadline, Sedro, aidan0626, vrondoS, NicoN9, ray66
My problem. Have a great story to tell during the upcoming math jam about how I came up with it...

EDIT: for posterity, here's the story. Two days before the start of grading of USAMO 2017, I had a dream that I was grading a functional equation. When I woke up, I wrote it down, and it was \[ f^{f(n)}(n) = \frac{n^2}{f(f(n))}. \]You can guess the rest of the story from there!




Actually, we classify all such functions: $f$ can be any function which fixes odd integers and acts as an involution on the even integers. In particular, $f(1000)$ may be any even integer.
It's easy to check that these all work, so now we check they are the only solutions.

Claim: $f$ is injective.
Proof. If $f(a) = f(b)$, then $a^2 = f^{f(a)}(a) f(f(a)) = f^{f(b)}(b) f(f(b)) = b^2$, so $a = b$. $\blacksquare$

Claim: $f$ fixes the odd integers.
Proof. We prove this by induction on odd $n \ge 1$.
Assume $f$ fixes $S = \{1,3,\dots,n-2\}$ now (allowing $S = \varnothing$ for $n=1$). Now we have that \[ f^{f(n)}(n) \cdot f^2(n) = n^2. \]However, neither of the two factors on the left-hand side can be in $S$ since $f$ was injective. Therefore they must both be $n$, and we have $f^2(n) = n$.
Now let $y = f(n)$, so $f(y) = n$. Substituting $y$ into the given yields \[ y^2 = f^n(y) \cdot y = f^{n+1}(n) \cdot y = ny \]since $n+1$ is even. We conclude $n=y$, as desired. $\blacksquare$

Click to reveal hidden text

Thus, $f$ maps even integers to even integers. In light of this, we may let $g \coloneqq f(f(n))$ (which is also injective), so we conclude that \[ g^{f(n)/2} (n) g(n) = n^2 \qquad \text{ for } n = 2, 4, \dots. \]
Claim: The function $g$ is the identity function.
Proof. The proof is similar to the earlier proof of the claim. Note that $g$ fixes the odd integers already. We proceed by induction to show $g$ fixes the even integers; so assume $g$ fixes the set $S = \{1, 2, \dots, n-1\}$, for some even integer $n \ge 2$. In the equation \[ g^{f(n)/2}(n) \cdot g(n) = n^2 \]neither of the two factors may be less than $n$. So they must both be $n$. $\blacksquare$
These three claims imply that the solutions we claimed earlier are the only ones.

Remark: The last claim is not necessary to solve the problem; after realizing $f$ and injective fixes the odd integers, this answers the question about the values of $f(1000)$. However, we chose to present the ``full'' solution anyways.

Remark: After noting $f$ is injective, another approach is outlined below. Starting from any $n$, consider the sequence \[ n, \; f(n), \; f(f(n)), \; \]and so on. We may let $m$ be the smallest term of the sequence; then $m^2 = f(f(m)) \cdot f^{f(m)}(m)$ which forces $f(f(m)) = f^{f(m)}(m) = m$ by minimality. Thus the sequence is $2$-periodic. Therefore, $f(f(n)) = n$ always holds, which is enough to finish.
This post has been edited 4 times. Last edited by v_Enhance, Feb 16, 2024, 5:45 PM
Reason: add sol in
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
62861
3564 posts
#5 • 6 Y
Y by fatant, Vietjung, Imayormaynotknowcalculus, megarnie, aopsuser305, Adventure10
The possible values are all the even positive integers. To see that they work, note that
\[f(n) =
\begin{cases*}
n & $n \neq 1000, \lambda$\\
\lambda & $n = 1000$\\
1000 & $n = \lambda$
\end{cases*}\]is always a solution for any even $\lambda$. To check this, it is only important that $f$ fixes all odd integers and is an involution on the even integers. For convenience let $P(n)$ denote the functional equation.
  • If $n$ is odd, then $f(n) = n$ and so $P(n)$ reads $n = \tfrac{n^2}{n}$ which is valid.
  • If $n$ is even, then $f(f(n)) = n$, so $f^{f(n)}(n) = n$ as $f(n)$ itself is even. Hence once again $P(n)$ reads $n = \tfrac{n^2}{n}$ which is valid.

Now we prove that $f(1000)$ cannot be odd.
Claim. The function $f$ is injective.
Proof. If $f(a) = f(b)$, then
\[\frac{a^2}{f(f(a))} = f^{f(a)}(a) = f^{f(b)}(b) = \frac{b^2}{f(f(b))}\]so $a = b$. $\square$

Claim. The function $f$ fixes all the odd positive integers.
Proof. We prove by induction on odd $n$ that $f(n) = n$. Suppose it has been proven for all $1, 3, \dots, n-2$ and consider the statement for $n$. The statement $P(n)$ reads
\[f^{f(n)}(n) \cdot f(f(n)) = n^2.\]In particular, both numbers $f^{f(n)}(n)$ and $f(f(n))$ are odd. Since $f(k) = k$ for $k = 1, 3, \dots, n-2$, we obtain that $f^{f(n)}(n) \ge n$ and $f(f(n)) \ge n$, and so
\[f^{f(n)}(n) = f(f(n)) = n.\]If $f(n)$ is odd, we get $f(n) = n$ by injectivity. Suppose that $m = f(n)$ is even, so $n = f(m)$ and so $P(m)$ gives
\[m^2 = [f^{f(m)}(m)] \cdot [f(f(m))] = [f(m)] \cdot [m] \implies m = n\]which is not possible. Thus $f(n) = n$ and the inductive step is complete. $\square$

To finish the problem, recall that $f$ is injective, but $f(n) = n$ for all odd $n$. Hence $f(1000)$ cannot be odd.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
budu
1515 posts
#6 • 4 Y
Y by kevinmathz, sabkx, Adventure10, Mango247
Will this get a point?
This post has been edited 1 time. Last edited by budu, Apr 17, 2019, 11:10 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
yrnsmurf
20555 posts
#7 • 3 Y
Y by SpecialBeing2017, Adventure10, Mango247
I found that you only needed to prove f(n)=n for all prime powers, because 1000 has only 1 prime factor.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Generic_Username
1088 posts
#8 • 3 Y
Y by Imayormaynotknowcalculus, Adventure10, Mango247
Does this induction work to prove that $f(f(n))=n$ for odd $n$?

Define an order relationship on sequences of nondecreasing positive integers such that:
  • $s_1>s_2$ if $s_1$ has more elements than $s_2$
  • $s_1>s_2$ if $s_1$ and $s_2$ has the same number of elements but the sum of the terms of $s_1$ is bigger than that of $s_2$
  • Break ties lexicographically.

We induct on numbers of the form $n=\prod p_i^{e_i}$ where the $\{e_i\}$ are ordered as given above.
Now from $f(f(n))f^{f(n)}(n)=n^2,$ if $f(f(n)) \neq n,$ one of $f(f(n))$ or $f^{f(n)}(n)$ have its exponent sequence in its prime factorization come before that of $n$ in our ordering. But for those guys we already know $f(f(k))=k,$ breaking injectivity. So $f(f(n))=n.$

The main issue is whether doing the induction in this order is valid... can anyone confirm?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
trumpeter
3332 posts
#9 • 3 Y
Y by Adventure10, Mango247, Mango247
The answer is any even integer. To show that these work, let $m$ be an even integer and consider the function $f$ that fixes all integers besides $1000$ and $m$ and swaps $1000$ and $m$. Then both sides of the equation are equal to $n$ for all $n$ — if $n=1000$ or $m$ then $f(n)$ is even so the LHS is a convolution of $f^2$ which is identity; if $n\neq1000$ or $m$ then everything is a convolution of the identity. Now we show that odd integers do not work.

First note that $f$ is injective. Indeed, if $f(a)=f(b)$ then \[a^2=f^{f(a)-1}(f(a))f(f(a))=f^{f(b)-1}(f(b))f(f(b))=b^2\]so $a=b$.

Now we prove that all odd $n$ are fixed points of $f$. For $n=1$, we have \[1=f^{f(1)}(1)f^2(1)\]so $f^{f(1)}(1)=f^2(1)=1$. Additionally, \[f(1)^2=f^{f(f(1))}(f(1))f^2(f(1))=1\cdot f(1)\]so $f(1)=1$. Now assume $1,3,\ldots,n-2$ are fixed points for some odd $n$. We have
\begin{align*}
n^2&=f^{f(n)}(n)f^2(n)\\
f(n)^2&=f^{f^2(n)+1}(n)f^3(n)
\end{align*}by the functional equation. Then $f^2(n)$ is odd. If $f^2(n)<n$ then it is a fixed point. Then $f^3(n)=f^2(n)$ so by injectivity, $f(n)=n$ so $f^2(n)=n$, contradiction. Similarly $f^{f(n)}(n)$ is odd. If $f^{f(n)}(n)<n$ then it is a fixed point, so $f^{f(n)+1}(n)=f^{f(n)}(n)$ and by injectivity, $f(n)=n$ so $f^{f(n)}(n)=n$, contradiction. Thus $f^2(n)$ and $f^{f(n)}(n)$ are both at least $n$. But their product is $n^2$, so both are exactly $n$. But then \[f(n)^2=f^{n+1}(n)f(n)\]and $n+1$ is even so $f^{n+1}(n)=n$ and it follows that $f(n)=n$. So by induction, all odd $n$ are fixed points.

Suppose $f(1000)=m$ with $m$ odd. Then $f^{f(n)}(n)=m$ and $f^2(n)=m$ so $n^2=m^2$, contradiction. Thus $f(1000)$ must be even.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
goodbear
1108 posts
#10 • 3 Y
Y by TheUltimate123, tapir1729, Adventure10
If $f(a)=f(b),$ $a^2=b^2$ and $a=b,$ so $f$ is injective.

Let $a_0=1000,$ $a_i=f(a_{i-1}).$ Plugging in $n=a_i$ gives $a_{i+a_{i+1}}a_2=(a_i)^2.$

Take $a_i$ minimal. As $a_{i+a_{i+1}}\ge a_i$ and $a_{i+2}\ge a_i,$ by the above $a_{i+2}=a_i.$ Backwards induction + injectivity then gives $a_2=a_0.$

Plugging in $1000$ then gives $a_1=1000$ or $a_1$ is even. As even is easy to construct, the answer is all positive even integers.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sampai7
574 posts
#11 • 1 Y
Y by Adventure10
Generic_Username wrote:
Does this induction work to prove that $f(f(n))=n$ for odd $n$?

Define an order relationship on sequences of nondecreasing positive integers such that:
  • $s_1>s_2$ if $s_1$ has more elements than $s_2$
  • $s_1>s_2$ if $s_1$ and $s_2$ has the same number of elements but the sum of the terms of $s_1$ is bigger than that of $s_2$
  • Break ties lexicographically.

We induct on numbers of the form $n=\prod p_i^{e_i}$ where the $\{e_i\}$ are ordered as given above.
Now from $f(f(n))f^{f(n)}(n)=n^2,$ if $f(f(n)) \neq n,$ one of $f(f(n))$ or $f^{f(n)}(n)$ have its exponent sequence in its prime factorization come before that of $n$ in our ordering. But for those guys we already know $f(f(k))=k,$ breaking injectivity. So $f(f(n))=n.$

The main issue is whether doing the induction in this order is valid... can anyone confirm?

Are you sure there are countably many sequences?

Edit: can’t map reals
This post has been edited 1 time. Last edited by sampai7, Apr 17, 2019, 11:33 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
goodbear
1108 posts
#12 • 1 Y
Y by Adventure10
sampai7 wrote:
Generic_Username wrote:
Click to reveal hidden text

Are you sure there are countably many sequences? You can map the reals to sequences of integers right?

*infinite sequences, finite okay.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Generic_Username
1088 posts
#13 • 2 Y
Y by Adventure10, Mango247
Quote:
Are you sure there are countably many sequences?
Well the induction can be characterized by $(k,\Sigma, S)$ where $k$ is the number of terms, $\Sigma$ is the sum of the terms, and $S$ is the set of sequences with $k$ terms and sum $\Sigma.$ Here $S$ is finite. So one can envision this as induction on the two parameters $k$ and $\Sigma$?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
aq1048576
32 posts
#14 • 4 Y
Y by Arrowhead575, Adventure10, Mango247, Mango247
I got that $f(n)$ fixes all odd $n$ in around 45 minutes and then freaked out after realizing that the answer was *not* $f(n)=n$, didn't see that I could just give a construction and finish, so spent another hour proving that $f$ is an involution for all $n$ (even and odd) and another hour writing up before realizing that it was unnecessary :thunk: . Rewrote my solution finishing from $f$ fixes odd step using half as many pages, but oh well :P

f is an involution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mathguy623
1855 posts
#15 • 2 Y
Y by budu, Adventure10
budu wrote:
Will this get a point?

I feel like it definitely should - especially since showing f(2n-1) = 2n-1 is done pretty much the same way as f(p) = p except with induction. However, I guess this was a large portion of the problem. I think given that you had f(1) = 1 and injectivity, it should be a point. Maybe more than 1 but that seems rare.
Z K Y
G
H
=
a