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
Inspired by Ruji2018252
sqing   1
N a few seconds ago by lbh_qys
Source: Own
Let $ a,b,c $ be reals such that $ a^2+b^2+c^2-2a-4b-4c=7. $ Prove that
$$ -4\leq 2a+b+2c\leq 20$$$$5-4\sqrt 3\leq a+b+c\leq 5+4\sqrt 3$$$$ 11-4\sqrt {14}\leq a+2b+3c\leq 11+4\sqrt {14}$$
1 reply
1 viewing
sqing
4 hours ago
lbh_qys
a few seconds ago
F=(F^3+F^3)/9-2F^3
Yiyj1   1
N 2 minutes ago by sp0rtman00000
Source: 101 Algebra Problems for the AMSP
Define the Fibonacci sequence $F_n$ as $$F_1=F_2=1, F_{n+1}+F_n=F_{n-1}$$fir $n \in \mathbb{N}$. Prove that $$F_{2n}=\dfrac{F_{2n+2}^3+F_{2n-2}^3}{9}-2F_{2n}^3$$for all $n \ge 2$.
1 reply
1 viewing
Yiyj1
3 hours ago
sp0rtman00000
2 minutes ago
Funky and nice NT FE
yaybanana   0
5 minutes ago
Source: own
find all functions $f: \mathbb{Z}^* \rightarrow \mathbb{Z}^*$ ,s.t :

$f(n)+f(m) \mid n^2+nf(m)$

for all $m,n \in \mathbb{Z}^*$
0 replies
yaybanana
5 minutes ago
0 replies
4 lines concurrent
Zavyk09   3
N 13 minutes ago by ItzsleepyXD
Source: Homework
Let $ABC$ be triangle with circumcenter $(O)$ and orthocenter $H$. $BH, CH$ intersect $(O)$ again at $K, L$ respectively. Lines through $H$ parallel to $AB, AC$ intersects $AC, AB$ at $E, F$ respectively. Point $D$ such that $HKDL$ is a parallelogram. Prove that lines $KE, LF$ and $AD$ are concurrent at a point on $OH$.
3 replies
Zavyk09
Yesterday at 11:51 AM
ItzsleepyXD
13 minutes ago
No more topics!
IMO Shortlist 2011, Number Theory 1
orl   53
N Mar 30, 2025 by Zany9998
Source: IMO Shortlist 2011, Number Theory 1
For any integer $d > 0,$ let $f(d)$ be the smallest possible integer that has exactly $d$ positive divisors (so for example we have $f(1)=1, f(5)=16,$ and $f(6)=12$). Prove that for every integer $k \geq 0$ the number $f\left(2^k\right)$ divides $f\left(2^{k+1}\right).$

Proposed by Suhaimi Ramly, Malaysia
53 replies
orl
Jul 11, 2012
Zany9998
Mar 30, 2025
IMO Shortlist 2011, Number Theory 1
G H J
Source: IMO Shortlist 2011, Number Theory 1
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
awesomehuman
496 posts
#42 • 2 Y
Y by ImSh95, Mango247
Can someone check my solution, thanks
We will prove the following claim using induction:
$f(2^k)$ is the unique number $p_1^{2^{a_1}-1}\cdots p_n^{2^{a_n}-1}$ with $p_1,\ldots,p_n$ prime and $a_1,\ldots a_n$ positive integers satisfying the following properties:
1. $a_1+\cdots+a_n=k$
2. For all $1\leq i, j\leq n$, $p_i^{2^{a_i}}>p_j^{2^{a_j-1}}$
3. For all prime $q$ not equal to any $p_i$, for all $1\leq i\leq n$, $q>p_i^{2^{a_i-1}}$
4. It is divisible by $f(2^{k-1})$.

Proof:
First we will show that properties 1, 2, and 3 are true.
Property 1 must be true since $f(2^k)$ has $2^k$ divisors. Property 2 must be true because otherwise you could multiply $f(2^k)$ by $\frac{p_i^{2^{a_i}}}{p_j^{2^{a_j-1}}}$ and get a smaller number with $2^k$ divisors. Similarly, property 3 must be true because otherwise you could multiply $f(2^k)$ by $\frac{q}{p_i^{2^{a_i-1}}}$ and get a smaller number with $2^k$ divisors.

Now, we will show that there is a unique number satisfying properties 1, 2, 3, and that property 4 holds. We will prove this using induction.

As the base case, we have $k=1$ and $f(2)=2$ where we can check that each statement is true and that this is the unique number satisfying these properties.

