School starts soon! Add problem solving to your schedule with our math, science, and/or contest classes!

G
Topic
First Poster
Last Poster
k a August Highlights and 2025 AoPS Online Class Information
jwelsh   0
Aug 1, 2025
CONGRATULATIONS to all the competitors at this year’s International Mathematical Olympiad (IMO)! The US Team took second place with 5 gold medals and 1 silver - we are proud to say that each member of the 2025 IMO team has participated in an AoPS WOOT (Worldwide Online Olympiad Training) class!

"As a parent, I'm deeply grateful to AoPS. Tiger has taken very few math courses outside of AoPS, except for a local Math Circle that doesn't focus on Olympiad math. AoPS has been one of the most important resources in his journey. Without AoPS, Tiger wouldn't be where he is today — especially considering he's grown up in a family with no STEM background at all."
— Doreen Dai, parent of IMO US Team Member Tiger Zhang

Interested to learn more about our WOOT programs? Check out the course page here or join a Free Scheduled Info Session. Early bird pricing ends August 19th!:
CodeWOOT Code Jam - Monday, August 11th
ChemWOOT Chemistry Jam - Wednesday, August 13th
PhysicsWOOT Physics Jam - Thursday, August 14th
MathWOOT Math Jam - Friday, August 15th

There is still time to enroll in our last wave of summer camps that start in August at the Virtual Campus, our video-based platform, for math and language arts! From Math Beasts Camp 6 (Prealgebra Prep) to AMC 10/12 Prep, you can find an informative 2-week camp before school starts. Plus, our math camps don’t have homework and cover cool enrichment topics like graph theory. Our language arts courses will build the foundation for next year’s challenges, such as Language Arts Triathlon for levels 5-6 and Academic Essay Writing for high school students.

Lastly, Fall is right around the corner! 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. We’ve opened new Academy locations in San Mateo, CA, Pasadena, CA, Saratoga, CA, Johns Creek, GA, Northbrook, IL, and Upper West Side (NYC), New York.

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, 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
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
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
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
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
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
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
Sat & Sun, Sep 13 - Sep 14 (1:00 - 4:00 PM PT/4:00 - 7:00 PM ET)

Intermediate: Grades 8-12

Intermediate Algebra
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
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
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
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
Aug 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
Fixed Points from Moving Intersections
RANDOM__USER   1
N 18 minutes ago by v4913
Source: Own
Let \(P\) be an arbitrary fixed point and \(X\) an abitrary fixed point on \((ABC)\). Let \(D\) be an abritrary point on \(BC\). Let \(PD\) intersect \(AC\)at \(E\). Let \(XD\) intersect \((ABC)\) at \(G\). Let \((AEG)\) intersect \(AB\) a second time at \(F\). Prove that the line \(DF\) passes through a constant point \(Q\) as \(D\) moves on \(BC\), and that \((AEF)\) passes through a fixed point \(W\).

IMAGE

1 reply
RANDOM__USER
Today at 12:43 PM
v4913
18 minutes ago
gcd(f(m) + n, f(n) + m) bounded for m != n
62861   11
N 42 minutes ago by pi271828
Source: IMO 2015 Shortlist, N7
Let $\mathbb{Z}_{>0}$ denote the set of positive integers. For any positive integer $k$, a function $f: \mathbb{Z}_{>0} \to \mathbb{Z}_{>0}$ is called $k$-good if $\gcd(f(m) + n, f(n) + m) \le k$ for all $m \neq n$. Find all $k$ such that there exists a $k$-good function.

