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
Inequalities
hn111009   0
a few seconds ago
Source: Maybe anywhere?
Let $a,b,c>0;r,s\in\mathbb{R}$ satisfied $a+b+c=1.$ Find minimum and maximum of $$P=a^rb^s+b^rc^s+c^ra^s.$$
0 replies
1 viewing
hn111009
a few seconds ago
0 replies
sequence infinitely similar to central sequence
InterLoop   1
N a few seconds ago by stmmniko
Source: EGMO 2025/2
An infinite increasing sequence $a_1 < a_2 < a_3 < \dots$ of positive integers is called central if for every positive integer $n$, the arithmetic mean of the first $a_n$ terms of the sequence is equal to $a_n$.

Show that there exists an infinite sequence $b_1$, $b_2$, $b_3$, $\dots$ of positive integers such that for every central sequence $a_1$, $a_2$, $a_3$, $\dots$, there are infinitely many positive integers $n$ with $a_n = b_n$.
1 reply
+1 w
InterLoop
44 minutes ago
stmmniko
a few seconds ago
Three concyclic quadrilaterals
Lukaluce   1
N 6 minutes ago by InterLoop
Source: EGMO 2025 P3
Let $ABC$ be an acute triangle. Points $B, D, E,$ and $C$ lie on a line in this order and satisfy $BD = DE = EC$. Let $M$ and $N$ be midpoints of $AD$ and $AE$, respectively. Suppose triangle $ADE$ is acute, and let $H$ be its orthocentre. Points $P$ and $Q$ lie on lines $BM$ and $CN$, respectively, such that $D, H, M,$ and $P$ are concyclic and pairwise different, and $E, H, N,$ and $Q$ are concyclic and pairwise different. Prove that $P, Q, N,$ and $M$ are concyclic. $\newline$
The orthocentre of a triangle is the point of intersection of its altitudes.
1 reply
+2 w
Lukaluce
18 minutes ago
InterLoop
6 minutes ago
inqualities
pennypc123456789   0
7 minutes ago
Given positive real numbers \( x \) and \( y \). Prove that:
\[
\frac{1}{x} + \frac{1}{y} + 2 \sqrt{\frac{2}{x^2 + y^2}} + 4 \geq 4 \left( \sqrt{\frac{2}{x^2 + 1}} + \sqrt{\frac{2}{y^2 + 1}} \right).
\]
0 replies
pennypc123456789
7 minutes ago
0 replies
Hard number theory
truongngochieu   0
7 minutes ago
Find all integers $a,b$ such that $a^2+a+1=7^b$
0 replies
truongngochieu
7 minutes ago
0 replies
GCD of sums of consecutive divisors
Lukaluce   1
N 9 minutes ago by Marius_Avion_De_Vanatoare
Source: EGMO 2025 P1
For a positive integer $N$, let $c_1 < c_2 < ... < c_m$ be all the positive integers smaller than $N$ that are coprime to $N$. Find all $N \ge 3$ such that
\[gcd(N, c_i + c_{i + 1}) \neq 1\]for all $1 \le i \le m - 1$.
1 reply
+4 w
Lukaluce
20 minutes ago
Marius_Avion_De_Vanatoare
9 minutes ago
Arithmetic means as terms of a sequence
Lukaluce   0
19 minutes ago
Source: EGMO 2025 P2
An infinite increasing sequence $a_1 < a_2 < a_3 < ...$ of positive integers is called central if for every positive integer $n$, the arithmetic mean of the first $a_n$ terms of the sequence is equal to $a_n$. Show that there exists an infinite sequence $b_1, b_2, b_3, ...$ of positive integers such that for every central sequence $a_1, a_2, a_3, ...$, there are infinitely many positive integers $n$ with $a_n = b_n$.
0 replies
Lukaluce
19 minutes ago
0 replies
pairwise coprime sum gcd
InterLoop   1
N 24 minutes ago by MaxSze
Source: EGMO 2025/1
For a positive integer $N$, let $c_1 < c_2 < \dots < c_m$ be all the positive integers smaller than $N$ that are coprime to $N$. Find all $N \ge 3$ such that
$$\gcd(N, c_i + c_{i+1}) \neq 1$$for all $1 \le i \le m - 1$.
1 reply
InterLoop
an hour ago
MaxSze
24 minutes ago
postaffteff
JetFire008   18
N 26 minutes ago by Captainscrubz
Source: Internet
Let $P$ be the Fermat point of a $\triangle ABC$. Prove that the Euler line of the triangles $PAB$, $PBC$, $PCA$ are concurrent and the point of concurrence is $G$, the centroid of $\triangle ABC$.
18 replies
1 viewing
JetFire008
Mar 15, 2025
Captainscrubz
26 minutes ago
Similarity
AHZOLFAGHARI   17
N 34 minutes ago by ariopro1387
Source: Iran Second Round 2015 - Problem 3 Day 1
Consider a triangle $ABC$ . The points $D,E$ are on sides $AB,AC$ such that $BDEC$ is a cyclic quadrilateral. Let $P$ be the intersection of $BE$ and $CD$. $H$ is a point on $AC$ such that $\angle PHA = 90^{\circ}$. Let $M,N$ be the midpoints of $AP,BC$. Prove that: $ ACD \sim MNH $.
17 replies
AHZOLFAGHARI
May 7, 2015
ariopro1387
34 minutes ago
one cyclic formed by two cyclic
CrazyInMath   0
an hour ago
Source: EGMO 2025/3
Let $ABC$ be an acute triangle. Points $B, D, E$, and $C$ lie on a line in this order and satisfy $BD = DE = EC$. Let $M$ and $N$ be the midpoints of $AD$ and $AE$, respectively. Suppose triangle $ADE$ is acute, and let $H$ be its orthocentre. Points $P$ and $Q$ lie on lines $BM$ and $CN$, respectively, such that $D, H, M,$ and $P$ are concyclic and pairwise different, and $E, H, N,$ and $Q$ are concyclic and pairwise different. Prove that $P, Q, N,$ and $M$ are concyclic.
0 replies
+12 w
CrazyInMath
an hour ago
0 replies
A problem with non-negative a,b,c
KhuongTrang   3
N an hour ago by KhuongTrang
Source: own
Problem. Let $a,b,c$ be non-negative real variables with $ab+bc+ca\neq 0.$ Prove that$$\color{blue}{\sqrt{\frac{8a^{2}+\left(b-c\right)^{2}}{\left(b+c\right)^{2}}}+\sqrt{\frac{8b^{2}+\left(c-a\right)^{2}}{\left(c+a\right)^{2}}}+\sqrt{\frac{8c^{2}+\left(a-b\right)^{2}}{\left(a+b\right)^{2}}}\ge \sqrt{\frac{18(a^{2}+b^{2}+c^{2})}{ab+bc+ca}}.}$$Equality holds iff $(a,b,c)\sim(t,t,t)$ or $(a,b,c)\sim(t,t,0)$ where $t>0.$
3 replies
KhuongTrang
Mar 4, 2025
KhuongTrang
an hour ago
Number Theory Chain!
JetFire008   52
N an hour ago by Anto0110
I will post a question and someone has to answer it. Then they have to post a question and someone else will answer it and so on. We can only post questions related to Number Theory and each problem should be more difficult than the previous. Let's start!

