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
Centroid Distance Identity in Triangle
zeta1   3
N 5 minutes ago by alexheinis
Let M be any point inside triangle ABC, and let G be the centroid of triangle ABC. Prove that:

\[
|MA|^2 + |MB|^2 + |MC|^2 = |GA|^2 + |GB|^2 + |GC|^2 + 3|MG|^2
\]
3 replies
zeta1
2 hours ago
alexheinis
5 minutes ago
The old one is gone.
EeEeRUT   4
N 11 minutes ago by EeEeRUT
Source: EGMO 2025 P2
An infinite increasing sequence $a_1 < a_2 < a_3 < \cdots$ 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$.
4 replies
EeEeRUT
Today at 1:37 AM
EeEeRUT
11 minutes ago
Inequality with product equal to 1
Tsarik   31
N 13 minutes ago by ZeroHero
Source: Moldova TST Problem 6
Let $a,b,c$ be positive real numbers such that $abc=1$. Prove the following inequality:
$a^3+b^3+c^3+\frac{ab}{a^2+b^2}+\frac{bc}{b^2+c^2}+\frac{ca}{c^2+a^2} \geq \frac{9}{2}$.
31 replies
Tsarik
Apr 1, 2015
ZeroHero
13 minutes ago
Problem 1 of the HMO 2025
GreekIdiot   6
N 26 minutes ago by eric201291
Let $P(x)=x^4+5x^3+mx^2+5nx+4$ have $2$ distinct real roots, which sum up to $-5$. If $m,n \in \mathbb {Z_+}$, find the values of $m,n$ and their corresponding roots.
6 replies
GreekIdiot
Feb 22, 2025
eric201291
26 minutes ago
No more topics!
the epitome of olympiad nt
youlost_thegame_1434   30
N Apr 2, 2025 by Jupiterballs
Source: 2023 IMO Shortlist N3
For positive integers $n$ and $k \geq 2$, define $E_k(n)$ as the greatest exponent $r$ such that $k^r$ divides $n!$. Prove that there are infinitely many $n$ such that $E_{10}(n) > E_9(n)$ and infinitely many $m$ such that $E_{10}(m) < E_9(m)$.
30 replies
youlost_thegame_1434
Jul 17, 2024
Jupiterballs
Apr 2, 2025
the epitome of olympiad nt
G H J
Source: 2023 IMO Shortlist N3
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
youlost_thegame_1434
31 posts
#1 • 4 Y
Y by OronSH, pingupignu, lpieleanu, Sedro
For positive integers $n$ and $k \geq 2$, define $E_k(n)$ as the greatest exponent $r$ such that $k^r$ divides $n!$. Prove that there are infinitely many $n$ such that $E_{10}(n) > E_9(n)$ and infinitely many $m$ such that $E_{10}(m) < E_9(m)$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
youlost_thegame_1434
31 posts
#2 • 18 Y
Y by Upwgs_2008, pingupignu, egxa, ehuseyinyigit, avisioner, khina, levimpcbranco, LLL2019, cj13609517288, Sedro, KnowingAnt, Scilyse, aidan0626, Assassino9931, HoRI_DA_GRe8, OlympusHero, navier3072, Funcshun840
I heard that this problem is not only very, very good, it also is not immediately trivialized by a theorem by some guy named Legendre. Indeed, I think that it is fair to say that after this and N2, olympiad NT is truly back!!!
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Scilyse
387 posts
#3 • 1 Y
Y by GrantStar
In fact, $E_{10}(n) - E_9(n)$ is unbounded both above and below.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Marinchoo
407 posts
#4
Y by
If we denote the sum of the digits of $n$ in base $k$ by $s_k(n)$, Legendre's formula yields
\[E_{10}(n) = \nu_{5}(n!) = \frac{n-s_5(n)}{4}\quad \text{and}\quad E_9(n) = \left\lfloor\frac{1}{2}\nu_3(n!)\right\rfloor = \left\lfloor \frac{n-s_3(n)}{4}\right\rfloor.\]Now for any $t\in\mathbb{N}$, we may pick $n = 5^t$ to get $E_{10}(n) > E_9(n)$ and $n = 9^t$ to force $E_{10}(n) < E_9(n)$, the end.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MarkBcc168
1595 posts
#5 • 1 Y
Y by MS_asdfgzxcvb
Let $s_b(n)$ denote the sum of digits of $n$ in base $b$. Then, by Legendre's formula
\begin{align*}
E_9(n) &= \left\lfloor\frac{E_3(n)}2\right\rfloor
= \left\lfloor\frac{n-s_3(n)}{4}\right\rfloor \\
E_{10}(n) &= E_5(n) = \frac{n-s_5(n)}{4}.
\end{align*}
Thus, for positive terms, take $n=3^{2k}$, so $s_3(n)=1$, which means $E_9(n) = \tfrac{n-1}4$. However, $s_5(n)>1$, so $E_{10}(n) < \tfrac{n-1}4$. Hence, we have $E_{10}(n) < E_9(n)$.