Proposed by James Rickards, Canada
11 replies
62861
Jul 7, 2016
pi271828
42 minutes ago
easy sequence
Seungjun_Lee   18
N 43 minutes ago by Kempu33334
Source: KMO 2023 P1
A sequence of positive reals $\{ a_n \}$ is defined below. $$a_0 = 1, a_1 = 3, a_{n+2} = \frac{a_{n+1}^2+2}{a_n}$$Show that for all nonnegative integer $n$, $a_n$ is a positive integer.
18 replies
Seungjun_Lee
Nov 4, 2023
Kempu33334
43 minutes ago
|z+2024|<2024
MathMaxGreat   1
N an hour ago by ThE-dArK-lOrD
Source: 2024 China Summer NSMO
Let $z_0$ be a root of $P(z)=\frac{(z+1)(z+2)\cdot\cdot\cdot (z+2024)-2024!}{z}$.
Prove: $z_0\in \{z|z\in\mathbb{C},|z+2024|<2024\}$
1 reply
MathMaxGreat
Today at 4:45 AM
ThE-dArK-lOrD
an hour ago
No. of possible equalities
old_csk_mo   1
N an hour ago by blug
Source: Czech and Slovak Olympiad 2025, National Round, Problem 1
Real numbers $a,b,c,d$ satisfy \[a+b+c+d=0,\qquad \frac1a+\frac1b+\frac1c+\frac1d=0.\]How many equalities \[ab=cd,\qquad ac=bd,\qquad ad=bc\]can simultaneously hold? Determine all possibilities.
1 reply
old_csk_mo
3 hours ago
blug
an hour ago
Equal lengths of segments
old_csk_mo   1
N 2 hours ago by Sir_Cumcircle
Source: Czech and Slovak Olympiad 2025, National Round, Problem 6
Let $ABC$ be an acute triangle, $H$ its orthocenter, $O$ circumcenter and $M$ midpoint of $BC.$ Denote $D\neq A$ the intersection of line $AH$ and the circumcircle $\omega,$ $E\neq D$ intersection of line $DM$ and $\omega.$ Finally, let $F\neq E$ be the intersection of line $AE$ and the circumcircle of $OME.$ Show that $FH=FA.$
1 reply
old_csk_mo
2 hours ago
Sir_Cumcircle
2 hours ago
21 distinct real numbers
old_csk_mo   0
2 hours ago
Source: CPSJ 2025 team competition p4
Is it always possible to choose (different) elements $x,y$ of a set of 21 distinct real numbers such that \[20|x-y|<(x+1)(y+1)?\]
0 replies
old_csk_mo
2 hours ago
0 replies
Coloring of a square grid
old_csk_mo   0
2 hours ago
Source: Czech and Slovak Olympiad 2025, National Round, Problem 5
Determine all positive integers $n$ such that $2n$ cells of $n\times n$ square grid can be colored in a way where no two dyed squares share a point and there are exactly two dyed squares in every column and every row.
0 replies
1 viewing
old_csk_mo
2 hours ago
0 replies
Counting + Number theory
urfinalopp   1
N 2 hours ago by megarnie
Source: Hai Phong VMO TST 2020-2021
Given a prime $p \equiv 1$ (mod 4), determine the number of ordered integer triplets $(a_1; a_2; a_3)$ such that
\begin{align*} a_1a_2 + a_3^2 + 1 \vdots p^2 \end{align*}($a_1, a_2, a_3$ are not necessarily different from each other)
1 reply
urfinalopp
5 hours ago
megarnie
2 hours ago
Primes on a circle
old_csk_mo   0
2 hours ago
Source: Czech and Slovak Olympiad 2025, National Round, Problem 4
At least three primes are written on a circle, all of them distinct. Compute greatest prime divisors of sums of any two neighbors. Suppose that we received the same primes as already written (up to ordering). Determine all possible input sets of primes.
0 replies
old_csk_mo
2 hours ago
0 replies
Integer terms of recurrent sequence
old_csk_mo   2
N 2 hours ago by blug
Source: CPSJ 2025 team competition p5
Let $\left(a_n\right)_{n\ge1}$ be a sequence of positive numbers such that \[a_{n+1}=a_n+\frac{1}{a_n}\]for all positive integers $n.$ Determine the greatest integer $N$ such that exactly $N$ terms of the sequence are integers (for some $a_1$).
2 replies
old_csk_mo
Today at 10:23 AM
blug
2 hours ago
Unique sums of divisors
old_csk_mo   0
2 hours ago
Source: Czech and Slovak Olympiad 2025, National Round, Problem 3
Let $n>1$ be a positive integer and $p$ its greatest prime divisor. For each non-empty subset of divisors of $n,$ write the sum of its elements on the board. Assume that more than $p$ numbers from the set $\{1,2,\ldots,p+2\}$ are written and any of them occurs at most once. Show that all numbers on the board are distinct.
0 replies
old_csk_mo
2 hours ago
0 replies
Sum of groups
MithsApprentice   14
N 3 hours ago by Bread10
Source: USAMO 1996
For any nonempty set $S$ of real numbers, let $\sigma(S)$ denote the sum of the elements of $S$. Given a set $A$ of $n$ positive integers, consider the collection of all distinct sums $\sigma(S)$ as $S$ ranges over the nonempty subsets of $A$. Prove that this collection of sums can be partitioned into $n$ classes so that in each class, the ratio of the largest sum to the smallest sum does not exceed 2.
14 replies
MithsApprentice
Oct 22, 2005
Bread10
3 hours ago
Lower bound for magnitudes of angles
old_csk_mo   0
3 hours ago
Source: Czech and Slovak Olympiad 2025, National Round, Problem 2
Let $n$ be a positive integer. Consider five distinct points in plane such that two of them are inner points of a (non-degenerate) triangle given by the other three. Determine the greatest $n$ for which there is an angle $\varphi$ given by three of these points such that $n^\circ<\varphi\le 180^\circ.$
0 replies
old_csk_mo
3 hours ago
0 replies
Weird Function
math_comb01   31
N Jul 13, 2025 by Cats_on_a_computer
Source: INMO 2024/4
A finite set $\mathcal{S}$ of positive integers is called cardinal if $\mathcal{S}$ contains the integer $|\mathcal{S}|$ where $|\mathcal{S}|$ denotes the number of distinct elements in $\mathcal{S}$. Let $f$ be a function from the set of positive integers to itself such that for any cardinal set $\mathcal{S}$, the set $f(\mathcal{S})$ is also cardinal. Here $f(\mathcal{S})$ denotes the set of all integers that can be expressed as $f(a)$ where $a \in \mathcal{S}$. Find all possible values of $f(2024)$
$\quad$
Proposed by Sutanay Bhattacharya
31 replies
math_comb01
Jan 21, 2024
Cats_on_a_computer
Jul 13, 2025
Weird Function
G H J
G H BBookmark kLocked kLocked NReply
Source: INMO 2024/4
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
math_comb01
665 posts
#1 • 1 Y
Y by GeoKing
A finite set $\mathcal{S}$ of positive integers is called cardinal if $\mathcal{S}$ contains the integer $|\mathcal{S}|$ where $|\mathcal{S}|$ denotes the number of distinct elements in $\mathcal{S}$. Let $f$ be a function from the set of positive integers to itself such that for any cardinal set $\mathcal{S}$, the set $f(\mathcal{S})$ is also cardinal. Here $f(\mathcal{S})$ denotes the set of all integers that can be expressed as $f(a)$ where $a \in \mathcal{S}$. Find all possible values of $f(2024)$
$\quad$
Proposed by Sutanay Bhattacharya
This post has been edited 2 times. Last edited by math_comb01, Jan 21, 2024, 12:48 PM
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
#2
Y by
f = 1 or f(x) = x?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
bnumbertheory
14 posts
#3
Y by
Redacted
This post has been edited 1 time. Last edited by bnumbertheory, Jan 21, 2024, 12:30 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
kamatadu
488 posts
#4
Y by
bnumbertheory wrote:
math_comb01 wrote:
A finite set $\mathcal{S}$ of positive integers is called cardinal if $\mathcal{S}$ contains the integer $|\mathcal{S}|$ where $|\mathcal{S}|$ denotes the number of distinct elements in $\mathcal{S}$. Let $f$ be a function from the set of positive integers to itself such that for any cardinal set $\mathcal{S}$, the set $f(\mathcal{S})$ is also cardinal. Here $f(\mathcal{S})$ denotes the set of all integers that can be expressed as $f(a)$ where $a \in \mathcal{S}$. Find all possible values of $f(2024)$