Question 1
52 replies
JetFire008
Apr 7, 2025
Anto0110
an hour ago
Convex quad
MithsApprentice   81
N an hour ago by LeYohan
Source: USAMO 1993
Let $\, ABCD \,$ be a convex quadrilateral such that diagonals $\, AC \,$ and $\, BD \,$ intersect at right angles, and let $\, E \,$ be their intersection. Prove that the reflections of $\, E \,$ across $\, AB, \, BC, \, CD, \, DA \,$ are concyclic.
81 replies
MithsApprentice
Oct 27, 2005
LeYohan
an hour 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.
john0512
4178 posts
#41
Y by
Let $g(n,m)$ denote the remainder when $f(n)$ is divided by $2\cdot 3^m$ (this definition will make sense later). Clearly, $g(n,0)=1.$ Due to Euler's Totient theorem, noting that $\phi(2\cdot 3^m)=2\cdot 3^{m-1},$ we have $$g(n+1,m)\equiv g(n,m)+2^{g(n,m-1)}\pmod {2\cdot 3^m}.$$Let's use this to make a recursion table for $g(n,m):$

\begin{tabular}{c|c|c|c|c|c|c|c|c|c}n horizontal, m vertical & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 \\ \hline
0 & 1& 1& 1& 1& 1& 1& 1& 1& 1\\
1 & 1 & 3 & 5& 1 & 3 & 5& 1 & 3 & 5\\
2 & 1 & 3 & 11 & 7 & 9 & 17 & 13 & 15 & 5\\
\\
\end{tabular}
Let's analyze this table. It seems that $g(n,m)$ repeats every $3^m$ with respect to $n$, and takes on different values for each of $1\leq n\leq 3^m.$ Let's show this claim by induction. Suppose that $g(1,m)$ through $g(3^m,m)$ are all distinct and $g(n,m)$ repeats every $3^m$, and consider $g(n,m+1)$. Using our earlier recurrence, we see that $$g(n+3^m,m+1)=g(n,m+1)+\sum_{n=1}^{3^m}2^{2n-1} \pmod{3^{m+1}},$$since when increasing by $3^m$, we are adding by 2 to the power of each of the odd numbers mod $2\cdot3^m.$

