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

G
Topic
First Poster
Last Poster
k a May Highlights and 2025 AoPS Online Class Information
jlacosta   0
May 1, 2025
May is an exciting month! National MATHCOUNTS is the second week of May in Washington D.C. and our Founder, Richard Rusczyk will be presenting a seminar, Preparing Strong Math Students for College and Careers, on May 11th.

Are you interested in working towards MATHCOUNTS and don’t know where to start? We have you covered! If you have taken Prealgebra, then you are ready for MATHCOUNTS/AMC 8 Basics. Already aiming for State or National MATHCOUNTS and harder AMC 8 problems? Then our MATHCOUNTS/AMC 8 Advanced course is for you.

Summer camps are starting next 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 an enriching 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][*]May 9th, 4:30pm PT/7:30pm ET, Casework 2: Overwhelming Evidence — A Text Adventure, a game where participants will work together to navigate the map, solve puzzles, and win! All are welcome.
[*]May 19th, 4:30pm PT/7:30pm ET, What's Next After Beast Academy?, designed for students finishing Beast Academy and ready for Prealgebra 1.
[*]May 20th, 4:00pm PT/7:00pm ET, Mathcamp 2025 Qualifying Quiz Part 1 Math Jam, Problems 1 to 4, join the Canada/USA Mathcamp staff for this exciting Math Jam, where they discuss solutions to Problems 1 to 4 of the 2025 Mathcamp Qualifying Quiz!
[*]May 21st, 4:00pm PT/7:00pm ET, Mathcamp 2025 Qualifying Quiz Part 2 Math Jam, Problems 5 and 6, Canada/USA Mathcamp staff will discuss solutions to Problems 5 and 6 of the 2025 Mathcamp Qualifying Quiz![/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
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
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
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
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
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
Tuesday, May 6 - Aug 19
Wednesday, Jun 4 - Sep 17
Sunday, Jun 22 - Oct 19
Friday, Jul 18 - Nov 14

Introduction to Geometry
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

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

Intermediate Counting & Probability
Wednesday, May 21 - Sep 17
Sunday, Jun 22 - Nov 2

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

Precalculus
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
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
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

AIME Problem Series A
Thursday, May 22 - Jul 31

AIME Problem Series B
Sunday, Jun 22 - Sep 21

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
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
May 1, 2025
0 replies
Geometry with altitudes and the nine point centre
Adywastaken   3
N a minute ago by Captainscrubz
Source: KoMaL B5333
The foot of the altitude from vertex $A$ of acute triangle $ABC$ is $T_A$. The ray drawn from $A$ through the circumcenter $O$ intersects $BC$ at $R_A$. Let the midpoint of $AR_A$ be $F_A$. Define $T_B$, $R_B$, $F_B$, $T_C$, $R_C$, $F_C$ similarly. Prove that $T_AF_A$, $T_BF_B$, $T_CF_C$ are concurrent.
3 replies
Adywastaken
Yesterday at 12:47 PM
Captainscrubz
a minute ago
(a^2+1)(b^2+1)((a+b)^2+1) being a square
navi_09220114   2
N 2 minutes ago by jonh_malkovich
Source: Malaysian SST 2024 P5
Do there exist infinitely many positive integers $a, b$ such that $$(a^2+1)(b^2+1)((a+b)^2+1)$$is a perfect square?

Proposed Ivan Chan Guan Yu
2 replies
navi_09220114
Sep 5, 2024
jonh_malkovich
2 minutes ago
Cycle in a graph with a minimal number of chords
GeorgeRP   3
N 6 minutes ago by starchan
Source: Bulgaria IMO TST 2025 P3
In King Arthur's court every knight is friends with at least $d>2$ other knights where friendship is mutual. Prove that King Arthur can place some of his knights around a round table in such a way that every knight is friends with the $2$ people adjacent to him and between them there are at least $\frac{d^2}{10}$ friendships of knights that are not adjacent to each other.
3 replies
GeorgeRP
Yesterday at 7:51 AM
starchan
6 minutes ago
2019 CNMO P2
minecraftfaq   5
N 8 minutes ago by pku
Source: 2019 China North MO, Problem 2
Two circles $O_1$ and $O_2$ intersect at $A,B$. Diameter $AC$ of $\odot O_1$ intersects $\odot O_2$ at $E$, Diameter $AD$ of $\odot O_2$ intersects $\odot O_1$ at $F$. $CF$ intersects $O_2$ at $H$, $DE$ intersects $O_1$ at $G,H$. $GH\cap O_1=P$. Prove that $PH=PK$.
5 replies
minecraftfaq
Feb 21, 2020
pku
8 minutes ago
No more topics!
Integer a_k such that b - a^n_k is divisible by k
orl   70
N May 3, 2025 by Aiden-1089
Source: IMO Shortlist 2007, N2, Ukrainian TST 2008 Problem 10
Let $b,n > 1$ be integers. Suppose that for each $k > 1$ there exists an integer $a_k$ such that $b - a^n_k$ is divisible by $k$. Prove that $b = A^n$ for some integer $A$.

Author: Dan Brown, Canada
70 replies
orl
Jul 13, 2008
Aiden-1089
May 3, 2025
Integer a_k such that b - a^n_k is divisible by k
G H J
Source: IMO Shortlist 2007, N2, Ukrainian TST 2008 Problem 10
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
orl
3647 posts
#1 • 7 Y
Y by narutomath96, raknum007, itslumi, HWenslawski, Adventure10, Mango247, NicoN9
Let $b,n > 1$ be integers. Suppose that for each $k > 1$ there exists an integer $a_k$ such that $b - a^n_k$ is divisible by $k$. Prove that $b = A^n$ for some integer $A$.

Author: Dan Brown, Canada
This post has been edited 3 times. Last edited by v_Enhance, Jan 18, 2016, 2:13 AM
Reason: Fix obsolete TeX
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ali666
352 posts
#2 • 66 Y
Y by narutomath96, anantmudgal09, PRO2000, Ankoganit, bgn, rafayaashary1, tarzanjunior, Problem_Penetrator, Swag00, jt314, Goodhao, Gems98, Akeyla, pavel kozlov, othman, Wizard_32, pablock, vsathiam, Pluto1708, Polynom_Efendi, Mario_Leopoldo, Illuzion, djmathman, Lifefunction, Severus, Keith50, Cindy.tw, mathleticguyyy, mijail, snakeaid, vsamc, lneis1, myh2910, rama1728, HWenslawski, Adventure10, PRMOisTheHardestExam, HappyMathEducation, green_leaf, lazizbek42, megarnie, WGM_RhuanSA, Mathlover_1, Perceval, Kimchiks926, soelinhtetptn20204, Quidditch, mistakesinsolutions, two_steps, starchan, Mango247, eduD_looC, vrondoS, kiyoras_2001, Sedro, White_Tiger_Wolf, ehuseyinyigit, aidan0626, farhad.fritl, NicoN9, H_Taken, ZZzzyy, and 4 other users
let $ k=b^2$:
$ b^2|b-a^n_k \Rightarrow a^n_k=b(bx+1)$ but $ gcd(b , bx+1)=1$ therefore $ b=A^n$ for some integer $ A$. :D
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
The QuattoMaster 6000
1184 posts
#3 • 4 Y
Y by narutomath96, vsathiam, Adventure10, Mango247
orl wrote:
Let $ b,n > 1$ be integers. Suppose that for each $ k > 1$ there exists an integer $ a_k$ such that $ b - a^n_k$ is divisible by $ k.$ Prove that $ b = A^n$ for some integer $ A.$

Author: unknown author, Canada
Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ZetaX
7579 posts
#4 • 5 Y
Y by pavel kozlov, AlastorMoody, Cindy.tw, Adventure10, Mango247
It may be interesting to know that if $ 8 \nmid n$, then it suffices to consider primes $ k$ only.
More generally (more or less the Grunwald-Wang-theorem):

Let $ n,b$ be a integers, $ n > 0$. If for all primes $ p$ there is an $ a_p$ such that $ p|b - a_p^n$, then the following holds:
a) If $ 8 \nmid n$, then $ b = a^n$ for some integer $ a$.
b) If $ 8|n$ then $ b = a^{\frac n2}$ for some integer $ a$.

