Summer is a great time to explore cool problems to keep your skills sharp!  Schedule a class today!

G
Topic
First Poster
Last Poster
k a June Highlights and 2025 AoPS Online Class Information
jlacosta   0
Jun 2, 2025
Congratulations to all the mathletes who competed at National MATHCOUNTS! If you missed the exciting Countdown Round, you can watch the video at this link. Are you interested in training for MATHCOUNTS or AMC 10 contests? How would you like to train for these math competitions in half the time? We have accelerated sections which meet twice per week instead of once starting on July 8th (7:30pm ET). These sections fill quickly so enroll today!

[list][*]MATHCOUNTS/AMC 8 Basics
[*]MATHCOUNTS/AMC 8 Advanced
[*]AMC 10 Problem Series[/list]
For those interested in Olympiad level training in math, computer science, physics, and chemistry, be sure to enroll in our WOOT courses before August 19th to take advantage of early bird pricing!

Summer camps are starting this month at the Virtual Campus in math and language arts that are 2 - to 4 - weeks in duration. Spaces are still available - don’t miss your chance to have a transformative summer experience. 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 upcoming events:
[list][*]June 5th, Thursday, 7:30pm ET: Open Discussion with Ben Kornell and Andrew Sutherland, Art of Problem Solving's incoming CEO Ben Kornell and CPO Andrew Sutherland host an Ask Me Anything-style chat. Come ask your questions and get to know our incoming CEO & CPO!
[*]June 9th, Monday, 7:30pm ET, Game Jam: Operation Shuffle!, Come join us to play our second round of Operation Shuffle! If you enjoy number sense, logic, and a healthy dose of luck, this is the game for you. No specific math background is required; all are welcome.[/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, Jun 15 - Oct 12
Monday, Jun 30 - Oct 20
Wednesday, Jul 16 - Oct 29
Sunday, Aug 17 - Dec 14
Tuesday, Aug 26 - Dec 16
Friday, Sep 5 - Jan 16
Monday, Sep 8 - Jan 12
Tuesday, Sep 16 - Jan 20 (4:30 - 5:45 pm ET/1:30 - 2:45 pm PT)
Sunday, Sep 21 - Jan 25
Thursday, Sep 25 - Jan 29
Wednesday, Oct 22 - Feb 25
Tuesday, Nov 4 - Mar 10
Friday, Dec 12 - Apr 10

Prealgebra 2 Self-Paced

Prealgebra 2
Monday, Jun 2 - Sep 22
Sunday, Jun 29 - Oct 26
Friday, Jul 25 - Nov 21
Sunday, Aug 17 - Dec 14
Tuesday, Sep 9 - Jan 13
Thursday, Sep 25 - Jan 29
Sunday, Oct 19 - Feb 22
Monday, Oct 27 - Mar 2
Wednesday, Nov 12 - Mar 18

Introduction to Algebra A Self-Paced

Introduction to Algebra A
Sunday, Jun 15 - Oct 12
Thursday, Jun 26 - Oct 9
Tuesday, Jul 15 - Oct 28
Sunday, Aug 17 - Dec 14
Wednesday, Aug 27 - Dec 17
Friday, Sep 5 - Jan 16
Thursday, Sep 11 - Jan 15
Sunday, Sep 28 - Feb 1
Monday, Oct 6 - Feb 9
Tuesday, Oct 21 - Feb 24
Sunday, Nov 9 - Mar 15
Friday, Dec 5 - Apr 3

Introduction to Counting & Probability Self-Paced

Introduction to Counting & Probability
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
Wednesday, Jul 2 - Sep 17
Sunday, Jul 27 - Oct 19
Monday, Aug 11 - Nov 3
Wednesday, Sep 3 - Nov 19
Sunday, Sep 21 - Dec 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Friday, Oct 3 - Jan 16
Tuesday, Nov 4 - Feb 10
Sunday, Dec 7 - Mar 8

Introduction to Number Theory
Monday, Jun 9 - Aug 25
Sunday, Jun 15 - Sep 14
Tuesday, Jul 15 - Sep 30
Wednesday, Aug 13 - Oct 29
Friday, Sep 12 - Dec 12
Sunday, Oct 26 - Feb 1
Monday, Dec 1 - Mar 2

Introduction to Algebra B Self-Paced

Introduction to Algebra B
Wednesday, Jun 4 - Sep 17
Sunday, Jun 22 - Oct 19
Friday, Jul 18 - Nov 14
Thursday, Aug 7 - Nov 20
Monday, Aug 18 - Dec 15
Sunday, Sep 7 - Jan 11
Thursday, Sep 11 - Jan 15
Wednesday, Sep 24 - Jan 28
Sunday, Oct 26 - Mar 1
Tuesday, Nov 4 - Mar 10
Monday, Dec 1 - Mar 30

Introduction to Geometry
Monday, Jun 16 - Dec 8
Friday, Jun 20 - Jan 9
Sunday, Jun 29 - Jan 11
Monday, Jul 14 - Jan 19
Wednesday, Aug 13 - Feb 11
Tuesday, Aug 26 - Feb 24
Sunday, Sep 7 - Mar 8
Thursday, Sep 11 - Mar 12
Wednesday, Sep 24 - Mar 25
Sunday, Oct 26 - Apr 26
Monday, Nov 3 - May 4
Friday, Dec 5 - May 29

Paradoxes and Infinity
Mon, Tue, Wed, & Thurs, Jul 14 - Jul 16 (meets every day of the week!)

Intermediate: Grades 8-12

Intermediate Algebra
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
Friday, Aug 8 - Feb 20
Tuesday, Aug 26 - Feb 24
Sunday, Sep 28 - Mar 29
Wednesday, Oct 8 - Mar 8
Sunday, Nov 16 - May 17
Thursday, Dec 11 - Jun 4

Intermediate Counting & Probability
Sunday, Jun 22 - Nov 2
Sunday, Sep 28 - Feb 15
Tuesday, Nov 4 - Mar 24

Intermediate Number Theory
Sunday, Jun 1 - Aug 24
Wednesday, Jun 18 - Sep 3
Wednesday, Sep 24 - Dec 17

Precalculus
Sunday, Jun 1 - Nov 9
Monday, Jun 30 - Dec 8
Wednesday, Aug 6 - Jan 21
Tuesday, Sep 9 - Feb 24
Sunday, Sep 21 - Mar 8
Monday, Oct 20 - Apr 6
Sunday, Dec 14 - May 31

Advanced: Grades 9-12

Olympiad Geometry
Tuesday, Jun 10 - Aug 26

Calculus
Wednesday, Jun 25 - Dec 17
Sunday, Sep 7 - Mar 15
Wednesday, Sep 24 - Apr 1
Friday, Nov 14 - May 22

Group Theory
Thursday, Jun 12 - Sep 11

Contest Preparation: Grades 6-12

MATHCOUNTS/AMC 8 Basics
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!)
Sunday, Aug 17 - Nov 9
Wednesday, Sep 3 - Nov 19
Tuesday, Sep 16 - Dec 9
Sunday, Sep 21 - Dec 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Monday, Oct 6 - Jan 12
Thursday, Oct 16 - Jan 22
Tues, Thurs & Sun, Dec 9 - Jan 18 (meets three times a week!)