Inductive step:
Assume that $f(2^{k-1})$ is the unique number satisfying properties 1, 2, 3 for $k-1$. Let $p_1^{2^{a_1}-1}\cdots p_n^{2^{a_n}-1}$ be a number satisfying properties 1, 2, 3 for $k$. Assume WLOG that $p_1^{2^{a_1-1}}>p_x^{2^{a_x-1}}$ for all $1\leq x\leq n$. Then, it can be shown that $p_1^{2^{a_1-1}-1}p_2^{2^{a_2}-1}\cdots p_n^{2^{a_n}-1}$ satisfies properties 1, 2, 3, for $k-1$ and therefore is equal to $f(2^{k-1})$.

So, we have $f(2^{k-1})|X$ for all $X$ satisfying properties 1, 2, 3 for $k$. Let $f(2^{k-1})=p_1^{2^{a_1}-1}\cdots p_n^{2^{a_n}-1}$. We claim that there is a unique $X$ satisfying the three properties for $k$. Assume towards a contradiction that $X$ and $Y$ both satisfy the properties. Then, assume WLOG $X<Y$. We have $\frac{X}{f(2^{k-1})}<\frac{Y}{f(2^{k-1})}$. The LHS is equal to either $p_i^{2^{a_i}}$ for some $1\leq i\leq n$ or $q$ for some prime $q$ not equal to any $p_i$. And, for some term $p^{2^a-1}$ of $Y$'s prime factorization with $p$ prime, then the RHS is equal to $p^{2^{a-1}}$. So, this contradicts the fact that $Y$ satisfies properties 2 and 3. So, there is a unique $X$ satisfying properties 1, 2, 3, and it is divisible by $f(2^{k-1})$. This completes the proof.
This post has been edited 4 times. Last edited by awesomehuman, May 1, 2022, 1:52 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
asdf334
7586 posts
#43 • 1 Y
Y by Sagnik123Biswas
consider the list 2^1, 2^2, 2^4, 2^8, ..., 3^1, 3^2, 3^4, 3^8, ..., 5^1, 5^2, 5^4, 5^8, ... in sorted order
then to get f(2^k) just pick the first k numbers (in sorted order) and multiply those
obviously this works + immediately implies the conclusion
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ETS1331
107 posts
#44 • 1 Y
Y by pokpokben
Actually, we claim that we can characterize the exact value of $f(2^k)$. Consider the set of integers \[ S = \bigcup_{p \text{ prime}} \{p, p^2, p^4, \ldots\} \]i.e., the set of integers that start with $2,3,4,5,7,9,\ldots$.
Claim: Any integer with $2^k$ divisors must be the product of exactly $k$ distinct integers in $s$.
Proof. Write the integer $n$ as $n = \prod_{i=1}^{l} p_{i}^{2^{a_i}-1}$ where $p_i$ are all prime, $a_i$ are all integers, and $\sum\limits_{i=1}^{l} a_i = k$. Then, write \[ n = \prod_{i=1}^{l} p_{i}^{2^{a_i}-1} = \prod_{i=1}^{l} \left(\prod_{j = 0}^{a_i-1} p_i^{2^j}\right) \]and each of the $p_i^{2^{j}}$ terms are distinct numbers in $S$, and there are a total of $\sum\limits_{i=1}^{l} a_i = k$ of these terms, which finishes. $\blacksquare$
Now, to finish note that $f(2^k)$ is simply the product of the $k$ smallest numbers in $S$ (and it is easy to see that this does actually work), and $f(2^{k+1})$ is the product of the $k+1$ smallest numbers in $S$, clearly a multiple of $f(2^k)$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
lrjr24
966 posts
#45
Y by
Let $$S = \bigcup_{p \text{ prime}} \{p, p^2, p^4, \ldots\}$$with the first integers being $2,3,4,5,7,9, \cdots$.
Claim: Any integer with $2^k$ divisors is the product of $k$ elements in $S$.
Proof: Let $n=p_1^{e_1} p_2^{e_2} \cdots p_i^{e_i}$. We have $e_j+1 | 2^k$, so $e_j+1=2^{f_j}$ with $\sum_{j=1}^{i}f_j=k$. Using this new definition, we get that $$n=p_1^{2^{f_1}-1}p_2^{2^{f_2}-1} \cdots p_i^{2^{f_i}-1} = (p_1^1 \cdot p_1^2 \cdots p_1^{2^{f_1-1}}) \cdots (p_i^1 \cdot p_i^2 \cdots p_i^{2^{f_i-1}}),$$of which there is obviously $k$ terms by the fact that $\sum_{j=1}^{i}f_j=k$. This proves the claim.