Does this work or am I misunderstanding the problem?

We see that $f(\mathcal{S}) \equiv \{ 1\}$ is trivially a solution. Assume non-constant functions $f$. We claim that $f(x) = x$ is the only such solution. We induct on $|\mathcal{S}|$. Consider $\mathcal{S} = \{ 1 \}$. It follows that $|f(\mathcal{S})| = 1$ which forces $f(1) = 1$. Let $f(x) = x$ for all $x \leq n$. Consider $\mathcal{S} = \{ 1, 2 \dots n+1 \}$. It is cardinal. Thus, $f(\mathcal{S}) = \{ 1,  2, 3 \dots n, f(n+1) \}$ is also cardinal, which forces $f(n+1) = n+1$.

It does not. I fakesolved in a similar way. I'll tell why a bit later.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
bnumbertheory
14 posts
#5
Y by
kamatadu wrote:
bnumbertheory wrote:
math_comb01 wrote:
A finite set $\mathcal{S}$ of positive integers is called cardinal if $\mathcal{S}$ contains the integer $|\mathcal{S}|$ where $|\mathcal{S}|$ denotes the number of distinct elements in $\mathcal{S}$. Let $f$ be a function from the set of positive integers to itself such that for any cardinal set $\mathcal{S}$, the set $f(\mathcal{S})$ is also cardinal. Here $f(\mathcal{S})$ denotes the set of all integers that can be expressed as $f(a)$ where $a \in \mathcal{S}$. Find all possible values of $f(2024)$

Does this work or am I misunderstanding the problem?

We see that $f(\mathcal{S}) \equiv \{ 1\}$ is trivially a solution. Assume non-constant functions $f$. We claim that $f(x) = x$ is the only such solution. We induct on $|\mathcal{S}|$. Consider $\mathcal{S} = \{ 1 \}$. It follows that $|f(\mathcal{S})| = 1$ which forces $f(1) = 1$. Let $f(x) = x$ for all $x \leq n$. Consider $\mathcal{S} = \{ 1, 2 \dots n+1 \}$. It is cardinal. Thus, $f(\mathcal{S}) = \{ 1,  2, 3 \dots n, f(n+1) \}$ is also cardinal, which forces $f(n+1) = n+1$.

It does not. I fakesolved in a similar way. I'll tell why a bit later.

Nvm I am high. Got it. Let me solve it now.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
bnumbertheory
14 posts
#6
Y by
math_comb01 wrote:
A finite set $\mathcal{S}$ of positive integers is called cardinal if $\mathcal{S}$ contains the integer $|\mathcal{S}|$ where $|\mathcal{S}|$ denotes the number of distinct elements in $\mathcal{S}$. Let $f$ be a function from the set of positive integers to itself such that for any cardinal set $\mathcal{S}$, the set $f(\mathcal{S})$ is also cardinal. Here $f(\mathcal{S})$ denotes the set of all integers that can be expressed as $f(a)$ where $a \in \mathcal{S}$. Find all possible values of $f(2024)$

What can the function $f(x) = 1$ for all $x \neq c$ and $f(x) = 2$ for $x = c$ for some $c \neq 1$ work?
This post has been edited 1 time. Last edited by bnumbertheory, Jan 21, 2024, 12:36 PM
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
#7
Y by
What if $f(1, \dots, 2023) = 1$ and $f(2024) = 2$?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
math_comb01
665 posts
#8 • 2 Y
Y by everythingpi3141592, D_S
The answer is $f(2024)=1,2,2024$ which can be proved by lots of casework.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Anulick
178 posts
#9 • 2 Y
Y by GeoKing, Mathlover112358
Maybe the easiest question. Dies to observation.
$f(x)=1$ gives a cardinal set every time. This is rather easy to note. Let's take $f(x) \neq c$.
Let's consider the set $S=\{1\}$. This forces $f(1)=1$.
Let's now consider the set $S=\{a,2\}$ where $a \neq 2$. This means either $f(a)=2$ or $f(2)=2$ but not both. As $a$ can be any real number, this is claiming that $f(x)=2, x \neq 2$ which will be false the moment we consider $S=\{a,b,3\}$. Thus, we have $f(2)=2$.
Similarly, thus we will have $f(x)=x$ as a solution.
Finally, $f(x)=1, x \in [1,2023] \cup [2025, \infty]$ and $f(2024)=2$ also works. We cannot repeat this for more numbers as the set $(a,2)$ will get violated.
Thus, $f(2024)=1,2,2024$.
This post has been edited 1 time. Last edited by Anulick, Jan 21, 2024, 12:52 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
anantmudgal09
1987 posts
#10 • 1 Y
Y by Samujjal101
Proposed by Sutanay Bhattacharya
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Anulick
178 posts
#11
Y by
ATGY wrote:
What if $f(1, \dots, 2023) = 1$ and $f(2024) = 2$?