MATHCOUNTS/AMC 8 Advanced
Wednesday, Jun 11 - Aug 27
Sunday, Jun 22 - Sep 21
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)
Sunday, Aug 17 - Nov 9
Tuesday, Aug 26 - Nov 11
Thursday, Sep 4 - Nov 20
Friday, Sep 12 - Dec 12
Monday, Sep 15 - Dec 8
Sunday, Oct 5 - Jan 11
Tues, Thurs & Sun, Dec 2 - Jan 11 (meets three times a week!)
Mon, Wed & Fri, Dec 8 - Jan 16 (meets three times a week!)

AMC 10 Problem Series
Sunday, 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!)
Sunday, Aug 10 - Nov 2
Thursday, Aug 14 - Oct 30
Tuesday, Aug 19 - Nov 4
Mon & Wed, Sep 15 - Oct 22 (meets twice a week!)
Mon, Wed & Fri, Oct 6 - Nov 3 (meets three times a week!)
Tue, Thurs & Sun, Oct 7 - Nov 2 (meets three times a week!)

AMC 10 Final Fives
Monday, Jun 30 - Jul 21
Friday, Aug 15 - Sep 12
Sunday, Sep 7 - Sep 28
Tuesday, Sep 9 - Sep 30
Monday, Sep 22 - Oct 13
Sunday, Sep 28 - Oct 19 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Wednesday, Oct 8 - Oct 29
Thursday, Oct 9 - Oct 30