Thus obviously $f(2^k)$ is the product of the $k$ smallest elements in $S$, so $\frac{f(2^{k+1})}{f(2^k)}$ is the $k+1$th smallest integer in $S$, which is obviously an integer so we are done.
This post has been edited 1 time. Last edited by lrjr24, Jul 20, 2022, 10:46 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
awesomeming327.
1692 posts
#46 • 2 Y
Y by Mango247, Mango247
Note that if a number has $2^k$ divisors, then it's of the form $\prod_{i=1}^{\infty}{p_i^{2^{e_i}-1}}$ where $e_i$ is a nonnegative integer and $p_i$ is the $p$th prime. Additionally, $k=\sum_{i=1}^{\infty}{e_i}.$

Thus, each number with $2^k$ divisors is a product of some $k$ values of the form ${p_i}^{2^j}$ for some prime $p_i$ and nonnegative integer $2^j.$ The minimal such number, therefore, will be the product of the least values in this form. Only problem is that we cannot multiply ${p_i}^{2^j}$ before ${p_i}^{2^k}$ if $j>k$ but this never happens because we are multiplying the minimal values.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
brainfertilzer
1831 posts
#47
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.
Hayabusa1
478 posts
#48 • 2 Y
Y by Mango247, Mango247
sol
This post has been edited 1 time. Last edited by Hayabusa1, Jul 26, 2022, 12:58 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
bobthegod78
2982 posts
#49
Y by
Make a set with $p^{2^i}$, for primes $p$ and nonnegative $i$. It is easy to see that $f(2^k)$ is just the product of the first $k$ elements in this, so we have the desired.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
signifance
140 posts
#50
Y by
Actually, compared to the N3-5s I've done with bashy diophantines, this one seems rather trivial.

f(2^k) has the form \prod p_i^{2^{e_i}-1}=\prod_i (\prod_{j=0}^{e_i-1}p_i^{2^j}), with sum of all e_i=k; this is precisely the k smallest elements in the set S={p_i,p_i^2,p_i^4,...} over all i, which is obviously an integer when you take f(2^{k+1})/f(2^k).

