Stay ahead of learning milestones! Enroll in a class over the summer!

G
Topic
First Poster
Last Poster
k a April Highlights and 2025 AoPS Online Class Information
jlacosta   0
Apr 2, 2025
Spring is in full swing and summer is right around the corner, what are your plans? At AoPS Online our schedule has new classes starting now through July, so be sure to keep your skills sharp and be prepared for the Fall school year! Check out the schedule of upcoming classes below.

WOOT early bird pricing is in effect, don’t miss out! If you took MathWOOT Level 2 last year, no worries, it is all new problems this year! Our Worldwide Online Olympiad Training program is for high school level competitors. AoPS designed these courses to help our top students get the deep focus they need to succeed in their specific competition goals. Check out the details at this link for all our WOOT programs in math, computer science, chemistry, and physics.

Looking for summer camps in math and language arts? Be sure to check out the video-based summer camps offered at the Virtual Campus that are 2- to 4-weeks in duration. There are middle and high school competition math camps as well as Math Beasts camps that review key topics coupled with fun explorations covering areas such as graph theory (Math Beasts Camp 6), cryptography (Math Beasts Camp 7-8), and topology (Math Beasts Camp 8-9)!

Be sure to mark your calendars for the following events:
[list][*]April 3rd (Webinar), 4pm PT/7:00pm ET, Learning with AoPS: Perspectives from a Parent, Math Camp Instructor, and University Professor
[*]April 8th (Math Jam), 4:30pm PT/7:30pm ET, 2025 MATHCOUNTS State Discussion
April 9th (Webinar), 4:00pm PT/7:00pm ET, Learn about Video-based Summer Camps at the Virtual Campus
[*]April 10th (Math Jam), 4:30pm PT/7:30pm ET, 2025 MathILy and MathILy-Er Math Jam: Multibackwards Numbers
[*]April 22nd (Webinar), 4:00pm PT/7:00pm ET, Competitive Programming at AoPS (USACO).[/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, 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
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
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
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
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
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
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
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
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
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
Tuesday, Jun 10 - Aug 26

Calculus
Tuesday, May 27 - Nov 11
Wednesday, Jun 25 - Dec 17

Group Theory
Thursday, Jun 12 - Sep 11

Contest Preparation: Grades 6-12

MATHCOUNTS/AMC 8 Basics
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
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
Thursday, May 22 - Aug 7
Sunday, Jun 15 - Sep 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Tuesday, Jun 17 - Sep 2
Monday, Jun 30 - Sep 22

Intermediate Programming with Python
Sunday, Jun 1 - Aug 24
Monday, Jun 30 - Sep 22

USACO Bronze Problem Series
Tuesday, May 13 - Jul 29
Sunday, Jun 22 - Sep 1

Physics

Introduction to Physics
Wednesday, May 21 - Aug 6
Sunday, Jun 15 - Sep 14
Monday, Jun 23 - Sep 15

Physics 1: Mechanics
Thursday, May 22 - Oct 30
Monday, Jun 23 - Dec 15

Relativity
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
Apr 2, 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
Functional Equation
AnhQuang_67   1
N 9 minutes ago by maromex
Find all functions $f: \mathbb{R} \to \mathbb{R}$ satisfying $$2\cdot f\Big(\dfrac{-xy}{2}+f(x+y)\Big)=xf(y)+y(x), \forall x, y \in \mathbb{R} $$











1 reply
AnhQuang_67
18 minutes ago
maromex
9 minutes ago
Problem 1
blug   4
N 10 minutes ago by grupyorum
Source: Polish Math Olympiad 2025 Finals P1
Find all $(a, b, c, d)\in \mathbb{R}$ satisfying
\[\begin{aligned}
\begin{cases}
    a+b+c+d=0,\\
    a^2+b^2+c^2+d^2=12,\\
    abcd=-3.\\
\end{cases}
\end{aligned}\]
4 replies
blug
5 hours ago
grupyorum
10 minutes ago
A board with crosses that we color
nAalniaOMliO   3
N 31 minutes ago by nAalniaOMliO
Source: Belarusian National Olympiad 2025
In some cells of the table $2025 \times 2025$ crosses are placed. A set of 2025 cells we will call balanced if no two of them are in the same row or column. It is known that any balanced set has at least $k$ crosses.
Find the minimal $k$ for which it is always possible to color crosses in two colors such that any balanced set has crosses of both colors.
3 replies
nAalniaOMliO
Mar 28, 2025
nAalniaOMliO
31 minutes ago
April Fools Geometry
awesomeming327.   6
N 33 minutes ago by GreekIdiot
Let $ABC$ be an acute triangle with $AB<AC$, and let $D$ be the projection from $A$ onto $BC$. Let $E$ be a point on the extension of $AD$ past $D$ such that $\angle BAC+\angle BEC=90^\circ$. Let $L$ be on the perpendicular bisector of $AE$ such that $L$ and $C$ are on the same side of $AE$ and
\[\frac12\angle ALE=1.4\angle ABE+3.4\angle ACE-558^\circ\]Let the reflection of $D$ across $AB$ and $AC$ be $W$ and $Y$, respectively. Let $X\in AW$ and $Z\in AY$ such that $\angle XBE=\angle ZCE=90^\circ$. Let $EX$ and $EZ$ intersect the circumcircles of $EBD$ and $ECD$ at $J$ and $K$, respectively. Let $LB$ and $LC$ intersect $WJ$ and $YK$ at $P$ and $Q$. Let $PQ$ intersect $BC$ at $F$. Prove that $FB/FC=DB/DC$.
6 replies
awesomeming327.
Apr 1, 2025
GreekIdiot
33 minutes ago
Functional equations
hanzo.ei   14
N 33 minutes ago by jasperE3
Source: Greekldiot
Find all $f: \mathbb R_+ \rightarrow \mathbb R_+$ such that $f(xf(y)+f(x))=yf(x+yf(x)) \: \forall \: x,y \in \mathbb R_+$
14 replies
hanzo.ei
Mar 29, 2025
jasperE3
33 minutes ago
Problem 1
SlovEcience   2
N 37 minutes ago by Raven_of_the_old
Prove that
\[
C(p-1, k-1) \equiv (-1)^{k-1} \pmod{p}
\]for \( 1 \leq k \leq p-1 \), where \( C(n, m) \) is the binomial coefficient \( n \) choose \( m \).
2 replies
SlovEcience
2 hours ago
Raven_of_the_old
37 minutes ago
Conditional maximum
giangtruong13   1
N 40 minutes ago by giangtruong13
Source: Specialized Math
Let $a,b$ satisfy that: $1 \leq a \leq2$ and $1 \leq b \leq 2$. Find the maximum: $$A=(a+b^2+\frac{4}{a^2}+\frac{2}{b})(b+a^2+\frac{4}{b^2}+\frac{2}{a})$$
1 reply
giangtruong13
Mar 22, 2025
giangtruong13
40 minutes ago
four variables inequality
JK1603JK   0
42 minutes ago
Source: unknown?
Prove that $$27(a^4+b^4+c^4+d^4)+148abcd\ge (a+b+c+d)^4,\ \ \forall a,b,c,d\ge 0.$$
0 replies
JK1603JK
42 minutes ago
0 replies
a hard geometry problen
Tuguldur   0
an hour ago
Let $ABCD$ be a convex quadrilateral. Suppose that the circles with diameters $AB$ and $CD$ intersect at points $X$ and $Y$. Let $P=AC\cap BD$ and $Q=AD\cap BC$. Prove that the points $P$, $Q$, $X$ and $Y$ are concyclic.
( $AB$ and $CD$ are not the diagnols)
0 replies
Tuguldur
an hour ago
0 replies
Problem 2
SlovEcience   0
an hour ago
Let \( a, n \) be positive integers and \( p \) be an odd prime such that:
\[
a^p \equiv 1 \pmod{p^n}.
\]Prove that:
\[
a \equiv 1 \pmod{p^{n-1}}.
\]
0 replies
SlovEcience
an hour ago
0 replies
Regarding Maaths olympiad prepration
omega2007   1
N an hour ago by GreekIdiot
<Hey Everyone'>
I'm 10 grader student and Im starting prepration for maths olympiad..>>> From scratch (not 2+2=4 )

Do you haves compilled resources of Handouts,
PDF,
Links,
List of books topic wise

which are shared on AOPS (and from your prespective) for maths olympiad and any useful thing, which will help me in boosting Maths olympiad prepration.
1 reply
omega2007
2 hours ago
GreekIdiot
an hour ago
Induction
Mathlover_1   2
N an hour ago by GreekIdiot
Hello, can you share links of same interesting induction problems in algebra
2 replies
Mathlover_1
Mar 24, 2025
GreekIdiot
an hour ago
n-gon function
ehsan2004   10
N 2 hours ago by Zany9998
Source: Romanian IMO Team Selection Test TST 1996, problem 1
Let $ f: \mathbb{R}^2 \rightarrow \mathbb{R} $ be a function such that for every regular $ n $-gon $ A_1A_2 \ldots A_n $ we have $ f(A_1)+f(A_2)+\cdots +f(A_n)=0 $. Prove that $ f(x)=0 $ for all reals $ x $.
10 replies
ehsan2004
Sep 13, 2005
Zany9998
2 hours ago
Congruency in sum of digits base q
buzzychaoz   3
N 2 hours ago by sttsmet
Source: China Team Selection Test 2016 Test 3 Day 2 Q4
Let $a,b,b',c,m,q$ be positive integers, where $m>1,q>1,|b-b'|\ge a$. It is given that there exist a positive integer $M$ such that
$$S_q(an+b)\equiv S_q(an+b')+c\pmod{m}$$
holds for all integers $n\ge M$. Prove that the above equation is true for all positive integers $n$. (Here $S_q(x)$ is the sum of digits of $x$ taken in base $q$).
3 replies
1 viewing
buzzychaoz
Mar 26, 2016
sttsmet
2 hours ago
f(n+1) = f(n) + 2^f(n) implies f(n) distinct mod 3^2013
v_Enhance   50
N Apr 1, 2025 by Maximilian113
Source: USA TSTST 2013, Problem 8
Define a function $f: \mathbb N \to \mathbb N$ by $f(1) = 1$, $f(n+1) = f(n) + 2^{f(n)}$ for every positive integer $n$. Prove that $f(1), f(2), \dots, f(3^{2013})$ leave distinct remainders when divided by $3^{2013}$.
50 replies
v_Enhance
Aug 13, 2013
Maximilian113
Apr 1, 2025
f(n+1) = f(n) + 2^f(n) implies f(n) distinct mod 3^2013
G H J
G H BBookmark kLocked kLocked NReply
Source: USA TSTST 2013, Problem 8
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
v_Enhance
6870 posts
#1 • 15 Y
Y by Amir Hossein, narutomath96, artsolver, anantmudgal09, anhtaitran, tenplusten, MathPassionForever, rashah76, Purple_Planet, akjmop, HamstPan38825, megarnie, JingheZhang, Adventure10, ehuseyinyigit
Define a function $f: \mathbb N \to \mathbb N$ by $f(1) = 1$, $f(n+1) = f(n) + 2^{f(n)}$ for every positive integer $n$. Prove that $f(1), f(2), \dots, f(3^{2013})$ leave distinct remainders when divided by $3^{2013}$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ISHO95
221 posts
#2 • 1 Y
Y by Adventure10
$f(n+1)-f(n)=2^{f(n)}$ we have these
$f(2)-f(1)=2^{f(1)}$
$f(3)-f(2)=2^{f(2)}$
.......
$f(n)-f(n-1)=2^{f(n-1)}$
then we have that
$f(n)=2^{f(1)}+2^{f(2)}+...+2^{f(n-1)}+1$
$f(1)$ is odd, => $f(n)$ is odd for every natural $n$=> $2^{f(n)}$ leave $2$ remainder when divided by $3$
for every $n \in N$
Assume that
$f(a)-f(b)$ divisible by $3^{2013}$ for $b<a<3^{2013}$
$f(a)-f(b)=2^{f(b)}+2^{f(b+1)}+...+2^{f(a-1)}$ leave $2(a-b)$ remainder when divided by $3^{2013}$, because $f(a)$ is not equal to $f(b)$ for $a$ is not equal to $b$
$2$ is not divisible by $3$ => $a-b$ divisible by $3^{2013}$ but $a-b<3^{2013}$ => contradiction
=> we have proved problem!
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dinoboy
2903 posts
#3 • 12 Y
Y by Binomial-theorem, Amir Hossein, narutomath96, Mediocrity, limopanda, Purple_Planet, OlympusHero, megarnie, sabkx, Adventure10, Mango247, and 1 other user
I do not understand ISHO95's solution at all. Here is a solution which I believe is correct.

First, note that $\text{ord}_{3^n}(2) = 2 \cdot 3^{n-1}$. As $f(1)$ is odd, we know that for all $n$ $f(n)$ is odd, therefore knowing $f(n)$ modulo $3^{m-1}$ is sufficient to determine $f(n+1)$ modulo $3^m$. Denote $f(0) = 0$ for convenience (note the recursion still works from $0$ to $1$).

Now, I claim that for a nonnegative integer $m$, we have for all nonnegative integers $n$ that $f(n+3^m) \equiv f(n) + 2 \cdot 3^{m} \pmod{3^{m+1}}$ and furthermore that $f(3^m) \equiv 2 \cdot 3^m \pmod{3^{m+1}}$. We prove this by induction on $m$.

Its trivially true for $m=0$. Now assume it holds for all $n$ when $m \le M$. We prove it works for $m = M+1$.

First remark that $f(n + 3^{M+1}) \equiv f(n) + 3 \cdot 2 \cdot 3^M \equiv f(n) \pmod{3^{M+1}}$ so we have $3^{M+1}|(f(n + 3^{M+1}) - f(n))$. In particular we have $3^{M+1}|f(3^{M+1})$.

Now, remark that: \begin{eqnarray*} f(n + 1 + 3^{M+1}) - f(n+1) & \equiv & f(n + 3^{M+1}) + 2^{f(n + 3^{M+1})} - f(n) - 2^{f(n)} \\ & \equiv & f(n + 3^{M+1}) - f(n) \pmod{3^{M+2}} \end{eqnarray*} utilizing the fact that $f(n + 3^{M+1}) \equiv {f(n) \pmod{3^{M+1}}}$ so $2$ to those respective values are congruent modulo $3^{M+2}$ as they are both odd. Thus it follows by induction on $n$ that $f(n + 3^{M+1}) - f(n) \pmod{3^{M+2}}$ is the same across all values of $n$. Now we have: \[f(3^{M+1}) - f(2 \cdot 3^M) \equiv f(2 \cdot 3^M) - f(3^M) \equiv f(3^M) \pmod{3^{M+2}}\]
Therefore we have $f(2 \cdot 3^M) \equiv 2 f(3^M) \pmod{3^{M+2}}$, so $f(3^{M+1}) \equiv 3 f(3^M) \equiv 2 \cdot 3^{M+1} \pmod{3^{M+2}}$. Therefore as $f(3^{M+1}) - f(0) \equiv 2 \cdot 3^{M+1} \pmod{3^{M+2}}$ our induction is complete.

Now we apply induction on $m$ to show that $f(1), f(2), ..., f(3^m)$ form a complete residue system modulo $m$. It is obviously true for $m=0$. Now suppose it is true for all $m \le M$ and we wish to show it for $M+1$. Consider an arbitrary number $k$ modulo $3^{M+1}$. By the inductive hypothesis we have for some integer $1 \le n \le 3^M$ that $k \equiv f(n) \pmod{3^M}$. Now write $k \equiv f(n) + z \cdot 3^M \pmod{3^{M+1}}$. Then we have $f(n + 2z 3^M) \equiv k \pmod{3^{M+1}}$, and then reduce $n + 2z 3^M$ modulo $3^{M+1}$ to get something in $f(1), f(2), ..., f(3^{M+1})$. Thus they form a complete residue system as every number $k$ is congruent to one of the values modulo $3^{M+1}$, completing our induction. As them being a complete residue system implies they are distinct, the problem follows by setting $m = 2013$ so we are done.

Overall this is a pretty simple problem, the observation that $f(n)$ modulo $3^m$ gives you $f(n)$ modulo $3^{m+1}$ is the only thing you need to see and from then on its just details.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Binomial-theorem
3982 posts
#4 • 8 Y
Y by Amir Hossein, mathroyal, Purple_Planet, OlympusHero, megarnie, Adventure10, megahertz13, and 1 other user
I know my solution is incredibly similar to dinoboy's and his is a lot more concise however I would like to share mine:

Define $f(x)$ to be such that $f(1)=1$ and $f(x+1)=2^{f(x)}+f(x)$. Define a function $f_{n}(x)$ such that $0\le f_{n}(x)\le 3^n-1$ and $f_{n}(x)\equiv f(x)\pmod{3^n}$. Next, define $g_{n}(x)$ such that $0\le g_{n}(x)\le \phi(3^n)-1$ and $g_{n}(x)\equiv f(x)\pmod{\phi(3^n)}$. We re-write the problem statement as if $x,y\in \{1, 2, \cdots, 3^n\}$ we have $f_{n}(x)=f_{n}(y)\iff x=y$ (i.e. $f_{n}(x)$ is distinct). A few nice properties of these:
  1. By Chinese remainder theorem we have $f_{n-1}(x)\equiv f_{n}(x)\equiv g_{n}(x)\pmod{3^{n-1}}$.
  2. By Euler's totient we have $f_{n}(x)\equiv 2^{g_n(x-1)}+f_{n}(x-1)\pmod{3^n}$.
  3. From (1) and (2) along with Chinese Remainder Theorem we have $g_{n}(x)\equiv 2^{g_n(x-1)}+g_{n}(x-1)\pmod{\phi(3^n)}$

What we are attempting to prove: The problem statement holds for $n=k$ and we have $f_{k}(x)=f_{k}(x+3^km)$ where $m$ is a positive integer.

We use induction.

Base case: We have $f_{1}(1)=1, f_{1}(2)=0, f_{1}(3)=2$ therefore the problem statement holds for $k=1$. Notice that $g_{1}(x)=1$ therefore $f_{1}(x)\equiv 2+f_{n}(x-1)\pmod{3}$ from proposition (2). Therefore it is clear that $f_{1}(x)=f_{1}(x+3m)$.

Induction hypothesis: The problem statement holds for $n=k$ and we have $f_{k}(x)=f_{k}(x+3^km)$ where $m$ is a positive integer.

We now must prove the problem statement holds for $n=k+1$ and we have $f_{k+1}(x)=f_{k+1}(x+3^{k+1}m)$. From (1) we have $g_{k+1}(x)\equiv f_{k}(x)\pmod{3^{k}}$. Therefore we have $g_{k+1}(x)$ is distinct mod $3^k$ when $x\in \{1,2,\cdots, 3^k\}$. We also have that $g_{k+1}(x)=g_{k+1}(x+3^km)$. This means that we can separate $g_{k+1}(x)$ into three "groups" that have length $3^k$ and are ordered $g_{k+1}(1), g_{k+1}(2), \cdots, g_{k+1}(3^k)$. This is incredibly useful. (At this point I know all the notation must be incredibly confusing to the reader, so hence I personally have a table made for $g_{2}(x)$ and $f_{2}(x)$ lining up the terms. When you do this out the notation makes a lot more sense, trust me.)

Because $f_{k}(x)\equiv g_{k+1}(x)\equiv f_{k+1}(x)\pmod{3^k}$ we can separate $f_{k+1}(x)$ into three groups all of whose elements correspond to $f_{k}(x)$. It is also evident that $f_{k+1}(x)=f_{k+1}(x+3^k)=f_{k+1}(x+2\cdot 3^k)\pmod{3^k}$. Out of these three groups we must now prove the following:
  • $f_{k+1}(x)=f_{k+1}(x+3^{k+1}m)$ where $m$ is a positive integer.
  • $f_{k+1}(x)\neq f_{k+1}(x+3^k)\neq f_{k+1}(x+2\cdot 3^k)\pmod{3^{k+1}}$.

Both of these two statements boil down to (2). We notice that we have \begin{align*} f_{k+1}(x+3^k)\equiv 2^{g_{k+1}\left(x+3^k-1\right)}+f_{k+1}\left(x+3^k-1\right)\pmod{3^{k+1}} \\ \implies f_{k+1}(x+3^k)\equiv 2^{g_{k+1}\left(x+3^k-1\right)}+2^{g_{k+1}\left(x+3^k-2\right)}+\cdots+2^{g_{k+1}\left(x\right)}+f_{k+1}(x)\pmod{3^{k+1}} \end{align*}
We now notice that $g_{k+1}\left(y\right)$ takes on all of the odd integers from $1$ to $\phi\left(3^{k+1}\right)-1$. This is exactly the number of elements we have above henceforth it happens that \begin{align*} f_{k+1}(x+3^k)\equiv 2^1+2^3+\cdots+2^{\phi\left(3^{k+1}\right)-1}+f_{k+1}(x)\pmod{3^{k+1}} \\ f_{k+1}(x+3^k)\equiv \left(2\right)\left(\frac{2^{\phi(3^{k+1})}-1}{3}\right)+f_{k+1}(x) \pmod{3^{k+1}}.\end{align*}
Notice that \[v_3(2^{\phi(3^{k+1})}-1)=v_3(4^{3^k}-1)=k+1\]via lifting the exponent. Therefore $v_3\left(\frac{2^{\phi(3^{k+1})}-1}{3}\right)=k$ henceforth $f_{k+1}(x+3^k)\equiv f_{k+1}(x)\pmod{3^k}$ but $f_{k+1}(x+3^k)\neq f_{k+1}(x)\pmod{3^{k+1}}$. We write $f_{k+1}(x+3^k)-f_{k+1}(x)=z3^k$ where $\gcd(z,3)=1$. Notice that substituting $x=n3^k+x_1$ we arrive at \[f_{k+1}(x_1+(n+1)\cdot 3^k)-f_{k+1}(x_1+n3^k)=z3^k\]from which we can derive \[f_{k+1}\left(x+a\cdot 3^k\right)-f_{k+1}\left(x+b\cdot 3^k\right)\equiv (a-b)3^k\pmod{3^{k+1}}\]
Now, notice that $f_{k+1}(x+3^k)-f_{k+1}(x)=z3^k, f_{k+1}(x+2\cdot 3^k)-f_{k+1}(x+3^k)=z3^k$ and $f_{k+1}(x+2\cdot 3^k)-f_{k+1}(x)=2z3^k$ therefore the first part of our list of necessary conditions is taken care of. Now, notice that substituting $a=3m, b=0$ into the second equation we arrive at the second condition.

Our induction is henceforth complete.

Because the problem statement holds for all $n$ it also holds for $2013$ and we are done.
This post has been edited 1 time. Last edited by djmathman, Jan 6, 2016, 6:41 PM
Reason: fixed latex
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
saynoaha2
16 posts
#5 • 2 Y
Y by Adventure10, Mango247
Someone still solving that problems?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
cefer
293 posts
#6 • 11 Y
Y by tenplusten, BogdanB, pablock, Abbas11235, Kamran011, Purple_Planet, OlympusHero, sabkx, Adventure10, Mango247, ehuseyinyigit
dinoboy wrote:
... furthermore that $f(3^m) \equiv 2 \cdot 3^m \pmod{3^{m+1}}$. We prove this by induction on $m$.

Since $f(3)=11\equiv 2 \pmod{9}$ this claim is not true.
dinoboy wrote:
Overall this is a pretty simple problem, the observation that $f(n)$ modulo $3^m$ gives you $f(n)$ modulo $3^{m+1}$ is the only thing you need to see and from then on its just details.

This is also not true since $f(3) \equiv 2 \pmod{9}$ but $f(3)\equiv 11 \pmod{27}$.


Here is my solution. We will use induction on $k$ to prove that $\{f(1), \ldots, f(3^k)\}$ give distinct residues modulo $3^k$ and $f(3^k+i)\equiv f(i) \pmod{3^k}$ for all $i\geq 0$. In other words $f(n) \pmod{3^k}$ is periodic with minimum period $3^k$. It can be easily checked for small values of $k$. Suppose it is true for $k$.

Claim: $f(a+1)\equiv f(b+1) \pmod{3^{k+1}}$ if and only if $f(a)\equiv f(b) \pmod{3^{k+1}}$ .
Proof: If $f(a+1)\equiv f(b+1) \pmod{3^{k+1}}$ , then obviously $f(a+1)\equiv f(b+1) \pmod{3^{k}}$. By induction hypothesis we get $f(a)\equiv f(b) \pmod{3^{k}}$. Since all $f(n)$s are odd this gives $f(a)\equiv f(b) \pmod{2\cdot 3^{k}}$. Therefore $2^{f(a)}\equiv 2^{f(b)} \pmod{3^{k+1}}$. Hence
$$f(a)=f(a+1)-2^{f(a)}\equiv f(b+1)-2^{f(b)}\equiv f(b) \pmod{3^{k+1}}$$Conversely, if $f(a)\equiv f(b) \pmod{3^{k+1}}$, then $f(a)\equiv f(b) \pmod{3^{k}}$ which gives $f(a)\equiv f(b) \pmod{2\cdot 3^{k}}$. Hence $2^{f(a)}\equiv 2^{f(b)} \pmod{3^{k+1}}$ and
$$f(a+1)=2^{f(a)}+f(a)\equiv 2^{f(b)}+f(b)\equiv f(b+1) \pmod{3^{k+1}}$$
From above claim $f(n) \pmod{3^{k+1}}$ is periodic and minimum period is an integer $n_0$ such that $f(n_0+1)\equiv f(1) \pmod{3^{k+1}}$. Since $n_0$ is also a period of $f(n) \pmod{3^{k}}$ by induction hypothesis $3^k\mid n_0$. Hence $n_0=\alpha \cdot 3^k$ for some $\alpha \in \{1, 2, 3\}$. So all we need is to prove that $\alpha=3$. By induction hypothesis we know that $f(1), \ldots, f(n_0)$ give each residue modulo $3^k$ exactly $\alpha$ times. Since $f(n)$s are odd we deduce that these numbers give each odd residue modulo $2\cdot 3^k$ exactly $\alpha$ times. Hence
\begin{align*}
f(n_0+1)&=1+2^{f(1)}+2^{f(2)}+\cdots+2^{f(n_0)}\\
&\equiv 1+\alpha\left(2^1+2^3+\cdots+2^{2\cdot 3^k-1}\right) \tag{mod $3^{k+1}$}\\
&\equiv 1+\frac{2\alpha(2^{2\cdot 3^k}-1)}{3} \tag{mod $3^{k+1}$}\
\end{align*}Since $2$ is a primitive root modulo $3^{m}$ for all $m$ the numerator of the last fraction is divisible by $3^{k+1}$ but not $3^{k+2}$. Thus $f(n_0+1)\equiv 1 \pmod{3^{k+1}}$ if and only if $\alpha=3$.
This post has been edited 1 time. Last edited by cefer, Jan 6, 2016, 9:23 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
v_Enhance
6870 posts
#7 • 18 Y
Y by baladin, nguyenhaan2209, MathPassionForever, bobjoe123, rashah76, Purple_Planet, franchester, akjmop, MassimilianoF, aryabhata000, OlympusHero, v4913, XbenX, blackbluecar, Lukas8r20, Assassino9931, Adventure10, Mango247
I'll prove by induction on $k \ge 1$ that any $3^k$ consecutive values of $f$ produce distinct residues modulo $3^k$. The base case $k=1$ is easily checked ($f$ is always odd, hence $f$ cycles $1$, $0$, $2$ mod $3$).

For the inductive step, assume it's true up to $k$. Since $2^\ast \pmod{3^{k+1}}$ cycles every $2 \cdot 3^k$, and $f$ is always odd, it follows that \begin{align*} f(n+3^k) - f(n) &= 2^{f(n)} + 2^{f(n+1)} + \dots + 2^{f(n+3^k-1)} \pmod{3^{k+1}} \\ &\equiv 2^1 + 2^3 + \dots + 2^{2 \cdot 3^k-1} \pmod{3^{k+1}} \\ &= 2 \cdot \frac{4^{3^k}-1}{4-1}.  \end{align*}Hence \[ f(n+3^k)-f(n) \equiv C \pmod{3^{k+1}} \qquad\text{where} \qquad C = 2 \cdot \frac{4^{3^k}-1}{4-1} \]noting that $C$ does not depend on $n$. Exponent lifting gives $\nu_3(C) = k$ hence $f(n)$, $f(n+3^k)$, $f(n+2\cdot3^k)$ differ mod $3^{k+1}$ for all $n$, and the inductive hypothesis now solves the problem.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
jeff10
1117 posts
#8 • 3 Y
Y by Purple_Planet, Adventure10, Mango247
I think this is pretty similar to above solutions (at least v_Enhance's), but I want to practice proof-writing.
Solution
This post has been edited 2 times. Last edited by jeff10, Apr 14, 2017, 1:46 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Anar24
475 posts
#10 • 2 Y
Y by Adventure10, Mango247
v_Enhance wrote:
I'll prove by induction on $k \ge 1$ that any $3^k$ consecutive values of $f$ produce distinct residues modulo $3^k$. The base case $k=1$ is easily checked ($f$ is always odd, hence $f$ cycles $1$, $0$, $2$ mod $3$).

For the inductive step, assume it's true up to $k$. Since $2^\ast \pmod{3^{k+1}}$ cycles every $2 \cdot 3^k$, and $f$ is always odd, it follows that \begin{align*} f(n+3^k) - f(n) &= 2^{f(n)} + 2^{f(n+1)} + \dots + 2^{f(n+3^k-1)} \pmod{3^{k+1}} \\ &\equiv 2^1 + 2^3 + \dots + 2^{2 \cdot 3^k-1} \pmod{3^{k+1}} \\ &= 2 \cdot \frac{4^{3^k}-1}{4-1}.  \end{align*}Hence \[ f(n+3^k)-f(n) \equiv C \pmod{3^{k+1}} \qquad\text{where} \qquad C = 2 \cdot \frac{4^{3^k}-1}{4-1} \]noting that $C$ does not depend on $n$. Exponent lifting gives $\nu_3(C) = k$ hence $f(n)$, $f(n+3^k)$, $f(n+2\cdot3^k)$ differ mod $3^{k+1}$ for all $n$, and the inductive hypothesis now solves the problem.
Can you explain please what did you assume by induction and i couldn't understand the steps which lead to find C
This post has been edited 1 time. Last edited by Anar24, May 13, 2017, 10:43 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Anar24
475 posts
#11 • 1 Y
Y by Adventure10
....................
This post has been edited 1 time. Last edited by Anar24, May 13, 2017, 12:35 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Anar24
475 posts
#12 • 2 Y
Y by Adventure10, Mango247
v_Enhance wrote:
I'll prove by induction on $k \ge 1$ that any $3^k$ consecutive values of $f$ produce distinct residues modulo $3^k$. The base case $k=1$ is easily checked ($f$ is always odd, hence $f$ cycles $1$, $0$, $2$ mod $3$).

For the inductive step, assume it's true up to $k$. Since $2^\ast \pmod{3^{k+1}}$ cycles every $2 \cdot 3^k$, and $f$ is always odd, it follows that \begin{align*} f(n+3^k) - f(n) &= 2^{f(n)} + 2^{f(n+1)} + \dots + 2^{f(n+3^k-1)} \pmod{3^{k+1}} \\ &\equiv 2^1 + 2^3 + \dots + 2^{2 \cdot 3^k-1} \pmod{3^{k+1}} \\ &= 2 \cdot \frac{4^{3^k}-1}{4-1}.  \end{align*}Hence \[ f(n+3^k)-f(n) \equiv C \pmod{3^{k+1}} \qquad\text{where} \qquad C = 2 \cdot \frac{4^{3^k}-1}{4-1} \]noting that $C$ does not depend on $n$. Exponent lifting gives $\nu_3(C) = k$ hence $f(n)$, $f(n+3^k)$, $f(n+2\cdot3^k)$ differ mod $3^{k+1}$ for all $n$, and the inductive hypothesis now solves the problem.

please can you explain the part where you found C??
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mastermind.hk16
143 posts
#13 • 3 Y
Y by Purple_Planet, Adventure10, Mango247
We will prove by induction that $$f(1),f(2), \dots , f(3^n)$$leave distinct remainders modulo $3^n$.

Base case: $n=1$. Clearly $1,3,11 \mod 3$ is a complete residue class modulo $3$.

Induction hypothesis: Assume it holds for $n=k$

Now we will prove it for $k+1$.
Notice that $\phi (3^{k+1}) =2 \cdot 3^k$. So $\text{ord}_2(3^{k+1}) \mid 2 \cdot 3^k$.
If $f(a) \equiv f(b) \mod 3^k$ then $f(a) \equiv f(b) \mod 2 \cdot 3^k$, since $f(n)$ is odd for all $n$. Hence $2^{f(a)} \equiv 2^{f(b)} \mod 3^{k+1}$.

By the induction hypothesis, $f(1), f(2), \dots , f(3^k)$ is a complete residue system modulo $3^k$. Then $f(3^{k}+1) \equiv f(c) \mod 3^k \Longrightarrow 2^{f(3^k +1)} \equiv 2^{f(c)} \mod 3^{k+1}$, where $c \leq 3^k$.
As a result $f(3^k +2) -f(3^k +1) \equiv f(c+1) -f(c) \mod 3^{k+1}$. Hence $f(3^k +2 ) \equiv f(c+1) \mod 3^k$. So $f(3^k +3) -f(3^k+2) = f(c+2)-f(c+1)$. Continuing in this way, $f(3^k+s) - f(3^k+1) \equiv f(c+s-1) -f(c) \mod 3^{k+1}$.

Now, using the fact that $f$ is always odd, and the IH we have $$f(3^k+1) =1+ \sum_{i=1}^{3^k} 2^{f(i)} \equiv 2+2^3 +2^5 +\dots +2^{2 \cdot 3^k -1}  \equiv 2 \cdot \frac{2^{2 \cdot 3^k }-1}{3} +1 \mod 3^{k+1}$$But $v_3 (2^{2 \cdot 3^k }-1) =k+1 \Longrightarrow f(3^k + 1) \equiv 1 \mod 3^k$, but $f(3^k+1) \not \equiv 1 \mod 3^{k+1}$

Hence $f$ is periodic modulo $3^k$. But $f(3^k) \not \equiv f(1) \mod 3^{k+1}$. Clearly, this gives $f(1), f(2), \dots f(2 \cdot 3^k)$ are all distinct modulo $3^{k+1}$. Moreover, $f(2 \cdot 3^k +1)- f(3^k +1) \equiv f(3^k +1)-f(1) \equiv \lambda 3^k \Longrightarrow f(2 \cdot 3^k+1) \equiv 2 \lambda 3^k +1$ where $ \lambda \in \{1,2 \}$
But $2 \lambda \not \equiv \lambda \mod 3$. So $f(2 \cdot 3^k+1)$ is distinct from all previous values. Then using periodicity again, we are done.
This post has been edited 9 times. Last edited by mastermind.hk16, May 29, 2019, 3:29 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
shankarmath
544 posts
#14 • 2 Y
Y by Purple_Planet, Adventure10
Nice problem

Sorry this is a little bit rough I will try to make it more clear later.
This post has been edited 7 times. Last edited by shankarmath, Mar 26, 2019, 9:31 PM
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
#16 • 3 Y
Y by Purple_Planet, Adventure10, Mango247
We'll show that $f(1),f(2),\ldots,f(3^n)$ leave distinct remainders mod $3^n$ for all $n$. We proceed by induction on $n$. The base case is $n=1$, and we see that $f(1)=1$, $f(2)=3$, and $f(3)=11$, which are all distinct mod $3$.

Now suppose $f(1),\ldots,f(3^n)$ are all distinct mod $3^n$. We'll show that $f(1),\ldots,f(3^{n+1})$ are all distinct mod $3^{n+1}$. Note that since $f(x)$ is always odd, we have by CRT that
\[\{f(1),\ldots,f(3^n)\} \equiv \{1,3,5,\ldots,2\cdot 3^n-1\}\pmod{2\cdot 3^n}.\]Thus,
\[f(3^n+1)\equiv f(1)+2^1+2^3+\cdots+2^{2\cdot 3^n-1}\pmod{3^{n+1}}\]by Euler's theorem. We compute
\[D:=2^1+2^3+\cdots+2^{2\cdot 3^n-1}=2\frac{4^{3^n}-1}{3}.\]By LTE, we have $\nu_3(D)=n$, so $D\equiv \pm 3^n\pmod{3^{n+1}}$. But this means that $f(2),\ldots,f(3^n+1)$ are all distinct mod $3^n$ since $f(1)\equiv f(3^n+1)\pmod{3^n}$, so by the same argument, we get that $f(3^n+2)\equiv f(2)+D\pmod{3^{n+1}}$. Continuing in the same way, we get that $f(3^n+k)\equiv f(k)+D\pmod{3^{n+1}}$. Thus,
\[\{f(1),\ldots,f(3^{n+1})\}\equiv\{f(1),f(1)+3^n,f(1)+2\cdot 3^n\}\cup\cdots\cup\{f(3^n),f(3^n)+3^n,f(3^n)+2\cdot 3^n\}\pmod{3^{n+1}}.\]It's clear then that this covers all residue classes mod $3^{n+1}$, since every induced residue class mod $3^n$ is one of the $3^n$ three element sets, and within each one, we cover all residues mod $3^{n+1}$ in that induced residue class mod $3^n$, so the induction 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.
Pluto04
797 posts
#17 • 2 Y
Y by Purple_Planet, Adventure10
My solution is somewhat similar to that of ISHO95.
First,looking carefully at the functional equation reveals a telescopic cancellation.
\[f(n)-f(n-1)=2^{f(n-1)}\].......... and so on till:
\[f(2)-f(1)= 2^{f(1)}\].
Adding all these equations, we get :
\[f(n)=\sum_{i=1}^{n-1}2^{f(i)}+1.\]Clearly f(n) is odd for all n.
Suppose,f(m) and f(t) leave the same remainders when divided by $3^{2013}$ leave the same remainder.
Then,
\[f(m)-f(t)= \sum_{i=f(t)}^{f(m-1)}2^{f(i)}\]must be divisible by $3^{2013}$ and also since f(n) is always odd for any n :
\[\Rightarrow f(m)-f(t)= \sum_{i=f(t)}^{f(m-1)}2^{f(i)}\equiv 2(m-t)(mod 3^{2013})\]But this is not True since 3 does not divide 2 and m-t<2013 and this is a contradiction.So, we have proved the required result and we are done.
This post has been edited 3 times. Last edited by Pluto04, May 17, 2019, 7:07 PM
Reason: typo error
Z K Y
G
H
=
a