This was posted and partially solved before.

For those knowing algebraic number theory, this can be generalised even more (those don't knowing algebraic number theory, please stop here :D ):

Let $ K$ be a number field, $ b \in K$, $ n = m \cdot 2^s > 0$ an integer ($ m$ odd).
If $ b$ is a $ n$-th power in all but finitely many completions $ K_v$ (where $ v$ runs through the primes of $ K$), then:
a) If $ K[\zeta_{2^s}]|K$ is cyclic, then $ b = a^n$ for some $ a \in K$.
b) Otherwise, $ b = a^{\frac n2}$ for some $ a \in K$.

Proving this is some work in (pre)global class field theory (the main step being to show that if $ L|K$ has all but finitely many primes totally split, then $ K = L$).
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mazur89
19 posts
#5 • 1 Y
Y by Adventure10
Note that a) indeed requires $ 8\nmid n$:
Let $ b = 16$, $ n = 8$. We have $ x^8 - 16 = (x^2 - 2)(x^2 + 2)(x^2 - 2x + 2)(x^2 + 2x + 2)$. Of course one of the numbers $ - 1, - 2,2$ is a quadratic residue $ \mod p$. It means that for every prime $ p$ one of the equations $ (x + 1)^2 + 1 = 0$, $ x^2 + 2 = 0$, $ x^2 - 2 = 0$ has a solution $ \mod p$ and so does $ x^8 - 16 = 0$. And $ 16\neq A^8$.