(I'll start posting latex one this stuff stops saying i am a new user because i delicately spent like 2 hours learning how to latex)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Sagnik123Biswas
420 posts
#51
Y by
Denote $p_i$ as the $i$th largest prime number. Let $s_i = \{ p_i^{2^k-1} | k \in \mathbb{N} \}$. Consider the set $S = \cup_{i=1}^{\infty}s_i$.

Note that $f(2^k)$ will be the product of the $k$ smallest numbers in the set $S$. Moreover, $f(2^{k+1})$ will be the product of the $k+1$ smallest numbers in the set $S$. So clearly $f(2^k) | f(2^{k+1})$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MELSSATIMOV40
29 posts
#52
Y by
Sagnik123Biswas wrote:
Denote $p_i$ as the $i$th largest prime number. Let $s_i = \{ p_i^{2^k-1} | k \in \mathbb{N} \}$. Consider the set $S = \cup_{i=1}^{\infty}s_i$.

Note that $f(2^k)$ will be the product of the $k$ smallest numbers in the set $S$. Moreover, $f(2^{k+1})$ will be the product of the $k+1$ smallest numbers in the set $S$. So clearly $f(2^k) | f(2^{k+1})$.

What about exponent of primes
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
pokpokben
17 posts
#53
Y by
@Hayabusa1, why is $f(2^{k+1})=f(2^k)*p?$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ezpotd
1252 posts
#54
Y by
We describe an algorithm to get $f(2^k)$.

Algorithm: Consider the set $p^{2^i}$ over all primes $p$ and nonnegative integers $i$. We sort this set, and take the product of the first $k$ elements.

Claim: This procedure results in something with $2^k$ factors.
Proof: Consider adding a prime power $p^{2^i}$. If $i = 0$, we obviously multiply the number of divisors by $2$. Otherwise, the power of $p$ we have in the current product is $p^{2^i - 1}$, since we must have already added $p^{2^{i - 1}} \cdots p^{2^0}$, so the product after is $p^{2^{i + 1} - 1}$, so we multiplied the number of divisors by $2$.

Claim: This results in the smallest number with $2^k$ factors.
Proof: Assume there is something more optimal, we can write it as $\prod p_i^{2^{e_i} - 1} = \prod \prod_{0 \le j \le e_{i} - 1} p_i^{2^j}$, where there are necessarily $k$ elements in the final product since each one multiplies the number of divisors by $2$. Now each element of the product is part of the set described earlier, so we require each element to be the minimal one not taken yet, which just gives the same procedure as before.

Now clearly going from $f(2^k)$ to $f(2^{k + 1})$ is just multiplying $f(2^k)$ by another element of the set, so 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.
smileapple
1010 posts
#56
Y by
For any nonnegative integer $k$, note that there exist some positive integer $n$ and nonnegative integers $a_1,a_2,\dots,a_n$ and $b_1,b_2,\dots,b_n$ for which \[f(2^k)=\prod_{i=1}^np_i^{2^{a_i}-1}\]and \[f(2^{k+1})=\prod_{i=1}^np_i^{2^{b_i}-1}.\]For all $m$, note that $g_{m,k}=f(2^{k+1})p_m^{-2^{b_m-1}}$ and $g_{m,k+1}=f(2^k)p_m^{2^{a_m}}$ respectively have $2^k$ and $2^{k+1}$ factors. Then by minimality $g_{m,k}g_{m,k+1}\ge f(2^k)f(2^{k+1})$, implying that $a_m\ge b_m-1$ for all $m$. In fact, as $\sum_{i=1}^n(b_i-a_i)=1$, there must exist some $m$ such that $a_m=b_m-1$ and thus $g_{m,k}g_{m,k+1}=f(2^k)f(2^{k+1})$. Again by minimality we have $g_{m,k}=f(2^k)$ and $g_{m,k+1}=f(2^{k+1})$, which implies that $f(2^k)\mid f(2^{k+1})$ as desired. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Zany9998
11 posts
#57
Y by
Let's begin by considering the following problem first .We have a list of $n$ positive reals $(x_1,x_2,\dots,x_n)$ and a non-negative integer $k$. We have to multiply each $x_i$ with a number $2^{a_i}$ where $a_i \in \mathbb{N}_0$ and
$\sum_{i=1}^{i=n} a_i = k$ such that the resulting sum of the list is minimized.
Lemma:
In order to minimize the sum the simple greedy algorithm is followed $k$ times. Choose the smallest number in the list, let its index be $t$, then multipy the number at index $t$ with 2. The list at the end is the list with minimum sum.

Proof:
WLOG sort the list first, then
first of all notice that for each $k$ there exists a solution with list of coefficients $(2^{a_1},2^{a_2},\dots,2^{a_n})$ with $a_1 \geq a_2 \geq a_3 \geq \dots \geq a_n$. This is because if for some solution we have a $j$ s.t. $a_j < a_{j+1}$ then we can swap $a_j$ and $a_{j+1}$ and get a solution whose sum that's not greater than original sum, we can follow the given step until the list is sorted in descending order.

Now notice that the resulting list with this greedy algorithm will be a list where each number is multiplied with some $2^{\alpha_i}$ where $\sum_{i=1}^{i=n} \alpha_i = k$. Let's prove it is the minimum such sum. First of all notice that if $k<2$, then the following greedy algorithm results to the list with minimum sum. Now let's suppose for the sake of induction that the greedy algorithm always helps us find the list with minimum sum for all $k < m$ where $m \geq 2$ then the coefficient of $x_1$ in a solution will be $2^{a_1}$ where $a_1 \geq 1$ , $($because there exists a solution with $a_1 \geq a_2 \geq a_3 \geq \dots \geq a_n)$. This implies that if we have a list $(2x_1,x_2,\dots,x_n)$ and we need to find its minimum sum for $k=m-1$ then the resulting list's sum will be equal to the sum of our solution's list. But note that we can apply greedy algorithm here to form a list with minimum sum. But now note that in our first step we will convert our list to $(2x_1,x_2,\dots,x_n)$ and after that if we apply the greedy algo $k-1$ times we will get the same exact list with minimum sum. QED


Now for the original proof note that $f(2^k)$ can only have at most $k$ distinct prime factors, note that if it contains $t$ prime factors then these prime factors are exactly first $t$ primes (otherwise we can replace a bigger prime with a smaller prime and make the number smaller).
Hence for both $f(2^k)$ and $f(2^{k+1})$ we will have prime factors from first $k+1$ smallest primes $(p_0,p_1,\dots,p_k)$. Now note that $f(2^t)$ for $t \leq k+1$ is the minimum number of form $\prod_{i=0}^{i=k}p_i^{ (2^{a_i})-1}$ such that $\sum_{i=0}^{i=k} a_i = t$. This is equivalent to minimising $\prod_{i=0}^{i=k}p_i^{ 2^{a_i}}$ such that $\sum_{i=0}^{i=k} a_i = t$. Now minimising it is equivalent to minimising $\sum_{i=0}^{i=k}2^{a_i}log(p_i)$. Now note that considering the list $(log(p_1),log(p_2),\dots,log(p_n))$ in the lemma we get that greedy algorithm will minimize the following sum . Now note that $\sum_{i=0}^{i=k}2^{a_i}log(p_i)$ for $\sum_{i=0}^{i=k} a_i = t$ is minimized by the greedy algorithm and for $t+1$ our greedy algorithm will obviously have greater coefficients for each $p_i$, this implies that $f(2^t)|f(2^{t+1})$ for all $t$. QED
Z K Y
N Quick Reply
G
H
=
a