AMC 12 Problem Series
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
Wednesday, Aug 6 - Oct 22
Sunday, Aug 10 - Nov 2
Monday, Aug 18 - Nov 10
Mon & Wed, Sep 15 - Oct 22 (meets twice a week!)
Tues, Thurs & Sun, Oct 7 - Nov 2 (meets three times a week!)

AMC 12 Final Fives
Thursday, Sep 4 - Sep 25
Sunday, Sep 28 - Oct 19
Tuesday, Oct 7 - Oct 28

AIME Problem Series A
Thursday, Oct 23 - Jan 29

AIME Problem Series B
Sunday, Jun 22 - Sep 21
Tuesday, Sep 2 - Nov 18

F=ma Problem Series
Wednesday, Jun 11 - Aug 27
Tuesday, Sep 16 - Dec 9
Friday, Oct 17 - Jan 30

WOOT Programs
Visit the pages linked for full schedule details for each of these programs!


MathWOOT Level 1
MathWOOT Level 2
ChemWOOT
CodeWOOT
PhysicsWOOT

Programming

Introduction to Programming with Python
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
Thursday, Aug 14 - Oct 30
Sunday, Sep 7 - Nov 23
Tuesday, Dec 2 - Mar 3

Intermediate Programming with Python
Sunday, Jun 1 - Aug 24
Monday, Jun 30 - Sep 22
Friday, Oct 3 - Jan 16

USACO Bronze Problem Series
Sunday, Jun 22 - Sep 1
Wednesday, Sep 3 - Dec 3
Thursday, Oct 30 - Feb 5
Tuesday, Dec 2 - Mar 3

Physics

Introduction to Physics
Sunday, Jun 15 - Sep 14
Monday, Jun 23 - Sep 15
Tuesday, Sep 2 - Nov 18
Sunday, Oct 5 - Jan 11
Wednesday, Dec 10 - Mar 11

Physics 1: Mechanics
Monday, Jun 23 - Dec 15
Sunday, Sep 21 - Mar 22
Sunday, Oct 26 - Apr 26

Relativity
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
Jun 2, 2025
0 replies
Beware the degeneracies!
Rijul saini   6
N 28 minutes ago by sansgankrsngupta
Source: India IMOTC 2025 Day 1 Problem 1
Let $a,b,c$ be real numbers satisfying $$\max \{a(b^2+c^2),b(c^2+a^2),c(a^2+b^2) \} \leqslant 2abc+1$$Prove that $$a(b^2+c^2)+b(c^2+a^2)+c(a^2+b^2) \leqslant 6abc+2$$and determine all cases of equality.

Proposed by Shantanu Nene
6 replies
Rijul saini
Yesterday at 6:30 PM
sansgankrsngupta
28 minutes ago
IMO 2009, Problem 1
orl   141
N an hour ago by ND_
Source: IMO 2009, Problem 1
Let $ n$ be a positive integer and let $ a_1,a_2,a_3,\ldots,a_k$ $ ( k\ge 2)$ be distinct integers in the set $ { 1,2,\ldots,n}$ such that $ n$ divides $ a_i(a_{i + 1} - 1)$ for $ i = 1,2,\ldots,k - 1$. Prove that $ n$ does not divide $ a_k(a_1 - 1).$

Proposed by Ross Atkins, Australia
141 replies
orl
Jul 15, 2009
ND_
an hour ago
Minimization without derivative
Butterfly   2
N an hour ago by Butterfly

Find the minimum value of $f(x)=\frac{(3x+2)^4}{x(x+3)}$ on $(0,+\infty)$ without derivative.
2 replies
Butterfly
2 hours ago
Butterfly
an hour ago
2 Var ineq
SunnyEvan   3
N 2 hours ago by SunnyEvan
Let $ a,b > 0 ,$ such that :$ 3ab+1 \geq \frac{8(a^2+b^2)}{(a+b)(\frac{1}{a}+\frac{1}{b})} .$
Prove that :$$ a+b \geq a^2b^2\sqrt{2(a^2+b^2)} $$
3 replies
SunnyEvan
Tuesday at 12:44 PM
SunnyEvan
2 hours ago
No more topics!
2^n-1 has n divisors
megarnie   47
N Apr 26, 2025 by Ilikeminecraft
Source: 2021 USEMO Day 1 Problem 2
Find all integers $n\ge1$ such that $2^n-1$ has exactly $n$ positive integer divisors.