[Moderator edit: See also http://www.mathlinks.ro/viewtopic.php?t=4874 for this counterexample.]
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ZetaX
7579 posts
#6 • 1 Y
Y by Adventure10
I also didn't see it at first, but $ p$ is not necessarily prime. Using this, it gets really easy (using valuations).
But you will have a lot of fun to show that if we require that $ 8 \nmid n$, then we need only to look at primes $ p$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
SnowEverywhere
801 posts
#7 • 5 Y
Y by narutomath96, raknum007, Illuzion, RaMathuzen, Adventure10
Solution

Assume that there is no $A$ such that $b=A^n$. Then there must exist a prime number $p$ such that, if $p^a \| b$, then $n \not | a$. Assume now that $mn < a < (m+1)n$ for some $m \in \mathbb{N}$. Taking $k=p^{(m+1)n}$ yields that

\[b \equiv a_{k}^n \pmod{p^{(m+1)n}}\]
Which implies that $p^{a} |a_{k}^n$ and, since $a_{k}^n$ is a perfect $n$th power, that $p^{(m+1)n} | a_{k}^n$. Hence $b \equiv 0 \pmod{p^{(m+1)n}}$ and $n|a$ which is a contradiction. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Mathatator
75 posts
#8 • 1 Y
Y by Adventure10
Does anyone have a solition with looking at a prime divisor of $n$?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Anar24
475 posts
#9 • 2 Y
Y by Adventure10, Mango247
ali666 wrote:
let $ k=b^2$:
$ b^2|b-a^n_k \Rightarrow a^n_k=b(bx+1)$ but $ gcd(b , bx+1)=1$ therefore $ b=A^n$ for some integer $ A$. :D

Can you explain more detailed?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
vjdjmathaddict
502 posts
#10 • 3 Y
Y by lneis1, Adventure10, Mango247
A different Solution
write $b$ as $b=B^n \times j$ where $gcd(B,j)=1$ now if $j=1$ then we are done.
Suppose $j$ is not equal to $1$ then consider a prime which divides $j$ and consider $k=p^n$
now since $p|j$ then $p|a_k$ this implies $p^n|{a_k}^n$ implies $p^n|j$ but then it follows that $p^{n}|B$ by definition of B.
So this a contradiction and hence we are infact done.
This post has been edited 2 times. Last edited by vjdjmathaddict, Oct 14, 2017, 2:57 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
lebathanh
464 posts
#12 • 2 Y
Y by Adventure10, Mango247
hehe my solution if exist p: Vp(b)=r.n+s ( 0<s<n) then choose k=p^(r(n+1)) then Vp(ak) > r then Vp(ak) >= r+1 then Vp(b-ak^n) = rn+s < r(n+1)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
maxo
498 posts
#13 • 2 Y
Y by Adventure10, Mango247
in this problem b and n are not fixed right? they can vary, just like k?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Leartia
93 posts
#14 • 2 Y
Y by Wictro, Adventure10
Let $b=p^{an+c}l$ where p is prime and $(p,l)=1$ and $1\leq c\leq n-1$. Let $k=p^{an+n}$, $k|b-a_k^n,=>v_p(k)\leq v_p(b-a_k^n)<=>an+n\leq v_p(b-a_k^n)=min\left\{v_p(b),v_p(a_k^n)\right\}\leq an+c$ . Which is plainly a contradiction, thus $b=m^n$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Samusasuke
30 posts
#15 • 2 Y
Y by Adventure10, Mango247
vjdjmathaddict wrote:
A different Solution
write $b$ as $b=B^n \times j$ where $gcd(B,j)=1$ now if $j=1$ then we are done.
Suppose $j$ is not equal to $1$ then consider a prime which divides $j$ and consider $k=p^n$
now since $p|j$ then $p|a_k$ this implies $p^n|{a_k}^n$ implies $p^n|j$ but then it follows that $p^{n}|B$ by definition of B.
So this a contradiction and hence we are infact done.
Wrong: If you take B to be the max n-th power that divides b, then not necessarily GCD(B,j)=1, but if you take by construction that GCD(B,j) , B and j are clearly unique, but not necessarily all n-th power that divides b go to B. Take for instanceb=(2^n)*(3^(n+1)), then B=2^n and j=3^(n+1) are the only air (B,j), but 3^n divides j, and therefore no contradiction
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
e_plus_pi
756 posts
#16 • 3 Y
Y by Satops, Adventure10, Mango247
Nice problem. Hope, my solution is not the same as anyone else's :blush:

$\rightarrow$. Suppose there exists a prime $\text{p}$ such that $b = p^{\alpha n + e_0}x , 1 \le e_0 < n$.
Where, $\text{gcd} ( x,p)=1$ and $\text{v}_p(b)$ is not congruent to $0 \pmod{n}$.

Now, let $k= p^{n (\alpha +1)}$. Now, $\text{v}_p(b-a_k^n)$ must be greater than or equal to $\text{v}_p(k) = n(\alpha + 1)$.

$\blacksquare$ Case 1.: $\text{v}_p(a_k) \le \alpha$.
$\implies \text{v}_p(b)$$ \ge \text{v}_p(a_k^n)$$ \implies \text{v}_p(b-a_k^n) =\text{v}_p(a_k^n) \le \alpha $
contradiction.

$\blacksquare$ Case 2.: $\text{v}_p(a_k) \ge \alpha +1$.
$\implies \text{v}_p(a_k^n) \ge \text{v}_p(b) \implies \text{v}_p(b-a_k^n) = \text{v}_p(b) < n(\alpha + 1)$
contradiction.

Henceforth, we conclude that $e_0 \equiv$$ 0 \pmod {n} \implies b=m^n$.
Z K Y
G
H
=
a