Let's carefully consider the sum $$\sum_{n=1}^{3^m}2^{2n-1}.$$This can be rewritten as $$\frac{2^{2\cdot3^m+1}-2}{3}.$$By exponent lifting, we have $$v_3(\frac{2^{2\cdot3^m+1}-2}{3})=v_3(2+1)+v_3(2\cdot3^m)-1=m.$$Therefore, going back to the formula $$g(n+3^m,m+1)=g(n,m+1)+\sum_{n=1}^{3^m}2^{2n-1}\pmod{3^{m+1}},$$the summation is a multiple of $3^m$ but not $3^{m+1}.$ Therefore, using the fact that the first $3^m$ values are distinct, the first $3^{m+1}$ values of the function are also distinct, since from each of the first $3^m$ terms, we can generate two new different ones by adding the summation twice (this is guranteed to be different value since the summation is a multiple of $3^m$ but not $3^{m+1}$), so we have shown the claim by induction.

Therefore, the first $3^{2013}$ values of $g(n,2013)$ are distinct, and thus we are done (since they are all odd so the factor of 2 does not matter).
This post has been edited 2 times. Last edited by john0512, Jan 20, 2023, 3:12 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
NoctNight
108 posts
#42
Y by
We induct to prove the statement: For integers $k\geq 0$ and $n\geq 1$, we have that
$$\{f(n),f(n+1),\ldots, f(3^k-1+n)\}=\{1,3,5,\ldots, 2\cdot 3^k-1\}$$modulo $2\cdot 3^k$. The base case $k=0$ is trivial since $f(n)$ is always odd. Now assume it is true for $k=m$. Since $\phi(2\cdot 3^{m+1})=\phi(3^{m+1})=2\cdot 3^m$, we have that
\begin{align*}
f(a+3^m)-f(a)&\equiv f(a+3^m - 1)+2^{f(a+3^m - 1)}-f(a-1)-2^{f(a-1)}\pmod{2\cdot 3^{m+1}}\\
&\equiv f(a+3^m-1)-f(a-1)\\
&\vdots\\
&\equiv f(3^m+1)-1\\
&\equiv 2^{f(3^m)}+2^{f(3^m-1)}+\ldots+2^{f(2)}+2^{f(1)}+1-1\\
&\equiv \sum_{i=1}^{3^m} 2^{2i-1}\\
&\equiv 2\cdot \frac{4^{3^m}-1}{4-1}\\
&\equiv 2\cdot \frac{4^{3^m}-1}{3}
\end{align*}By LTE,
$$\nu_3\left(\frac{4^{3^m}-1}{3}\right)=\nu_3(4-1)+\nu_3(3^m)-1=m$$so we have that $f(a+3^m)-f(a)\equiv 2\cdot 3^m, 4\cdot 3^m$ modulo $2\cdot 3^{m+1}$ because $f(a+3^m)-f(a)$ is even and has $\nu_3$ equal to $m$. Thus, $\left\{f(n+i), f(n+i+3^m), f(n+i+2\cdot 3^m\right\}=\{f(n+i),f(n+i)+2\cdot 3^{m+1}, f(n+i)+4\cdot 3^{m+1}\}$. Therefore:
$$\{f(n),\ldots, f(n+3^{m+1}\}=\{1,3,5,\ldots, 2\cdot 3^{m+1}-1\}$$modulo $2\cdot 3^{m+1}$ completing the inductive step and proof by setting $n=1$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
eibc
599 posts
#43
Y by
Replace $2013$ with $k$; then we will in fact show that $f(x), f(x + 1) \ldots, f(x + 3^{k} - 1)$ leave distinct remainders when divided by $3^k$ for any positive integer $x$ by induction on $k$. The base case of $k = 1$ is easy to verify. Now, assume that the statement holds for an arbitrary $k$. We will prove it holds for $k + 1$. Notice that
$$\begin{aligned} f(x + 3^{k}) - f(x) &= f(n + 3^{k} - 1) + 2^{f(x + 3^{k} - 1)} - f(x) \\ &= f(x + 3^{k} - 2) + 2^{f(x + 3^{k} - 2)} + 2^{f(x + 3^{k} - 1)} - f(x) \\ &\vdots \\ &= f(x) + 2^{f(x)} + 2^{f(x + 1)} + \cdots + 2^{f(x + 3^{k} - 1}) - f(x) \\ &= 2^{f(x)} + 2^{f(x + 1)} + \cdots + 2^{f(x + 3^{k} - 1)}. \end{aligned}$$By the inductive hypothesis, we know that $f(x), f(x + 1), \ldots, f(x + 3^k - 1)$ are distinct modulo $3^k$. Additionally, since all outputs of $f$ are odd, they must in fact be a permutation of $\{1, 3, 5, \ldots, 2 \cdot 3^k - 1\}$ modulo $2 \cdot 3^k$. Therefore, since $2^{2 \cdot 3^k} \equiv 1 \pmod {3^{k + 1}}$ by Euler, our above sum is equivalent to
$$\begin{aligned} 2^1 + 2^3 + \cdots + 2^{2 \cdot 3^k - 1} &\equiv \frac{2(4^{3^k} - 1)}{4 - 1} \pmod {3^{k + 1}}. \end{aligned}$$But from LTE, we have $\nu_3(4^{3^k} - 1) = \nu_2(4 - 1) + \nu_2(3^k) = k + 1$, so $\nu_3(f(x + 3^k) - f(x)) = k$. Thus, we have $f(x + 2 \cdot 3^k) - f(x + 3^k)) \equiv f(x + 3^k) - f(x) \equiv \alpha 3^k \pmod {3^{k + 1}}$ for some fixed $\alpha \in \{1, 2\}$. Using the inductive hypothesis again, this finishes the induction.
This post has been edited 2 times. Last edited by eibc, Aug 13, 2023, 2:01 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
huashiliao2020
1292 posts
#44
Y by
This was a relatively easier problem 45 min solve :coolspeak:

We'll prove that $f(n),f(n+1),...,f(n+3^k-1)$ leave different residues mod $3^k$ by induction; the base case k=1 is obvious since mod 3 it's f(n),f(n)-1,...
Note that all f(n) are odd since the first term is odd and then it's odd+2^.=odd; also note that by recursion $f(n)=f(n-1)+2^{n-1}=f(n-2)+2^{n-1}+2^{n-2}=...=2^{n-1}+2^{n-2}+...+1$. We'll prove it for k+1, assuming the induction for the numbers less than it are already proven; call the inductive hypothesis returning distinct residues and that the exponent is taken mod $3^k2$ by Euler's theorem (1). We have $$ f(x + 3^{k}) - f(x) \equiv 2^{f(x)} + 2^{f(x + 1)} + \dots + 2^{f(x + 3^{k} - 1)}\stackrel{(1)}{\equiv}2^1+2^3+...+2^{3^k2-1}\equiv\frac{2(4^{3^k} - 1)}{4 - 1}\stackrel{LTE:\nu_3(4^{3^k}-1)=k+1}{\equiv}3^kc\pmod {3^{k + 1}}$$for some constant c either 1 or 2; by the same reasoning $$f(x+3^k2)-f(x+3^k)\equiv2^{f(x+3^k)}+2^{f(x+3^k+1)}+\dots\equiv2^1+2^3+...+2^{3^k2-1}\equiv3^kc\pmod {3^{k+1}}$$for the same c; in particular, no matter the choice, it's obvious they're all distinct since $2c,c\not\equiv0\pmod 3$, and modulo $3^{k+1}$ adding $3^kc$ sufficiently separates the residues in each group (one spans from $[0,3^k-1]$, another from $[3^k,3^k2-1]$, and a third from $[3^k2,3^{k+1}-1]$). $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
peace09
5417 posts
#45
Y by
Click to reveal hidden text
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
joshualiu315
2513 posts
#46
Y by
We will prove by induction that for any $3^k$ consecutive values of $f$ are different modulo $3^k$. The base case $k=1$ is clearly true.

Assume the inductive statement holds to $n=m$. Since powers of $2$ cycle every $2 \cdot 3^k$ in mod $3^{k+1}$ and all of the terms are odd, we have

\begin{align*}
f(n+3^k)-f(n) &= \sum_{i=n}^{n+3^k-1} 2^{f(i)} \pmod{3^{k+1}} \\
&\equiv \sum_{i=1}^{3^k} 2^{2i-1} \pmod{3^{k+1}} \\
&\equiv 2 \cdot \frac{4^{3^k}-1}{3} \pmod{3^{k+1}}
\end{align*}
LTE gives us $v_3 (4^{3^k}-1) = v_3(4-1)+v_3(3^k)=k+1$, so

\[v_3 \left(2 \cdot \frac{4^{3^k}-1}{3} \right) = k\]
Thus, $f(n)$, $f(n+3^k)$, $f(n+2 \cdot 3^k)$ have different residues mod $3^{k+1}$, completing the inductive step. $\square$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Leo.Euler
577 posts
#47
Y by
woah nice, 15 minute solve.
Claim: $\nu_3(f(a+3^i)-f(a)) = i$.
Proof. Induct on $k$, with the base case $i=0$ trivial. Then write \[ f(a+3^i)-f(a) = \sum_{n=a}^{a+3^i-1} f(n+1)-f(n) = \sum_{n=a}^{a+3^i-1} 2^{f(n)}. \]By inductive hypothesis, all of the $f(n)$ for $a \le n \le a+3^i - 1$ leave distinct residues modulo $3^i$, and note in general that $f$ takes odd integer values. Thus modulo $3^{i+1}$, we can use FLT to find that \[ f(a+3^i)-f(a) \equiv \sum_{k=1}^{3^k} 2^{2k-1} = 2 \cdot \frac{4^i-1}{3}. \]Now taking $\nu_3$ we have by LTE that $\nu_3(f(a+3^i)-f(a)) = i$, as desired.
:yoda:

A consequence of the claim is that $f(a)$, $f(a+3^i)$, and $f(a+2 \cdot 3^i)$ have distinct residues modulo $3^{i+1}$.

Now given $f(a+\Delta)-f(a)$, write $\Delta$ in ternary so that \[ \Delta = \sum_{i} b_i \cdot 3^{a_i} \]for distinct $a_i$ and a sequence $b_i$ of numbers in $\{1, 2\}$. Thus we see by the claim's consequence that \[ \nu_3(f(a+\Delta)-f(a)) = \nu_3(\Delta) \]by basic $\nu_3$ properties, which finishes.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
shendrew7
793 posts
#48
Y by
We use induction to show that $f(1), f(2), \ldots$ has period $3^m$ in modulo $3^m$. (Note that during a given period, we cannot have a residue repeat.) The base case $m=1$ is easy to verify. We then show the hypothesis holds for $n=k+1$ given that it holds for $n=k$. The problem then rests on the following:

Claim: We have $v_3\left(f(n+2 \cdot 3^k)-f(n)\right) = v_3\left(f(n+3^k)-f(n)\right) = k$ for all positive integers $n$.

We use our recursion to evaluate
\[f(n+3^k)-f(n) = 2^{f(n)} + 2^{f(n+1)} + \ldots + 2^{f(n+3^k-1)}.\]
Using modulo $3^{k+1}$, Euler's Totient Theorem tells us to look at the exponents modulo $2 \cdot 3^k$. Clearly every exponent is odd, and our inductive hypothesis tells us each leaves a distinct residue modulo $3^k$, so this expression is equivalent to
\[2^1 + 2^3 + \ldots + 2^{2 \cdot 3^k-1} \equiv \frac{2 \left(4^{3^k}-1\right)}{3} \pmod{3^{k+1}}.\]
Now we see that $f(n+2 \cdot 3^k)-f(n)$ is equivalent twice this expression, so their $v_3$'s should be equal. We finish using LTE, as
\[v_3\left(\frac{2 \left(4^{3^k}-1\right)}{3}\right) = v_3(4-1) + v_3(3^k) - 1 = k. \quad {\color{blue} \Box}\]
Thus we know $f(1), \ldots, f(3^{n+1})$ leave distinct residues modulo $3^{n+1}$, completing our induction. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Shreyasharma
668 posts
#49
Y by
We claim that any $3^m$ values for $n$ gives $f(n)$ with $n \leq 3^m$ distinct remainders when divided by $3^m$.

Note that $f$ is always odd. Now we induct. Say that the desired holds true for $n = 3^{m-1}$ and that the sequence $f(n)$ is periodic modulo $3^{m-1}$, with period $3^{m-1}$. We now show similar statements hold for $3^m$. Clearly it suffices to show that $f(k)$, $f(k + 3^{m-1})$ and $f(k + 2 \cdot 3^{m-1})$ leave distinct remainders modulo $3^m$.

Now we can compute,
\begin{align*}
f(3^{m-1} + k) &= f(3^{m-1} + k - 1) + 2^{f(3^{m-1} + k - 1)}\\
&= f(3^{m-1} + k - 2) + 2^{f(3^{m-1} + k - 1)} + 2^{f(3^{m-1} + k - 2)}\\
&\vdots\\
&= f(k) + \sum_{i = 1}^{3^{m-1}} 2^{f(3^{m-1} + k - i)}
\end{align*}Then it suffices to show that,
\begin{align*}
\sum_{i = 1}^{3^{m-1}} 2^{f(3^{m-1} + k - i)} \not\equiv 0 \pmod{3^m}
\end{align*}Note that $\phi(3^m) = 2 \cdot 3^{m-1}$. Then noting that any $3^{m-1}$ consecutive terms of $f$ leave distinct remainders modulo $3^{m-1}$ from our induction combined with the fact that $f$ is always odd we must have,
\begin{align*}
\{f(3^{m-1} + k - 1), f(3^{m-1}+k - 2), \dots, f(k) \} \equiv (1, 3, 5, \dots, 2 \cdot 3^{m-1} - 1) \pmod{2 \cdot 3^{m-1}}
\end{align*}Thus we have,
\begin{align*}
\sum_{i = 1}^{3^{m-1}} 2^{f(3^{m-1} + k - i)} =\sum_{i=1}^{3^{m-1}} 2^{2i - 1} \pmod{3^m}
\end{align*}Now from sum of geometric series we have,
\begin{align*}
\sum_{i=1}^{3^{m-1}} 2^{2i - 1} = 2 \cdot \left(\frac{4^{3^{m-1}} - 1}{3} \right)
\end{align*}Now it suffices to show $\nu_3(4^{3^{m-1}} - 1) \leq m$, as then we will have that the product is nonzero modulo $3^m$. However LTE we find,
\begin{align*}
\nu_3(4^{3^{m-1}} - 1) = m
\end{align*}as desired.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dolphinday
1319 posts
#50
Y by
Our goal is to prove that $f(n)$, $f(n + 3^k)$, and $f(n + 2 \cdot 3^k)$ all have different residues$\pmod{3^{k+1}}$, which we will accomplish by induction.
Our $k = 1$ case is obviously true.
$\newline$
Now, we need to prove that $f(n + 3^k) - f(n) \not\equiv 0 \pmod{3^{k+1}}$.
Notice that
\[f(n + 3^k) - f(n) = \sum_{i=0}^{i = 3^k - 1} 2^{f(n) + i}\]Since $\phi(3^{k+1}) = 2 \cdot 3^k$, we will take the exponents of this expression mod $2 \cdot 3^k$, which results in
\[\sum_{i=0}^{3^k-1} 2^{2i+1}\]which is equivalent to
\[2 \cdot \frac{4^{3^k} - 1}{3}\]By LTE, $v_3$ of this expression is equal to $k$, which is less than $k + 1$, so $f(n + 3^k)$ and $f(n)$ are distinct, modulo $3^{k+1}$.
This post has been edited 1 time. Last edited by dolphinday, Feb 1, 2024, 1:47 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
blueprimes
325 posts
#51
Y by
Really nice problem.

We will prove a stronger claim, that the remainders when $f(1), f(2), \dots, f(3^m)$ leave distinct remainders when divided by $3^m$ for all positive integers $m$. The $m = 1$ case is easy to verify. Now assume the claim for $m$, we will prove for $m + 1$.

Lemma 1. The order of $2 \pmod{3^{m + 1}}$ is $2 \cdot 3^m$.

Proof. Let the order be $t$, clearly it is even. By Lifting the Exponent Lemma, we obtain
$$m + 1 = \nu_3 \left((2^2)^{t / 2} - 1^{t/2} \right) = \nu_3(2^2 - 1) + \nu_3(t / 2),$$then the result follows.

Claim 1. The remainder when $f(k + 3^m) - f(k)$ is divided by $3^{m + 1}$ for positive integers $1 \le k \le 2 \cdot 3^m$ is some constant $d$, and $d$ is either $3^m$ or $2 \cdot 3^m$.

Proof. Clearly $f(n)$ is odd for all $n \in \mathbb{N}$, then the residues of $f(1), f(2), \dots, f(3^m)$ in $\pmod{2 \cdot 3^m}$ are some permutation of $\{ 1, 3, 5, \dots, 2 \cdot 3^m - 1 \}$ by the Chinese Remainder Theorem. Then by Lemma 1, we have
$$f(3^m + 1) \equiv f(1) + 2^{f(1)} + 2^{f(2)} + \dots + 2^{f(3^m)} \equiv f(1) + 2^1 + 2^3 + \dots + 2^{2 \cdot 3^m - 1} \equiv f(1) + 2 \left(\frac{2^{2 \cdot 3^m} - 1}{3} \right) \pmod{3^{m + 1}}.$$
By Lifting the Exponent Lemma,
$$\nu_3 \left((2^2)^{3^m} - 1^{3^m} \right) = \nu_3(2^2 - 1) + \nu_3(3^m) = m + 1,$$then clearly the remainder when $f(3^m + 1) - f(1)$ is divided by $3^{m + 1}$ is $3^m$ or $2 \cdot 3^m$. Now repeatedly applying this process for the next set of remainders, we will constantly generate a unique remainder $\pmod{3^{m + 1}}$. Note that the process works as the remainders when $f(k), f(k + 1), \dots, f(k + 3^m - 1)$ are divided by $\pmod{3^m}$ will always be made all distinct.

The latter claim finishes as for any residue $r$ of $3^m$, we have $r, r + d, r + 2d$ leaving distinct residues in $3^{m + 1}$. Our induction is complete. Now let $m = 2013$, and we are done. $\blacksquare$
This post has been edited 1 time. Last edited by blueprimes, Apr 8, 2024, 3:16 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Markas
105 posts
#52
Y by
We will prove by induction that $f(1),f(2), \cdots , f(3^n)$ have distinct remainders $\pmod 3^n$. Base case: n=1. Obviously $1,3,11 \pmod 3$ have distinct residues modulo 3. Induction hypothesis: Assume it holds for n=k.

Now we will prove it for k+1. We can see that $\phi (3^{k+1}) = 2.3^k$. So ${ord}_2(3^{k+1}) \mid 2.3^k$. If $f(x) \equiv f(y) \pmod {3^k}$ then $f(x) \equiv f(y) \pmod {2.3^k}$, since f(n) is odd for all n $\Rightarrow$ $2^{f(x)} \equiv 2^{f(y)} \pmod {3^{k+1}}$.

By the induction hypothesis $f(1), f(2), \cdots , f(3^k)$ is a complete residue system mod $3^k$. Then $f(3^{k}+1) \equiv f(z) \pmod {3^k}$ $\Rightarrow$ $2^{f(3^k +1)} \equiv 2^{f(z)} \pmod {3^{k+1}}$. So now we have $f(3^k +2) - f(3^k +1) \equiv f(z+1) - f(z) \pmod {3^{k+1}}$ $\Rightarrow$ $f(3^k + 2) \equiv f(z+1) \pmod {3^k}$. So $f(3^k +3) - f(3^k+2) = f(z+2) - f(z+1)$. Continuing this $f(3^k+s) - f(3^k+1) \equiv f(z+s-1) - f(z) \pmod {3^{k+1}}$.

Now, using the fact that f is always odd, and the hypothesis we have, $f(3^k+1) = 1 + \sum_{i=1}^{3^k} 2^{f(i)} \equiv 2+2^3 +2^5 +\cdots +2^{2.3^k - 1} \equiv 2 \cdot \frac{2^{2.3^k} - 1}{3} +1 \pmod {3^{k+1}}$. But $v_3 (2^{2 \cdot 3^k} - 1) = k+1$ $\Rightarrow$ $f(3^k + 1) \equiv 1 \pmod {3^k}$, but $f(3^k+1) \not \equiv 1 \pmod {3^{k+1}}$ Hence $f$ is periodic modulo $3^k$. But $f(3^k) \not \equiv f(1) \pmod {3^{k+1}}$ Clearly, this shows that $f(1), f(2), \dots f(2 \cdot 3^k)$ are all distinct mod $3^{k+1}$. Also, $f(2 \cdot 3^k +1)- f(3^k +1) \equiv f(3^k +1)-f(1) \equiv m.3^k$ $\Rightarrow$ $f(2 \cdot 3^k+1) \equiv 2.m 3^k +1$ where $ m \in \{1,2 \}$.
But $2.m \not \equiv m \pmod 3$. So $f(2.3^k+1)$ is distinct from all previous values and using the periodicity, we are ready.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
numbertheory97
42 posts
#53
Y by
Fix some $k$, and consider the assertion that $f(n + 1), f(n + 2), \dots, f(n + 3^k)$ are distinct mod $3^k$ for all integers $n \geq 0$. We prove this by induction on $k$, with the base case $k = 1$ trivial (the sequence repeats $1, 0, 2, 1, 0, 2, \dots$ mod $3$). This clearly implies the $k = 2013$ case.

We prove the following lemma first, which allows us to lift from $3^k$ to $3^{k + 1}$.

Claim: Let $\ell$ be a positive integer. Then $\text{ord}_{3^\ell}(2) = 2 \cdot 3^{\ell - 1}$.

Proof. Let $r = \text{ord}_{3^\ell}(2)$. Clearly $r$ is even (otherwise $2^r \equiv 2 \pmod 3$), so by LTE we have \[\nu_3(2^r - 1) = \nu_3(4^{r/2} - 1) = \nu_3(r/2) + \nu_3(4 - 1) = \nu_3(r) + 1.\]Since $3^\ell \mid 2^r - 1$, it follows that $3^{\ell - 1} \mid r$. Thus $r$ is divisible by $2 \cdot 3^{\ell - 1}$, and by minimality we have $r = 2 \cdot 3^{\ell - 1}$ as claimed. $\square$

Continuing with the problem, suppose the result holds for some $k$, and let $n$ be a positive integer. We're given that $f(n + 1), f(n + 2), \dots, f(n + 3^k)$ are distinct mod $3^k$, and since $f(m)$ is odd for all positive integers $m$, $f(n + 1), f(n + 2), \dots, f(n + 3^k)$ form a permutation of $1, 3, 5, \dots, 2 \cdot 3^k - 1$ mod $2 \cdot 3^{k - 1}$. Thus we have \[f(n + 3^k + 1) = f(n + 3^k) + 2^{f(n + 3^k)} = \dots = f(n + 1) + \sum_{i = 1}^{3^k} 2^{f(n + i)}\]\[ \equiv f(n + 1) + \sum_{i = 1}^{3^k} 2^{2i - 1} = f(n + 1) + \frac23\left(4^{3^k} - 1\right).\]But since \[\nu_3\left(\frac23\left(4^{3^k} - 1\right)\right) = \nu_3\left(4^{3^k} - 1\right) - 1 = k\]by LTE again, we obtain $\nu_3(f(n + 3^k + 1) - f(n + 1)) = k$. By similar arguments, for each $i = 1, 2, \dots, 3^k - 1$, the values $f(n + i), f(n + 2i), f(n + 3i)$ are in some order congruent to \[f(n + i), f(n + i) + 3^k, f(n + i) + 2 \cdot 3^k\]mod $3^{k + 1}$, which combined with the inductive hypothesis completes the induction. $\square$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mathwiz_1207
93 posts
#54
Y by
We will instead prove that for any $k \geq 1$, the sequence is periodic modulo $3^k$, with period exactly $3^k$. If $k = 1$, this is obviously true. Now, assume it is true for $k$, and notice that every term in the sequence is equivalent to $1 \pmod 2$. Thus, the sequence is in fact also periodic modulo $2 \cdot 3^k$, with period exactly $3^k$. Denote these residues as
\[a_1, a_2, \dots, a_{3^k}, a_1 , \dots \pmod {2 \cdot 3^k}\]Now, by Euler's theorem, we actually have that
\[f(n) \equiv f(n - 1) + 2^{a_{n-1}} \pmod {3^{k + 1}}\]Therefore,
\[f(n + 3^k) - f(n) \equiv 2^{a_1} + 2^{a_2} + \cdots + 2^{a_{3^k}} \pmod {3^{k + 1}}\]Since the order of $2$ is $2$, modulo $3$, by LTE we have
\[v_3(2^{2m} - 1) = 1 + v_3(m) \geq 3^{k + 1} \implies 3^k \mid m\]Therefore, $2$ is in fact a primitive root modulo $3^{k + 1}$, and since the $a_i's$ are odd,
\[2^{a_1} + 2^{a_2} + \cdots + 2^{a_{3^k}}\]covers every residue that is $2 \pmod 3$, so we in fact have
\[f(n + 3^k) - f(n) \equiv 2 + 5 + \cdots + 3^{k + 1} - 1 \equiv \frac{3^{k+1} + 1}{2} \cdot 3^k \pmod {3^{k + 1}}\]Thus, the smallest $a$ such that $f(n + a \cdot 3^k) - f(n) \equiv 0 \pmod {3^{k + 1}}$ is $3$, and we are done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Maximilian113
536 posts
#55
Y by
We will show that for any $k \geq 1$ $f(n)$ has minimal period $3^k$ under modulo $3^k.$ We proceed with induction. The base case, $k=1,$ is trivial as $f(n)$ is odd so $2^{f(n)} \equiv -1 \pmod 3,$ and the sequence will always shift down by one.

Now, suppose that the proposition holds for some $k=r \geq 1.$ We show it for $k=r+1.$ By the inductive hypothesis, for nonnegative integers $\ell,$ $f(1+\ell 3^r), f(2+\ell 3^r), \cdots, f(3^r + \ell 3^r)$ is a complete residue system modulo $3^r.$ Apply this for $\ell=0, 1, 2$ so due to periodicity it suffices to show that $f(x), f(x+3^r), f(x+2 \cdot 3^r)$ are distinct modulo $3^{r+1}.$ But, since powers of $2$ repeat every $2 \cdot 3^r$ iterations mod $3^{r+1}$ by Euler's Theorem, it follows that by the inductive hypothesis, $$f(x+3^r) = 2^{f(x+3^r-1)}+2^{f(x+3^r-2)} + \cdots + 2^{f(x)} + f(x) \equiv f(x) + \left( 2^1+2^3+\cdots + 2^{2 \cdot 3^r-1} \right) \pmod {3^{r+1}}$$as $f(x)$ is always odd so by CRT $\{f(x+3^r-1), f(x+3^r-2), \cdots, f(x)\}$ is some permutation of the odd residues under mod $2\cdot 3^r.$ But $$v_3 \left( 2^1+2^3+\cdots+2^{2\cdot 3^r-1} \right) = v_3 \left( 2 \cdot \frac{4^{3^r}-1}{3} \right) = 3^r+1-1=3^r$$by LTE. Therefore $f(x),f(x+3^r), f(x+2 \cdot 3^r)$ are indeed distinct modulo $3^{r+1},$ so our induction is complete. Now the result follows. QED
This post has been edited 1 time. Last edited by Maximilian113, Apr 1, 2025, 7:59 PM
Reason: typo
Z K Y
N Quick Reply
G
H
=
a