Proposed by Ankan Bhattacharya
47 replies
megarnie
Oct 30, 2021
Ilikeminecraft
Apr 26, 2025
2^n-1 has n divisors
G H J
Source: 2021 USEMO Day 1 Problem 2
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
megarnie
5609 posts
#1 • 9 Y
Y by HWenslawski, OlympusHero, centslordm, Justpassingby, Epsilon-, TheHawk, Ciel_vert, GoodMorning, OronSH
Find all integers $n\ge1$ such that $2^n-1$ has exactly $n$ positive integer divisors.

Proposed by Ankan Bhattacharya
This post has been edited 2 times. Last edited by megarnie, Nov 6, 2021, 7:37 PM
Reason: Added the proposer
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
nukelauncher
354 posts
#6 • 10 Y
Y by centslordm, megarnie, CT17, math31415926535, RedFlame2112, ILOVEMYFAMILY, StarLex1, rayfish, mijail, Asynchrone
Solution
This post has been edited 2 times. Last edited by nukelauncher, Oct 30, 2021, 11:40 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
DottedCaculator
7357 posts
#7 • 2 Y
Y by centslordm, megarnie
solution attached
Attachments:
2021 USEMO Problem 2.pdf (299kb)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
TheUltimate123
1740 posts
#8 • 3 Y
Y by centslordm, megarnie, ilikemath40
The answers are 1, 2, 4, 6, 8, 16, 32. It is easy to check by hand that these work via Fermat primes. Moreover, we may check that \(d(2^{12}-1)=24\) and \(d(2^{64}-1)=128\).

Now we claim for all other \(n\) that \[\nu_2(d(2^n-1))>\nu_2(n).\]
To this end, we induct on \(\nu_2(n)\), with base cases \(n=12\), \(n=64\), and \(n\ne1\) odd. The first two have been checked above. For \(n\ne1\) odd, \(d(2^n-1)\) is even since \(2^n-1\equiv3\pmod4\) is not a square.

For the inductive step \(n\to2n\), observe that \(2^{2n}-1=(2^n-1)(2^n+1)\), and since the two terms are coprime, we have \[d(2^{2n}-1)=d(2^n-1)\cdot d(2^n+1).\]But \(\nu_2(d(2^n-1))>\nu_2(n)\) by inductive hypothesis, and \(d(2^n+1)\) is even since \(2^n+1\) is not a square for \(n\ne3\) by Mih\u ailescu theorem. Hence \[\nu_2(d(2^{2n}-1))>\nu_2(n)+1=\nu_2(2n).\]
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
megarnie
5609 posts
#9
Y by
oh no I wrote a super long proof of why $\gcd(2^m-1,2^{2^i\cdot m}+1)=1$.
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
#10 • 4 Y
Y by centslordm, megarnie, MatBoy-123, RaceCar21
Nice problem! Here is a very different solution.

The answers are $n=1,2,4,6,8,16,32$. These can be easily checked to be all work. To show that there are no other solutions, we first recall the functions $\omega$ and $\Omega$ defined by
\begin{align*}
\omega(p_1^{e_1}p_2^{e_2}\dots p_k^{e_k}) &= k \\
\Omega(p_1^{e_1}p_2^{e_2}\dots p_k^{e_k}) &= e_1+e_2+\dots +e_k,
\end{align*}where $p_1,\dots,p_k$ are primes. The main idea of the solution is the following lemma.
Lemma: For any positive integer $n$, $\Omega(\tau(n)) \geq \omega(n)$.

Proof: Obvious after writing $n$ as the factorization form. $\blacksquare$
In light of this lemma, we bound $\omega(2^n-1)$. By Zsigmondy's theorem, for each divisor $d\ne 1,6$, there exists a prime $p_d$ such that $\mathrm{ord}_{p_d}(2) = d$. All the $p_d$'s are distinct, so
$$\tau(n) - 2 \leq \omega(2^n-1) \leq \Omega(\tau(2^n-1)) = \Omega(n).$$This inequality alone is enough to deduce that:
Claim: $n$ must be a prime power or the product of two primes.