For negative terms, take $n=5^k$, so $s_5(n)=1$, which means $E_{10}(n) = \tfrac{n-1}4$. However, $s_3(n) > 1$, so $E_9(n) < \tfrac{n-1}4$. Hence, we have $E_9(n) < E_{10}(n)$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
lpieleanu
2899 posts
#6
Y by
Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
blueberryfaygo_55
340 posts
#8 • 2 Y
Y by megarnie, DiaaSaid
Claim. Let $\nu_p(n)$ be the largest power of prime $p$ that divides a positive integer $n$. Then, $E_{10}(n) = \nu_5(n!)$ and $E_9(n) = \left \lfloor \dfrac{\nu_3(n!)}{2} \right \rfloor$.
Proof. It is easy to see that $\nu_2(n!) \geq \nu_5(n!)$ for all positive integers $n$, so $$E_{10}(n) = \mathrm{min}(\nu_2(n!), \nu_5(n!)) = \nu_5(n!).$$Now, $9 = 3^2$, so if $\nu_3(n!)$ is even, the $3$s could pair among themselves to multiply to $9$, giving $E_9(n) = \dfrac{\nu_3(n!)}{2}$. Otherwise, if $\nu_3(n!)$ is odd, there exists an unpaired $3$, giving $E_9(n) = \dfrac{\nu_3(n!) - 1}{2}$. $\blacksquare$

For the sake of contradiction, suppose there exists a positive integer $C$ such that either $$\left \lfloor \dfrac{\nu_3(n!)}{2} \right \rfloor \geq \nu_5(n!)$$for all $n \geq C$ or $$\nu_5(n!) \geq  \left \lfloor \dfrac{\nu_3(n!)}{2} \right \rfloor$$for all $n \geq C$. We work on each of these cases separately. For the former, consider some $m \geq C$ such that $m$ is a power of $5$. Then, by Legendre's formula, we have $$\dfrac{m-1}{4} \leq \left \lfloor \dfrac{m-s_3(m)}{4} \right \rfloor \leq \dfrac{m-s_3(m)}{4}$$where $s_3(m)$ denotes the sum of digits of $m$ in base $3$. It follows that $s_3(m) \leq 1$, which implies that either $m=0$ or $m$ is a power of $3$, and both possibilities are absurd.

For the latter, consider some $k \geq C$ such that $k$ is an even power of $3$. Then, by Legendre's formula, $$\left \lfloor \dfrac{k-1}{4} \right \rfloor \leq \dfrac{k-s_5(k)}{4}.$$However, $k = 3^{2a} \equiv (-1)^{2a} \equiv 1 \pmod 4$ for some nonnegative integer $a$, so $\left \lfloor \dfrac{k-1}{4} \right \rfloor = \dfrac{k-1}{4}$. It again follows that $s_5(k) \leq 1$, or $k$ is a power of $5$, contradiction. Thus, we are done. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mandemidio
10 posts
#9
Y by
This problem was proposed by Regis Prado Barbosa, from Brazil.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
eg4334
629 posts
#11
Y by
Uhhh...