I have changed my answer.
This post has been edited 1 time. Last edited by Anulick, Jan 21, 2024, 12:49 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mannshah1211
654 posts
#12
Y by
Anulick wrote:
ATGY wrote:
What if $f(1, \dots, 2023) = 1$ and $f(2024) = 2$?

What if $f(1, \dots, 2022) = 1; f(2023)=2$ and $f(2024) = 3$? We can then have it take any value from 1 to 2024.

This doesn't satisfy the properties of the problem.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
lelouchvigeo
185 posts
#13 • 1 Y
Y by S_14159
math_comb01 wrote:
The answer is $f(2024)=1,2,2024$ which can be proved by lots of casework.

I have got the same answer as this :D
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
bnumbertheory
14 posts
#14
Y by
Anulick wrote:
Maybe the easiest question. Dies to observation.
$f(x)=1$ gives a cardinal set every time. This is rather easy to note. Let's take $f(x) \neq c$.
Let's consider the set $S=\{1\}$. This forces $f(1)=1$.
Let's now consider the set $S=\{a,2\}$ where $a \neq 2$. This means either $f(a)=2$ or $f(2)=2$ but not both. As $a$ can be any real number, this is claiming that $f(x)=2, x \neq 2$ which will be false the moment we consider $S=\{a,b,3\}$. Thus, we have $f(2)=2$.
Similarly, thus we will have $f(x)=x$ as a solution.
Finally, $f(x)=1, x \in [1,2023] \cup [2025, \infty]$ and $f(2024)=2$ also works. We cannot repeat this for more numbers as the set $(a,2)$ will get violated.
Thus, $f(2024)=1,2,2024$.

What if $f(2) = f(a) = 1$?
This post has been edited 1 time. Last edited by bnumbertheory, Jan 21, 2024, 12:56 PM
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
#15
Y by
wrong btw
This post has been edited 2 times. Last edited by ATGY, Feb 23, 2024, 4:24 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
megarnie
5729 posts
#17 • 2 Y
Y by Anchovy, ATGY
Solved with Anchovy.

The answer is $\boxed{1,2,2024}$. The construction for $1$ is $f\equiv 1$, the construction for $2$ is $f(x) = 1\forall x \ne 2024$ and $f(2024) = 2$, and the construction for $2024$ is $f(x) = x$. We can check that these work. Now we prove they are the only possibilities for $f(2024)$. Suppose we had $f(2024) \not \in \{1,2,2024\}$.

Then $f$ isn't constant or identity. Let $f(2024) = n$.

By choosing $S = \{1\}$, we see that $f(1) = 1$. Let $k$ be the smallest positive integer with $f(k) \ne k$. Clearly $k \le 2024$.

Consider the cardinal set $\{1,2,\ldots, k\}$. We must have $\{1, 2, \ldots, k - 1, f(k)\}$ cardinal, so $f(k) < k$ (because if $f(k) > k$ it would have $k$ elements but not the element $k$).

Now for any $m > k$, we may consider the set $S = \{1, 2, \ldots, k, m \} \setminus \{f(k)\}$. Notice that this set must be cardinal, so the set $f(S) = \{1, 2, \ldots, k-1, f(m)\}$ is also cardinal. This implies that $f(m) \le k$ for each $m > k$. In particular we have $2< n < 2024$.

Now, since $ 2< n \le k$, we have $1, 2, \ldots, n-2, n, 2024$ is cardinal. Since $1, 2, \ldots, n - 2$ are fixed points, we have $1, 2, \ldots, n - 2, f(n), n$ is cardinal. If $n < k$, then $f(n) = n$, so $1, 2, \ldots, n -2, n$ is cardinal, which is false since it has $n - 1$ elements. Therefore, we have $n = k$ and $f(n) = n - 1$. If $n > 4$, then since $f(3) = 3$, we can consider the set $S = \{3,n-1,n\}$ and get $\{3, n-1\}$ is cardinal, which is absurd. If $n = 4$, then $S = \{3,4,2024\}$ gives that $\{3, 4\}$ is cardinal, which is false. If $n = 3$, then $f(2) = f(3) = 2$, so considering $S = \{2,3\}$ gives that $f(S) = \{2\}$ must be cardinal, which is false.

Therefore, we must have $n\in \{1,2,2024\}$, so we are done.
This post has been edited 1 time. Last edited by megarnie, Jan 21, 2024, 5:54 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
cj13609517288
1941 posts
#18 • 1 Y
Y by ATGY
Sketch:

Answers are $\boxed{1,2,2024}$.
Suppose range is infinite set and some not fixed point and choose a set with that number of that size -> $f(x)=x$ or $f$'s range is a finite set
Choose a set of size larger than range of $f$ with cardinality something that maps to not $1$ and make everything in the set map to the same thing -> $f$ reaches everything besides $1$ finitely many times, so $1$ is reached infinitely many times
Get something that maps to {1,1,...,1,>2} -> $f$ cannot reach anything above $2$

Constructions: $f(x)=1$, $f(x)=x$, and $f(x)=1$ when $x\ne 2024$ and $f(2024)=2$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
LLL2019
834 posts
#19 • 2 Y
Y by GeoKing, mannshah1211
Headsolved in half an hour:

We claim that either $f(n)\in \{1, 2\}$ for all $n\leq N$, or $f(n)=n$ for all $3\leq n\leq N$, for any value of $N$. Then, we see the answer must be $1$, $2$, or $2024$. These can be constructed as follows: $f(n)=1$, $f(n)=1+\delta_{n, 2024}$, and $f(n)=n$. In other words, we only need to prove our claim.

First, considering $\mathcal{S}=\{1\}$, we see $f(1)=1$. Considering $\{1, 2\}$, $f(2)$ must either be $1$ or $2$. Considering $\{1,2,3\}$, $f(3)$ must either be $1$, $2$, or $3$. Let us now prove our claim by induction. It is true for $N=3$. Assume it is true for $N=k$. Then:

Case 1: $f(n)\in \{1, 2\}$ for all $n\leq k$.
By considering $\{1, 2, \dots, k+1\}$, we must have $f(k+1)\leq 3$. If $f(k+1)=3$, considering $\{2, k+1\}$, we see $f(2)=2$. Considering $\{2,3\}$, we also see that $f(3)=1$. However, we now have a contradiction from $\{1,3,k+1\}$. Thus, $f(k+1)\leq 2$, as wanted.

Case 2: $f(n)=n$ for all $3\leq n\leq k$.
Considering $\{2,3\}$, we must have $f(2)=2$. Thus, $f(n)=n$ for all $n\leq k$. Considering $\{1,2,\dots, k+1\}$, we must have $f(k+1)\leq k+1$. However, if $2<f(k+1)=i<k+1$, we can see from $\{1, \dots, i-2, i, k+1\}$ a contradiction. If $f(k+1)=2$, considering $\{2, k+1\}$ gives a contradiction, and if $f(k+1)=1$, considering $\{1,3,k+1\}$ yields a contradiction. Thus, $f(k+1)=k+1$ is required.

This completes our induction.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
D_S
105 posts
#21
Y by
@anantmudgal09 I'm getting around 55 or so. Will I be able to get into IMO TC?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mannshah1211
654 posts
#23
Y by
D_S wrote:
@anantmudgal09 I'm getting around 55 or so. Will I be able to get into IMO TC?

I don't think he knows the cutoff yet ;), but probably yes if you aren't in 12th. If you are in 12th, I don't know.
This post has been edited 1 time. Last edited by mannshah1211, Jan 22, 2024, 7:55 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
D_S
105 posts
#24
Y by
mannshah1211 wrote:
D_S wrote:
@anantmudgal09 I'm getting around 55 or so. Will I be able to get into IMO TC?

I don't think he knows the cutoff yet ;), but probably yes if you aren't in 12th. If you are in 12th, I don't know.

I'm in 10th, and cutoffs were low for last year, but this year the paper was relatively easy...
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mannshah1211
654 posts
#25
Y by
Well, last year getting 19 was pretty easy, but the cutoff was still 19, so just don't stress about it too much :D
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ZVFrozel
29 posts
#26 • 3 Y
Y by D_S, Siddharthmaybe, quantam13
Here is a really slick solution, different from the one I found during the contest (though I came out of the exam hall thinking about this).

We prove that $f(2024) = 1, 2, 2024$:
  • Let $a \sim b$ if and only if $f(a) = f(b)$.
  • Suppose $f(2024) \neq 2024$.
  • Then there are finitely many equivalence classes.
  • The only infinite equivalence class is the set satisfying f(n) ₌ 1.
  • Let $S$ be a set of $2023$ integers satisfying $f(n) = 1$.
  • $S \cup {2024}$ is cardinal, and its image under $f$ is $\{1, f(2024)\}$.
  • Thus $\{1, f(2024)\}$ is cardinal, which means $f(2024) = 1, 2$.