Proof: Suppose that $n=p_1^{e_1}p_2^{e_2}\dots p_k^{e_k}$ where $k\geq 2$. Then,
\begin{align*}
\tau(n) &= (e_1+1)(e_2+1)\dots (e_k+1)  \\
&\geq e_1e_2\dots e_k + (e_1+e_2+\dots + e_k) + 1  \\
&\geq \Omega(n)+2.
\end{align*}The equality occurs iff $e_1e_2\dots e_k=1$ and $k=2$, implying the result. $\blacksquare$
The rest is just grinding. First, note that, except $n=1$, $n$ must be even because otherwise, $2^n-1$ must be a perfect square, which is impossible because $2^n-1\equiv 3\pmod 4$. Thus, we have two cases.
  • If $n=2^k$ for some $k$, then note the factorization
    $$2^{2^k}-1 = (2^{2^0}+1)(2^{2^1}+1)(2^{2^2}+1)\dots (2^{2^{k-1}}+1),$$which implies that it has at least $k$ divisors. Furthermore, $2^{2^5}+1$ is composite, forcing $k\leq 5$ or $n\in\{1,2,4,8,16,32\}$.
  • Otherwise, $n$ must be $2p$ for some prime $p$. If $p\ne 3$, then we can go back and stregthen the bound above to $\omega(2^n-1)\geq 3$, which implies that $\Omega(n)\geq 3$, contradiction.
Thus, all answers are indeed $1,2,4,6,8,16,32$.
This post has been edited 1 time. Last edited by MarkBcc168, Sep 4, 2023, 1:44 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
megarnie
5609 posts
#11 • 3 Y
Y by centslordm, bjump, peace09
I literally learned about Fermat Primes yesterday.

We claim the answer is $\boxed{n=1,2,4,6,8,16,32}$. Proof that these work

Let $d(m)$ denote the number of positive integer divisors of $m$.

Claim: If $n$ is odd, then $n=1$.
Note that $d(2^1-1)=1$, so $n=1$ works. If $n>1$, then \[2^n-1\equiv3\pmod 4\]Since $3$ is not a quadratic residue $\pmod4$, $2^n-1$ is not a perfect square, and thus doesn't have an odd number of divisors.

Henceforth assume that $n$ is even.

We can write $2^n-1$ as \[(2^m-1)(2^m+1)(2^{2m}+1)(2^{4m}+1)\cdots(2^\frac{n}{2}+1),\]where $m$ is an odd positive integer and $m=\frac{n}{2^k}$.