By Legendres Formula, $v_p(n!) = \frac{n-s_p(n)}{p-1}$, where $s_p(n)$ is the sum of the digits of $n$ expressed in base $p$. Note that $E_{10}(n) = E_5(n) = v_5(n)$, and $E_9(n) = \left \lfloor \frac{E_3(n)}{2} \right \rfloor$.

For the first part, we wish to prove that $$\frac{n-s_5(n)}{4} > \left \lfloor \frac{n-s_3(n)}{4} \right \rfloor$$for infinetly many positive integers $n$. Taking $n=5^a$, $a \in \mathbb{N}$ suffices. Clearly, $s_5(n) = 1$ and $s_3(n) > 1$, so the conclusion immediately follows (after all, the statement is true without the floors and adding the floor only adds potential to subtract from the RHS).

For the second part, we wish to prove that $$\frac{n-s_5(n)}{4} < \left \lfloor \frac{n-s_3(n)}{4} \right \rfloor$$for infinetly many positive integers $n$. Taking $n=9^a$, $a \in \mathbb{N}$ suffices. Clearly, $s_3(n) = 1$. Additionally, because $n = 9^a$, $n-1 \equiv 0 \pmod{4}$ so the inequality rewrites to $$\frac{n-s_5(n)}{4} <  \frac{n-1}{4}$$$$s_5(n) > 1$$which is obviously true as powers of $9$ are never powers of $5$. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
math_sp
886 posts
#12 • 1 Y
Y by dolphinday
Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
squarc_rs3v2m
46 posts
#13
Y by
We were asked to prove that $E_{10}(n) - E_9(n)$ is unbounded in both directions. However, this is relatively straightforward - in addition to what has been done with the powers of $3$ and $5$ we need only prove that the sum of digits of powers of $3$, $5$ is unbounded (but this is a short contradiction argument with a maximal digit sum).
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ryanbear
1055 posts
#14 • 2 Y
Y by centslordm, vinyx
Claim: $n=5^k$ satisfies $E_{10}(n)>E_9(n)$, where $k$ is odd
Proof: note that $E_{10}(n)=\min(E_{5}(n), E_{2}(n))=E_{5}(n)$, since $2$s appear more frequently than $5$s
Get that $E_5(n)=5^{k-1}+5^{k-2}+...+1=\frac{5^k-1}{4}$ by legendre

Also note that $E_9(n)=\lfloor \frac{E_3(n)}{2} \rfloor$
Let $f(x)=x-\lfloor x \rfloor$.
Get that $E_3(n) = n/3+n/9+... - f(n/3) - f(n/9) ... < \frac{n}{2}-\frac{2}{3} < \frac{n-1}{2}$, since $5^k \equiv 5^{k \pmod 2} \equiv 5 \equiv 2 \pmod 3$, so $f(n/3)=\frac{2}{3}$
As a result, $E_9(n) < \frac{n-1}{4} = \frac{5^k-1}{4} = E_5(n) = E_{10}(n)$


Claim: $n=9^k$ satisfies $E_9(n) > E_{10}(n)$, where $k$ is odd
Proof:
Get that $E_3(n)=3^{2k-1}+3^{2k-2}+...+1=\frac{3^{2k}-1}{2}$
So $E_9(n)=\frac{3^{2k}-1}{4}$.

Get that $E_{10}(n)=E_{5}(n)=n/5+n/25+...-f(n/5)-f(n/25)... < \frac{n}{4}-\frac{4}{5} < \frac{n-1}{4} < \frac{3^{2k}-1}{4} = E_9(n)$, since $9^\text{odd} \equiv (-1)^\text{odd} \equiv -1 \equiv 4 \pmod 5$, so $f(n/5)=\frac{4}{5}$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dkedu
180 posts
#15 • 1 Y
Y by centslordm
We claim that $n = 3^{4k + 2}$ satisfies $E_9(n) > E_{10}(n)$ as
\[2E_9(n) = \left\lfloor\frac n3 \right\rfloor + \left\lfloor\frac n9 \right\rfloor + \cdots = \frac{n-1}{2} > \frac{n}{2} - \frac{8}{5} > 2E_{10}(n) = 2\left(\left\lfloor\frac n5 \right\rfloor + \cdots \right)  \]as $n \equiv 4 \pmod 5$.