This post has been edited 3 times. Last edited by ZVFrozel, Apr 10, 2025, 5:32 AM
Reason: latexation
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
NTguy
31 posts
#27 • 2 Y
Y by Samujjal101, ATGY
My solution -
Observe $f(1) = 1$. Now, $f(2)$ can be 1 or 2.
Case 1 - Assume $f(2) = 1$
Since the set $\{2,k\}$ is cardinal $\forall k \in \mathbb{N}$ (other than 2), we can say that $f(2024)$ is either 1 or 2.
Case 2 - Assume $f(2) = 2$
Since $\{2,k\}$ is cardinal $\forall k \in \mathbb{N}$ (other than 2), $\{f(2),f(k)\}$ is also cardinal forcing $f(k) \neq 2$, $\forall k \neq 2$.
We have $f(3) = 1$ or $3$
Case 2a - Assume $f(3) = 1$
The set $\{1,3,k\}$ is cardinal $\forall k \in \mathbb{N}$ (other than 1 and 3). This implies the set $\{1,1,f(k)\}$ is also cardinal forcing $f(k) = 1$ or $2$, but since $2024 \neq 2, f(2024) = 1$
Case 2b - Assume $f(3) = 3$
Claim - $f(n) = n$
Proof -
We know $f(1) = 1$
Assume $f(i) = i$, $\forall i \in \{1,\dots, k\}$. Now consider $k+1$.
Let $f(k+1) = c \leq k$, so $c \in \{1,\dots,k\}$. Consider the set $\{1,2,\dots,c-3,c-2,c,k+1\}$. Clearly this set is cardinal.
This implies $\{f(1),f(2),\dots,f(c-3),f(c-2),f(c),f(k+1)\}$ is cardinal. But that means the set $\{1,2,\dots,c-3,c-2,c,c\}$ is cardinal which is clearly false (only $c-1$ distinct elements). Contradiction, so $f(k+1) \geq k+1$.
The set $\{1,2,\dots,k,k+1\}$ is cardinal, so $\{f(1),f(2),\dots,f(k),f(k+1)\}$ is cardinal.
This means $\{1,2,\dots,k,f(k+1)\}$ is cardinal. This set has $k+1$ distinct elements, so $f(k+1) = k+1$
Hence by induction $f(n) = n$, $\forall n \in \mathbb{N}$. So $f(2024) = 2024$.

Hence proved $f(2024)$ can have 3 values - $1,2,2024$
This post has been edited 4 times. Last edited by NTguy, Jan 23, 2024, 9:19 AM
Reason: lol
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Sammy27
86 posts
#28 • 4 Y
Y by Eka01, ATGY, kamatadu, alexanderhamilton124
Claim: $f(2024)\in\boxed{\{1, 2, 2024\}}.$

It is easy to see that $f(\{1\})=\{f(1)\}$ and $f(1)=1$.
Now, $f:\{1,2\}\rightarrow\{1,f(2)\}\implies f(2)=1$ or $f(2)=2$.

Define a set $T=\{k:f(k)=2\}$, not necessarily be non-empty.
Lemma 1: $|T|\leq\min(T)-1$.
Proof: Suppose not. If $|T|\geq\min(T)$, then we choose $V\subset T$ where $\min(T)\in V$ and $|V|=\min(T)$. Evidently, $V$ is cardinal. So, $f:V\rightarrow\{2\}$, but $\{2\}$ is not cardinal, a contradiction. $\blacksquare$

Case 1: $f(2)=1$.
We see that the codomain of $f$ is hence restricted to $\{1,2\}$.
Proof: Suppose there exists $x$ such that $f(x)\geq3$. Then $f:\underbrace{\{2,x\}}_{\text{2 elements}}\rightarrow\underbrace{\{1,f(x)\}}_{\text{2 elements}}$, but $\{1, f(x)\}$ is not cardinal, a contradiction. $\blacksquare$

Case 2: $f(2)=2$.
Note that $f(3)\neq2$ by lemma 1, and $f:\{1,2,3\}\rightarrow\{1,2,f(3)\}\implies$ either $f(3)=1$ or $f(3)=3$.

Subcase 1: $f(3)=1$.
Again, we see that the codomain of $f$ is restricted to $\{1,2\}$.
Proof: Suppose there exists $x$ such that $f(x)\geq3$. Then $f:\underbrace{\{1,3,x\}}_{\text{3 elements}}\rightarrow\underbrace{\{1,f(x)\}}_{\text{2 elements}}$, but $\{1, f(x)\}$ is not cardinal, a contradiction. $\blacksquare$

Therefore, combining the results of the cases above, we get a viable family of functions satisfying the criteria:
$f(T)=\{2\}$ where $T=\{k:f(k)=2\}$ and $|T|\leq\min(T)-1$ and $f(\mathbb{N}-T)=\{1\}$. It is easy to verify that they indeed work.
From here, we can construct $f$ accordingly. If $T=\phi$, then $f(n)=1$ for all $n\in\mathbb{N}$ and $\boxed{f(2024)=1}$. If $T=\{2024\}$, then $f(n)=1$ for all $n\in\mathbb{N}-\{2024\}$ and $\boxed{f(2024)=2}$.

Subcase 2: $f(3)=3$.
If so, we claim that $f(n)=n$ for all $n\in\mathbb{N}$. We proceed by induction. We have already covered the base cases $n=1, 2$ and $3$. Now, suppose $f(i)=i$ for all $i\in\{1, 2,\dots, k\}$.
Lemma 2: $f(k+1)\leq k+1$.
Proof: For the sake of contradiction, suppose $f(k+1)>k+1$. But then
$$f:\underbrace{\{1, 2,\dots, k-1, k, k+1\}}_{\text{k+1 elements}}\rightarrow\underbrace{\{1, 2,\dots, k-1, k, f(k+1)\}}_{\text{k+1 elements}}$$and the latter cannot be a cardinal set, a contradiction. $\blacksquare$