Claim: All terms in the above product are relatively prime.
Proof (on the test I took 4.5 pages to prove this claim :( ) (I also write big): I will first show that the first term is relatively prime to all other terms. We must show that \[\gcd(2^m-1,2^{m\cdot 2^i}+1)=1\]for all integers $0<i<k$. Note that $(2^m-1)(2^m+1)(2^{2m}+1)\cdots (2^{m\cdot 2^{i-1}}+1)=2^{m\cdot 2^i}-1$, so by the Euclidean Algorithm, \[\gcd(2^m-1,2^{m\cdot 2^i}+1)=\gcd(2^m-1, 2)=1\]
Now, to prove our original claim, it suffices to show that all other terms are pairwise relatively prime. We must show that \[\gcd(2^{m\cdot2^i}+1,2^{m\cdot 2^j}+1)=1\],

for all integers $0<i<j<k$.

Note that \[(2^{m\cdot2^i}+1)(2^{m\cdot2^i}-1)(2^{m\cdot 2^{i+1}}+1)(2^{m\cdot 2^{i+2}}+1)\cdots (2^{m\cdot2^{j-1}}+1)=2^{m\cdot 2^j}-1\], so by the Euclidean Algorithm, \[\gcd(2^{m\cdot2^i}+1,2^{m\cdot 2^j}+1)=\gcd(2^{m\cdot2^i}+1,2)=1,\]as desired.


Since $d(m)d(n)=d(mn)$ whenever $m$ and $n$ are relatively prime, we have \[d(2^n-1)=d(2^m-1)d(2^{m}+1)d(2^{2m}+1)\cdots d(2^{\frac{n}{4}}+1)d(2^{\frac{n}{2}}+1)=n\].


Since there are $m+1$ terms in the above product, and $\nu_2(n)=m$, one of the terms has an odd number of divisors, and must be a perfect square.


Case 1: $2^m-1$ is a perfect square.
So $m=1$. Thus, $n=2^k$.
Claim: The rest of the terms are not perfect squares.
Proof: Suppose $2^i+1=a^2$. Then $(a-1)(a+1)=2^i$, so $a-1$ and $a+1$ are both powers of $2$, which implies $a=3$ and so, $i=3$. $3$ is not a power of $2$, so we are done.

Now, if one of the terms has the number of divisors equal to a multiple of $4$, then $d(2^n-1)$ has at least one more power of $2$ than $n$.

We have $2^{32}+1=641\cdot6700417$, both of which are primes, so $d(2^{32}+1)=4$. Thus, $k<6$ and all integers $0<k<6$ work.


Case 2: $2^m-1$ is not a perfect square.
One of the other terms must be a perfect square, so $m=3$. Thus, $n=3\cdot 2^k$.

Now, if one of the terms has the number of divisors equal to a multiple of $4$, then $d(2^n-1)$ has at least one more power of $2$ than $n$.

Note that $d(2^{3\cdot 2^1}+1)=4$, so $k<2$. $k=1$ obviously works and $k=0$ doesn't.



Having exhausted all cases, we are done.
This post has been edited 4 times. Last edited by megarnie, Dec 30, 2021, 3:14 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mathleticguyyy
3217 posts
#12 • 2 Y
Y by centslordm, megarnie
probably closer to (albeit still difficult for) a JMO 2 than USAMO/IMO 2, but still a cool problem nonetheless.

The answers are $1,2,4,6,8,16,32$. It's fairly easy to check that they do work.

Let $\nu_2(n)=m$ and $n=k\cdot 2^m$ for some odd $k$. We can factor $2^{n}-1=(2^{2^{m-1}k}+1)(2^{2^{m-2}k}+1)\ldots (2^{k}+1)(2^{k}-1)$, where there are notably $m+1$ terms on the RHS.

By Catalan conjecture, $2^k+1$ is a perfect square only when $k=3$, and $2^{k}-1$ is a perfect square only when $k=1$. Also, it's easy by Euclidean Algorithm to see that any two terms on the RHS are relatively prime; this means that when $k\ge 5$, the # of factors of RHS is a product of $m+1$ even integers by multiplicativity, but $n$ is not divisible by $2^{m+1}$. We can therefore concentrate on $k=1$ and $k=3$, where the answer can be derived by simply recognizing that $2^{2^5}+1$ and $2^{3\cdot 2}+1$ are not primes.
This post has been edited 7 times. Last edited by mathleticguyyy, Oct 31, 2021, 3:51 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
pad
1671 posts
#13 • 3 Y
Y by megarnie, centslordm, math31415926535
Write $n=2^\ell a$, where $a$ is odd. Then
\[ 2^n-1 = (2^a-1)(2^a+1)(2^{2a}+1)\cdots (2^{2^{\ell-1}a}+1). \]We claim that all the above $\ell+1$ terms are pairwise coprime. All are odd. If $p\mid 2^a-1$ is a prime, then $p\mid 2^{2^ka}-1$ for all $k\ge 0$, so in particular $p\nmid 2^{2^ka}+1$ since $p>2$. Similarly, if $p\mid 2^{2^ka}+1$, then $p\mid 2^{2^{k+1}a}-1 \mid 2^{2^{k'}a}-1$ for all $k'>k$, so $p\nmid 2^{2^{k'}a}+1$ for all $k'>k$.

Now,
\[ 2^\ell a = n = \tau(2^n-1) = \tau(2^a-1)\tau(2^a+1)\tau(2^{2a}+1)\cdots \tau(2^{2^{\ell-1}a}+1).\]It is well-known (and easy to prove) that $2^x-1$ square if and only if $x=1$, and $2^x+1$ square if and only if $x=3$. So if $a\ge 5$, then all the terms above are even, so $\nu_2(RHS) \ge \ell+1 > \ell = \nu_2(LHS)$, contradiction. So $a=1$ or $a=3$.

If $a=3$, then
\[
\tau(2^a-1) = 2, \tau(2^a+1)=3, \tau(2^{2a}+1) = 4 = 2^2, 
\]and of course $\tau(2^{2^ka}+1) \ge 2$ for all $k\ge 0$, so the product is at least $3\cdot 2^{\ell+1}>2^\ell a$, contradiction, unless $\ell\le 1$, in which case $n=6$.

If $a=1$, it can be confirmed that $\tau(2^{k}+1)=2$ for all $k=1,2,3,4$, but $\tau(2^{32}+1) > 2$. A similar argument gives a size contradiction for $k \ge 6$. So $1,2,4,8,16,32$ are possibilities for $n$.

It can be checked manually that $1,2,4,8,16,32,6$ work, 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.
rama1728
800 posts
#14 • 3 Y
Y by megarnie, centslordm, cursed_tangent1434
megarnie wrote:
Find all integers $n\ge1$ such that $2^n-1$ has exactly $n$ positive integer divisors.

I'm loving this one. This is one of my favorite problems. The solution I am about to present will contain motivation too.

First of all by Fermat primes, we can check that \(n=1,2,4,6,8,16,32\) work.

Now we are starting the problem. We naturally start with plugging some random values of \(n\).
\begin{tabular}{ c c c }
            1 & 1 & 1 \\
            2 & 3 & 2 \\
            3 & 7 & 1 \\
            4 & 15 & 4 \\
            5 & 31 & 2 \\
            6 & 63 & 6 \\
            7 & 127 & 2 \\
            8 & 255 & 8 \\
            9 & 511 & 4 \\
            10 & 1023 & 8 \\
        \end{tabular}We have plugged the first ten values, where the first column tells the value of \(n\), second for \(2^n-1\) and third for \(d(2^n-1)\). Now, we check for patterns in this. Notice that many of the values in the last column (all except one, that is for \(6\) ) are giving powers of \(2\)! So this motivates us to consider the power of \(2\) dividing \(d(2^n-1)\), and as a consequence, we try to find some relation between \(\nu_2\left(d(2^n-1)\right)\) and \(\nu_2(n)\). If we check in this table, we see that the former is at least the latter! And this really relates to our problem because if we show that the former is at least the latter always, then we can try to show that after a point, the former is strictly greater than the latter, and this will imply that after that point, there is no value of \(n\).

Highly motivated by this, we try to show the inequality: \[\nu_2\left(d(2^n-1)\right)\geq\nu_2(n)\]This surely pings induction, because there is no possible way we could prove this (since it looks kind of abstract). We will induct over \(\nu_2(n)\). If \(\nu_2(n)=0\) (the base case), the proposed inequality is true, because every positive integer has at least one divisor. Now assume that this holds for \(\nu_2(n)=k\), that is \(n=2^k\cdot e\), where \(e\) can be any odd number. We have to show that the statement holds true for \(n=2^{k+1}\cdot e\). Notice that \[d\left(2^{2^{k+1}\cdot e}-1\right)=d\left(\left(2^{2^k\cdot e}-1\right)\left(2^{2^k\cdot e}+1\right)\right)=d\left(2^{2^k\cdot e}-1\right)\cdot d\left(2^{2^k\cdot e}+1\right)\]since both \(2^{2^k\cdot e}+1\) and \(2^{2^k\cdot e}-1\) are co-prime. Therefore, \[\nu_2\left(d\left(2^{2^{k+1}\cdot e}-1\right)\right)=\nu_2\left(d\left(2^{2^k\cdot e}-1\right)\right)+\nu_2\left(d\left(2^{2^k\cdot e}+1\right)\right)\geq k+1\]by our inductive assumption and the fact that \(2^{2^k\cdot e}+1\) is greater than \(1\). This completes the inductive step.

Now, we would like to show that after a point, the inequality becomes strict. We know that \(2^{2^5}-1\) has exactly \(32\) divisors. Now, let us assume that \(\nu_2(n)>5\). Then, since \(2^{2^5}+1\) is composite, we can say that \(\nu_2\left(d(2^{2^6\cdot e}-1)\right)>\nu_2(n)\) because the \(2^{2^5\cdot e}+1\) adds more than 1 factor (The solutions above worked because \(2^{2^k}+1\) is prime for \(1\leq k\leq 4\) and \(2^1-1\) has \(1\) prime factor). So if \(\nu_2(n)>=6\), their highest powers of \(2\) can never be equal, because we already got strict inequality for \(\nu_2(n)=6\) and if you increase \(\nu_2(n)\) by \(1\), the quantity \(\nu_2\left(d(2^n-1)\right)\) increases by at least \(1\) and so when \(\nu_2(n)\) is at least \(6\), the proposed statement fails. So \(\nu_2(n)\leq5\) and a simple case check reveals that the solutions presented above are the only ones that work.
This post has been edited 2 times. Last edited by rama1728, Oct 31, 2021, 6:05 AM
Reason: .
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Sprites
478 posts
#16 • 2 Y
Y by centslordm, megarnie
To factorise up,denote $n=2^km$ to get $$2^{2^km}-1=\left[2^m-1 \right] \cdot \prod_{j=0}^ {k-1} \left[2^{2^jm}-1 \right] $$
Claim #1:- The gcd of all the fore-mentioned terms is $1$

Proof:- The first term i.e $2^m-1$ clearly has a gcd of $1$ with $2^m+1$;moreover $$\gcd(2^m-1,2^{2^jm}+1)=\gcd(2^m-1,2)=1$$by Euclidean Algorithm.
For all other terms we have $$\gcd(2^{2^jm}+1,2^{2^im}+1)=1$$again by the Euclidean Algorithm.

Claim #2:- For all $n$ we must have \[\nu_2\left(\tau(2^n-1)\right)\geq\nu_2(n)\]
Proof:- Induction works;i.e induction over $\nu_2(n)$.Suppose that(since the base case works) $\nu_2(n)=k \;\;\; n=2^ek$ then \[\tau\left(2^{2^{k+1}\cdot e}-1\right)=\tau\left(\left(2^{2^k\cdot e}-1\right)\left(2^{2^k\cdot e}+1\right)\right)=\tau\left(2^{2^k\cdot e}-1\right)\cdot \tau\left(2^{2^k\cdot e}+1\right)\]since both \(2^{2^k\cdot e}+1\) and \(2^{2^k\cdot e}-1\) are co-prime. Therefore,\[\nu_2\left(\tau\left(2^{2^{k+1}\cdot e}-1\right)\right)=\nu_2\left(\tau \left(2^{2^k\cdot e}-1\right)\right)+\nu_2\left(\tau \left(2^{2^k\cdot e}+1\right)\right)\geq k+1\]where the last step follows from the inductive hypothesis and Mihalescu's theorem;(since $k>3$;$k=3$ can be verified seperately.)


Now by the multiplicative-ness of the $\tau$ function we get $$\tau \left(2^{2^km}-1 \right)=\tau \left[2^m-1 \right] \cdot \tau \left(\prod_{j=0}^ {k-1} \left[2^{2^jm}-1 \right]\right) $$If all of the terms on the RHS,were not perfect squares then their $\nu_2>\nu_2(n)$,which is a contradiction so again by Mihalescu's,$\boxed{m\in \{1,3 \}}$
$\;\;\;\;\;\;\;\;\; \bullet$ If $m=1$ then $n=2^{2^k}$ where we get the solutions $\boxed{n=1,2,4,8,16,32}$
$\;\;\;\;\;\;\;\;\; \bullet$ If $m=3$ then we get the solution $\boxed{n=6}$
Therefore,$\boxed{n=1,2,4,6,8,16,32}$.$\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ChrisWren
323 posts
#17 • 2 Y
Y by centslordm, megarnie
Sillied this problem.. I thought $2^{16}+1$ was composite. :blush:

edit: How many points would I get?
This post has been edited 1 time. Last edited by ChrisWren, Oct 31, 2021, 3:39 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
megarnie
5609 posts
#18
Y by
ChrisWren wrote:
Sillied this problem.. I thought $2^{16}+1$ was composite. :blush:

edit: How many points would I get?

Was your answer $\boxed{1,2,4,6,8,16}$?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ChrisWren
323 posts
#19 • 1 Y
Y by megarnie
Yes. Every aspect of my solution was the same as the ones here (except for the $2^k$ case, which I messed up on)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
megarnie
5609 posts
#20
Y by
ChrisWren wrote:
Yes. Every aspect of my solution was the same as the ones here (except for the $2^k$ case, which I messed up on)

Then maybe 6 points? IDK since I'm not a grader.
This post has been edited 1 time. Last edited by megarnie, Oct 31, 2021, 4:22 PM
Z K Y
G
H
=
a