$n=5^{2k+1}$ satsfies $E_{10}(n) > E_9(n)$ as
\[2E_{10}(n) = 2(\left\lfloor\frac n5 \right\rfloor + \cdots) = \frac{n-1}{2} > \frac{n}{2} - \frac{4}{3} > 2E_{9}(n) = \left(\left\lfloor\frac n3 \right\rfloor + \cdots \right) \]as $n \equiv 2 \pmod 3$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
megarnie
5576 posts
#16 • 1 Y
Y by centslordm
For any positive integers $n$ and $k \ge 2$, define $E_k(n)$ to be the largest integer $r \ge 0$ such $k^r$ divides $n!$. Prove that the sequence \[ E_{10}(1) - E_9(1), E_{10}(2) - E_9 (2), E_{10} (3) - E_9 (3), \ldots, \]has infinitely many positive elements and infinitely many negative elements.

Let $a_n = E_{10}(n) - E_9(n)$. Since $\nu_2(n!) \ge \nu_5(n!)$ for all positive integers $n$ and $9 = 3^2$, $E_{10}(n) = \nu_5(n!)$ and $E_9(n) = \left \lfloor \frac{\nu_3(n!)}{2} \right \rfloor $.

Claim: $\nu_p(n!) \le \frac{n-1}{p - 1}$, with equality iff $n$ is a power of $p$
Proof: This holds because \[\nu_p(n!) = \frac{n - s_p(n)}{p - 1} \le \frac{n-1}{p-1},\]with equality iff $s_p(n) = 1$, which happens when $n$ is a power of $p$ (where $s_p(n)$ denotes the sum of digits of $n$ in base $p$). $\square$

If $n$ is a power of $5$ greater than $1$, then we have that $2\nu_5(n!) =  \frac{2(n-1)}{4} = \frac{n-1}{2}$ and since $n$ isn't a power of $3$, $\nu_3(n!) < \frac{n-1}{2}$. Hence \[E_{10}(n) = \nu_5(n!) > \frac{\nu_3(n!)}{2} \ge E_9(n),\]so $a_n$ is positive whenever $n$ is a power of $5$ greater than $1$.

It suffices to prove that $a_n$ has infinitely many negative elements. We claim that $a_n$ is negative if $n$ is a power of $9$ greater than $1$. Note that since $n$ isn't a power of $5$, $\nu_5(n!) <  \frac{n-1}{4} $ and $\nu_3(n!) = \frac{n-1}{2}$. Since $n$ is a power of $9$, $n\equiv 1\pmod 4$, so $\nu_3(n!)$ is even. Thus, \[E_9(n) = \frac{n-1}{4} > \nu_5(n!) = E_{10}(n),\]so $a_n$ must be negative, as desired.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Patrik
86 posts
#17
Y by
Sketch
This post has been edited 1 time. Last edited by Patrik, Jul 20, 2024, 4:25 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
VicKmath7
1388 posts
#18
Y by
Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Aiden-1089
277 posts
#19
Y by
Recall a result due to Legendre: $\nu_p(n!) = \frac{n-s_p(n)}{p-1} = \sum_{i \geq 1} \left\lfloor \frac{n}{p^i} \right\rfloor$ for all primes $p$ and integers $n$, where $s_p(n)$ denotes the sum of the digits of $n$ in base $p$.
Note that $E_{10}(n) = \text{min} \{ \nu_2(n!), \nu_5(n!) \}$. But since $\nu_2(n!) = \sum_{i \geq 1} \left\lfloor \frac{n}{2^i} \right\rfloor \geq \sum_{i \geq 1} \left\lfloor \frac{n}{5^i} \right\rfloor = \nu_5(n!)$, we have $E_{10}(n) = \nu_5(n!)$.