Let us assume for the sake of contradiction that $f(k+1)=l$, where $l\in\{1, 2,\dots, k-1, k\}$ to be consistent with lemma 2.
If $l=1$, then
$$f:\underbrace{\{1, 2,\dots, k-2, k, k+1\}}_{\text{k elements}}\rightarrow\underbrace{\{1, 2,\dots, k-2, k\}}_{\text{k-1 elements}}$$but the latter is not cardinal, which is impossible.
If $l=2$, then
$$f:\{2, k+1\}\rightarrow\{2\}$$but the latter is not cardinal, which is impossible.
If $3\leq l \leq k$, then
$$f:\underbrace{\{1, 2,\dots, l-2, l, k+1\}}_{\text{l elements}}\rightarrow\underbrace{\{1, 2,\dots, l-2, l\}}_{\text{l-1 elements}}$$but the latter is not cardinal, which is impossible.
Therefore, $f(k+1)=k+1$ is forced and $f(n)=n$ for all $n\in\mathbb{N}$ inductively, which certainly works. $\blacksquare$
From here, we get $\boxed{f(2024)=2024}$ as another possibility.

Hence, we must have $f(2024)\in\{1, 2, 2024\}$, as desired. $\square$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sansgankrsngupta
167 posts
#29
Y by
OG!
It is clear that $f(1)=1$, now $f({1,2})={1,f(2)} \implies f(2)=1$ or 2 ,

Case1: $f(2)=1$, then $f({2,2024})={1,f(2024)}\implies f(2024)=1$ or 2.

Case2: $f(2)=2$
Note that $f(3) \neq 2$ as if $f(3)=2$, then $f({2,3})= {2,2}$ is not cardinal.
Case2a: $f(3)=1$
Now we prove that $f(n)=1$, for all $n \geq 3$ using stong induction on $n$ with $n=3$ being trivial. ASSUME holds for $n=3,4...k$.
ASSUME $f(k+1)>1$, then consider the cardinal set ${1,3,....k,k+1}$. Thus the set $N=f({1,3,....k,k+1})={f(1),f(3)...f(k),f(k+1)}$ is cardinal. If $f(k+1)>2$ So, set $N$ is not cardinal. Thus $f(k+1)=2$, however then the set $f({2,k+1})= {2,2}$ is not cardinal, though it was to be cardinal as ${2,k+1}$ is cardinal. Thus $f(k+1)=1$, completing our induction and thus we get $f(2024)=1$ in this case.
Case2a: $f(3)=3$
Now we prove that $f(n)=n$, for all $n \geq 3$ using stong induction on $n$ with $n=3$ being trivial. If it holds for $n=3,4...k$ then

let $f(k+1)=m$. If $m>k+1$, then consider the cardinal set $S={1,2,3....k,k+1}$, then the set $f(S)={1,2,3....k,m}$
, where $m>k+1$, thus $f(S)$ is clearly not cardinal.
If $2< m < k+1$, then consider the cardinal set $L={1,2,....m-2,m,k+1}$, then the set $f(L)={1,2,3....m-2,m,m}$
, where $m>k+1$, thus $f(S)$ is clearly not cardinal.
If $f(k+1)=2$, then consider the cardinal set $M={2,k+1}$, then the set $f(M)={2,2}$ is clearly not cardinal.
If $f(k+1)=1$, then consider the cardinal set $X={1,3,k+1}$, then the set $f(X)={1,3,1}$ is clearly not cardinal.
Thus, $f(k+1)=k+1$ and our induction is complete. So we get $f(2024)=2024$

Hence we get 3 proosible values 1,2, 2024.
Now, to prove that these are achievable, consider $f(x)$ as
(1)$f(x)=1$ for all $x \in Z-{2024}$ and $f(2024)=2$ and (2) $f(x)=1$ for all $x \in Z$.
(3) $f(x)=x$ for all $x \in Z$.

It is easy to see that all the constructions works, making 1,2,2024 achievable values.
This $f(2024)=1,2$ or $2024$.
This post has been edited 1 time. Last edited by sansgankrsngupta, Oct 20, 2024, 6:54 AM
Reason: -
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Cali.Math
128 posts
#30
Y by
We uploaded our solution https://calimath.org/pdf/INMO2024-4.pdf on youtube https://youtu.be/4ZRngVZY7B8.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
amogususususus
374 posts
#31
Y by
The answer is $f(2024)=1,2$ or $2024$, $f(2024)=1$ achievable by $f(n)=1 \ \forall \ n \in \mathbb{N}$. And $f(2024)=2024$ is achievable by $f(n)=n \ \forall n \in \mathbb{N}$, while $f(2024)=2$ is achievable by
$$f(n)=1 \ \forall \ n\in \mathbb{N} \setminus \{2024\}, \ f(2024)=2$$. Clearly these constructions are valid, now let's prove $f(2024)$ cannot take any other values. Notice that, since $f: \mathbb{N} \rightarrow \mathbb{N}$, either $f$ is bounded or unbounded.

For notation purposes, let $A\cong B$ means that $A$ is a set which contains every distinct element of a multiset $B$ exactly once. For example $\{1,2\} \cong \{1,1,2\}$.
Case 1. $f$ is unbounded
Note that we can choose natural numbers $2024<a_1<a_2<\cdots<a_{2023}$ that satisfy
$$max\{f(2024),2024\}<f(a_1)<f(a_2)<\cdots<f(a_{2023})$$. Since $\{2024,a_1,a_2,\cdots,a_{2023}\}$ is cardinal, the set $\{f(2024),f(a_1),f(a_2),\cdots,f(a_{2023})\}$ is also cardinal. Clearly $\{f(2024),f(a_1),f(a_2),\cdots,f(a_{2023})\}$ contains $2024$ elements, so it must be the case that $f(2024)=2024$.
Case 2. $f$ is bounded
Since $f$ is bounded, there exist $M \in \mathbb{N}$ where there are infinitely many $x \in \mathbb{N}$ that satisfy $f(x)=M$. We can choose natural numbers $2024<b_1<b_2<\cdots<b_{2023}$ that satisfy
$$f(b_1)=f(b_2)=\cdots=f(b_{2023})=M$$. Note that $\{2024,b_1,b_2,\cdots,b_{2023}\}$ is cardinal. If $f(2024)=M$, then the set $\{M\} \cong \{f(2024),f(b_1),f(b_2),\cdots ,f(b_{2023}) \}$ is also cardinal which forces $M=1$, this yields $f(2024)=1$. If $f(2024)\neq M$, then the set $\{f(2024), M\} \cong \{f(2024),f(b_1),f(b_2),\cdots,f(b_{2023})\}$ yields $f(2024)=2$ or else $M=2$. It suffices to prove that $M \neq 2$