First we show that $E_{10}(5^k)>E_9(5^k)$ for all integers $k$.
$E_{10}(5^k) = \frac{5^k-1}{4} > \frac{5^k-s_3(5^k)}{4} \geq \left\lfloor \frac{\nu_3(5^k!)}{2} \right\rfloor = E_9(5^k)$.
Next we show that $E_9(9^k)>E_{10}(9^k)$ for all integers $k$.
$E_9(9^k) = \left\lfloor \frac{\nu_3(9^k!)}{2} \right\rfloor = \frac{9^k-1}{4} > \frac{9^k-s_5(9^4)}{4} = E_{10}(9^k)$.

Hence proved. $\square$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
pie854
243 posts
#20
Y by
youlost_thegame_1434 wrote:
For positive integers $n$ and $k \geq 2$, define $E_k(n)$ as the greatest exponent $r$ such that $k^r$ divides $n!$. Prove that there are infinitely many $n$ such that $E_{10}(n) > E_9(n)$ and infinitely many $m$ such that $E_{10}(m) < E_9(m)$.

Let $x=\min(v_2(n!),v_5(n!))$ and $y=v_3(n!)/2$. Let $s_n$ be the sum-of-digits base $n$ function.

Suppose for some $n$, $v_5(n!)\geq v_2(n!)$ then $\frac 14 (n-s_5(n))\geq n-s_2(n)$ so $4s_2(n)\geq 3n+s_5(n)$. This isn't true for $n=2,3$ and for $n>4$ it's easy to prove $n>2s_2(n)$ by induction. Thus if $n\neq 1$ then $x=v_5(n!)=(n-s_5(n))/4$ and also $y= v_3(n!)/2=(n-s_3(n))/4$.

Pick $n=5^k$ for $k=1,2,\dots$. Then $s_5(5^k)=1$ and $s_3(5^k)>1$ so $x=(5^k-1)/4>(5^k-s_3(5^k))=y$. And if we pick $n=3^k$ then similarly $y>x$. This clearly implies the claim 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.
sami1618
887 posts
#21
Y by
It can be easily derived that $$E_{10}(n)=v_5(n!)=\frac{n-s_5(n)}{4} \;\;\;\text{and}\;\;\; E_9(n)=\lfloor \frac{1}{2}v_3(n!) \rfloor=\lfloor \frac{n-s_3(n)}{4}\rfloor$$From here it is clear that choosing $n=5^k$ and $m=9^k$ both work.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Sammy27
81 posts
#22 • 1 Y
Y by Eka01
Note that $E_{10}(n)=\nu_5(n!)$ and $E_{9}(n)=\left\lfloor\frac{\nu_3(n!)}{2}\right\rfloor$.
Claim: $E_{10}(m) > E_9(m)$ for $m=625^t$ where $t\in\mathbb{Z}_{>0}$.

Proof. By Legendre's theorem, we have
$$E_{10}(625^t)=\nu_5(625^t!)=\sum_{i=1}^{\infty} \left\lfloor\frac{625^t}{5^i}\right\rfloor=\sum_{i=0}^{4t-1} 5^i=\frac{625^t-1}{4}.$$Clearly there exists some integer $j$ such that $3^j < 625^t< 3^{j+1}$. Again, by Legendre's theorem, we have
$$E_9(625^t)=\left\lfloor\frac{\nu_3(625^t!)}{2}\right\rfloor\leq \frac{\nu_3(625^t!)}{2}=\frac{1}{2}\sum_{i=1}^{\infty} \left\lfloor\frac{625^t}{3^i}\right\rfloor<\frac{1}{2}\sum_{i=1}^{j} \frac{625^t}{3^i}=\cfrac{625^t(1-\frac{1}{3^j})}{4},$$and since $\frac{625^t}{3^j}>1$, we get that
$$E_{10}(625^t)=\frac{625^t-1}{4}>\cfrac{625^t(1-\frac{1}{3^j})}{4}>E_{9}(625^t)$$for all $t\in\mathbb{Z}_{>0}$ as claimed.
Claim: $E_{10}(m) < E_9(m)$ for $m=81^t$ where $t\in\mathbb{Z}_{>0}$.

Proof. By Legendre's theorem, we have
$$\nu_3(81^t!)=\sum_{i=1}^{\infty} \left\lfloor\frac{81^t}{3^i}\right\rfloor=\sum_{i=0}^{4t-1} 3^i=\frac{81^t-1}{2},$$from which it follows that $E_{9}(81^t)=\frac{81^t-1}{4}$, because $4\mid 81^t-1$.

Clearly there exists some integer $j$ such that $5^j < 81^t< 5^{j+1}$. Again, by Legendre's theorem, we have
$$E_{10}(81^t)=\nu_5(81^t!)=\sum_{i=1}^{\infty} \left\lfloor\frac{81^t}{5^i}\right\rfloor<\sum_{i=1}^{j} \frac{81^t}{5^i}=\cfrac{81^t(1-\frac{1}{5^j})}{4},$$and since $\frac{81^t}{5^j}>1$, we get that
$$E_{10}(81^t)<\cfrac{81^t(1-\frac{1}{5^j})}{4}<\frac{81^t-1}{4}=E_{9}(81^t)$$for all $t\in\mathbb{Z}_{>0}$ as claimed, and we are done. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
cj13609517288
1888 posts
#23
Y by
By Legendre's formula,
\[E_{10}(n)=\nu_5(n)=\frac{n-s_5(n)}{4}\]and
\[E_{9}(n)=\lfloor\nu_3(n)/2\rfloor=\left\lfloor\frac{n-s_3{n}}{4}\right\rfloor.\]Thus we can use the classes of examples $n=5^t$ and $n=9^t$, which clearly work. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
N3bula
261 posts
#25
Y by
I will in fact prove that $E_{10}(n)-E_9(n)$ is unbounded both above and below. First I will show that it is unbounded above. We have that $E_{10}(n)=\nu_5(n!)$ and we have that $E_9(n)=\lfloor \frac{\nu_3(n!)}{2}\rfloor$.
Now let $n=5^k$ for some $k$, from the application of the legendre formula we obtain $E_{10}(5^k)=\frac{5^k-1}{4}$ and we obtain that $E_9(5^k)=\frac{5^k-j}{4}$ where $j$ is equal to the sum
of the digits of $5^k$ in base 3, as $5^k$ is not a power of $3$ we get $j\geq 2$, now to prove the unbounded section, suppose $5^k$ has $n$ digits in base $3$, there exists a $5^i$ such that
$i>k$ and $5^i\equiv 5^k \pmod{3^n}$, thus the first $n$ digits of $5^i$ in base $3$ are the same as the first $n$ digits of $5^k$, however as $5^i>5^k$ there exists a digit $l$ after the $n$-th digit in base $3$
which is not zero, thus the digit sum of $5^i$ in base $3$, is strictly greater than the digit sum of $5^k$. Thus we get $E_{10}(n)-E_9(n)$ is unbounded above, proving unbounded below is similar except instead of
$5^k$, $3^{2k}$ is used.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Assassino9931
1243 posts
#26
Y by
Let us work on at least a little bit more interesting problems and prove unboundedness of $E_{10}(n) - E_9(n)$ in both directions. By Legendre's formula, the main expression we are interested in is
\[ \sum_{i=1}^{\infty} \left\lfloor \frac{n}{5^i} \right\rfloor - \left\lfloor \frac{1}{2}\sum_{i=1}^{\infty} \left\lfloor \frac{n}{3^i} \right\rfloor \right\rfloor \]since $9 = 3^2$ and $\sum_{i=1}^{\infty} \left\lfloor \frac{n}{5^i} \right\rfloor \leq \sum_{i=1}^{\infty} \left\lfloor \frac{n}{2^i} \right\rfloor$, by comparing terms individually.

Example for arbitrarily positive, from shortlist

Example for arbitrarily negative, from shortlist

Example for arbitrarily negative, by Muhammad Mahad Arif