FTSOC, assume $M=2$. Then for any $m \in \mathbb{N} \setminus \{1 \}$, we can choose natural numbers $m<c_1<c_2<\cdots c_{m-1}$ such that
$$f(c_1)=f(c_2)=\cdots=f(c_{m-1})=2$$. Note that the set $\{ m,c_1,c_2,\cdots, c_{m-1}\}$ is cardinal. If $f(m)=2$ for some $m \in \mathbb{N} \setminus \{1 \}$, then the set $\{2 \} \cong \{ f(m), f(c_1),f(c_2),\cdots, f(c_{m-1})\}$ is cardinal. A contradiction, that means $f(m)\neq 2$ for all $m \in \mathbb{N} \setminus \{1 \}$. Which is absurd.

Hence $f(2024)=1$ or $2$.
Since we have exhausted all cases, we are done.
This post has been edited 3 times. Last edited by amogususususus, Dec 31, 2024, 3:41 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
little-fermat
147 posts
#32 • 1 Y
Y by JARP091
I have discussed this question in my INMO 2024 video on my channel "little fermat". Here is the Video
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Adywastaken
115 posts
#33
Y by
$S=\{1\}\implies f(1)=1$
$S=\{1,2\}\implies f(2)\ \in \{1,2\}$
If $f(2)=1$, $S=\{2,2024\}\implies f(2024)\in \{1,2\}$.

From now, assume $f(2)=2$, $f(2024)\neq 1,2$
If $f(3)=2$, $S=\{2,3\}\implies \{2,2\}$ is cardinal, $\Rightarrow\Leftarrow$.
If $f(3)=1$, $S=\{1,3,2024\}\implies \{1,f(2024)\}$ is cardinal, so $f(2024)=1,2$, $\Rightarrow \Leftarrow$.
$S={1,2,3}\implies {1,2,f(3)}$ is cardinal, so $f(3)=3$.

Now, we claim $f(n)=n \ \forall \ n \ \in \ \mathbb{N}$.
Say $f(1)=1, f(2)=2, \dots, f(k)=k$.
FTSOC $f(k+1)\le k$.
$S=\{1,2,\dots,a-2,a,k+1\}\implies \{1,2,\dots,a-2,a,f(k+1)\}$ is cardinal, so $f(k+1)\neq 1,2,\dots,a-2,a \ \forall \ 2 \le a \le k$.
And, $S=\{1,2,\dots,k,k+1\}\implies \{1,2,\dots,k,f(k+1)\}$ is cardinal, so $f(k+1)=k+1$.

Thus, $\boxed{f(2024)\in \{1,2,2024\}}$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
heheman
1114 posts
#34
Y by
was i the only one who found this a bit tedious? it was really caseworky
solution

comments
This post has been edited 4 times. Last edited by heheman, Jun 7, 2025, 4:39 AM
Reason: add comments
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Cats_on_a_computer
95 posts
#35
Y by
Let \(n\ge1\). The set \(S=\{1,2,\dots,n\}\) has \(n\) elements, so \(f(S)\) has at most \(n\) distinct values. Hence
\[
1\;\le\;f(n)\;\le\;n.
\]


If \(f\) is injective, then \(f(1)=1\) (apply to \(S=\{1\}\)). An easy induction shows
\[
f(n)=n
\quad\forall n,
\]and in particular \(f(2024)=2024\).



Suppose \(f\) is not injective, so there exist \(a<b\) with
\[
f(a)=f(b)=r>1.
\]Consider the set
\[
T=\{a,a+1,\dots,b\},
\]which has \(|T|=b-a+1\). Since the only collision in \(T\) is at \(a\) and \(b\), one sees
\[
\bigl|f(T)\bigr| \;=\; |T|-1 \;=\; b-a.
\]But \(f(T)\) must be cardinal, so \(\lvert f(T)\rvert\in f(T)\). The only guaranteed value in \(f(T)\) coming from that collision is \(r\), so
\[
b-a \;=\; r.
\]Hence any repeated value must equal the distance between its two preimages. In particular, if \(r\ge3\) then \(b=a+r\ge a+3\) but one checks this clashes with the bound \(f(b)\le b\). Therefore the only possible non-injective values are
\[
r=1\quad\text{or}\quad r=2,
\]and so
\[
f(n)\in\{1,2\}
\quad\text{for all }n.
\]In particular \(f(2024)\in\{1,2\}\).


Combining the two cases shows
\[
\boxed{f(2024)\in\{1,2,2024\}}.
\]
Z K Y
N Quick Reply
G
H
=
a