Note on last example
This post has been edited 2 times. Last edited by Assassino9931, Jan 23, 2025, 8:52 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HamstPan38825
8857 posts
#27
Y by
Note:
\begin{align*}
E_9(5^n) &\leq \frac 12\left(\frac{5^n - 1}3 + \frac{5^n - 1}9\cdots\right) = \frac{5^n - 1}2\left(\frac{1-\frac 1{3^k}}2\right) < \frac{5^n - 1}4 = E_{10}(5^n) \\
E_5(3^{2n}) &\leq \left(\frac{3^{2n} - 1}5 + \frac{3^{2n} - 1}{25} + \cdots\right) = (3^{2n} - 1)\left(\frac{1-\frac 1{5^k}}4\right) < \frac{3^{2n} - 1}4 = E_9(3^{2n}).
\end{align*}(We technically didn't even need Legendre!)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
wizixez
168 posts
#28
Y by
Even tho it is a imo sl problem...it actually requires the information that an olympiad student first learns about NT :)

We claim that for $N=5^k$ inequality $E_9<E_{10}$
Proof:
$E_10=E_5=\sum_{k\in Z^+}\lfloor \frac{5^k}{5}\rfloor =1+5^1+5^2+...+5^{k-1}+0+0+...=\frac{5^k-1}{4}$
$E_9$ same idea $E_9=\sum_{k\in Z}\lfloor \frac{5^k}{9}\rfloor $ this sum goes to $k=\lfloor \frac{b log(5)}{log(9)}\rfloor $ which yields $E_9<E_{10}$

If you do the same for $Z=9^k$ you get the desired result :) $\boxed{\lambda }$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
EVKV
43 posts
#30
Y by
Legandre second form then construction
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Draq
11 posts
#31
Y by
Let $S_m(n)$ denote the sum of digits of $n$ when written on $m$ base
$E_{10}(n)=v_5(n!)$
$E_9(n)=\frac{v_3(n )!}{2}$
Since we know $v_p(n!) = \frac{n-s_p(n)}{p-1}$ by Legendre's formula and if we put $n$ with $5^k$ we get $S_5(5^k)$ which is equal to 1 and $S_3(5^k)>1$ when we imply it on $\frac{(5^k)-S_3(5^k)}{4}$ we get $ E_9(5^k)\frac{(5^k)-S_3(5^k)}{4}< \frac{(5^k)-1}{4}=E_10(5^k)$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Ilikeminecraft
343 posts
#32
Y by
what.
Note $\nu_p(n!) = \frac{n - s_p(n)}{p - 1}$ where $s_p(n)$ is the sum of digits of $n$ in base $p$ by legrende.
$m = 3^k$ tells us $E_9(m) = \left\lfloor\frac{\nu_3(m)}{2}\right\rfloor = \frac{3^k - 1}{4}$ while $E_10(m) = \frac{3^k-s_5(3^k)}{4}$ and we know $s_5(3^k) > 1.$
Same construction for $n = 5^k$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Maximilian113
541 posts
#33
Y by
How can this be an isl..

Let $s_p(n)$ be the sum of the digits of $n$ in base $p.$ By Legendre's, $$E_{10}(n)=E_5(n)=\frac{n-s_5(n)}{4}, E_9(n) = \left \lfloor \frac{n-s_3(n)}{4} \right \rfloor.$$
To have $E_{10}(n) > E_9(n),$ consider $n=5^k$ for all positive integers $k.$ We guarantee $s_5(n)=1$ and $s_3(n) \geq 2.$

To have $E_{10}(n) < E_9(n),$ consider $n=9^k$ for all positive integers $k.$ We guarantee $s_5(n) \geq 2,$ and $s_3(n) = 1.$ Then, the floor does not affect anything as $9^k \equiv 1 \pmod 4.$ QED
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ray66
31 posts
#34
Y by
Selecting $m=5^k$ gives $\frac{5^k-1}{4} >  \left\lfloor \frac{3^m-1}{4} \right\rfloor$ because $5^k>3^m$, giving an infinite number of solutions for $E_{10}(n) > E_9(n)$. Selecting $m=3^k$ gives $\left\lfloor \frac{3^k-1}{4} \right\rfloor \ge \frac{3^k-1}{4} - \frac{1}{2} > \frac{5^m-1}{4}$ where $3^k > 5^m+2$. Selecting $k$ even, or $m=9^{k'}$ solves.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Jupiterballs
37 posts
#35
Y by
StorageClick to reveal hidden text
Z K Y
N Quick Reply
G
H
=
a