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
Weird Function
math_comb01   29
N 5 minutes ago by Adywastaken
Source: INMO 2024/4
A finite set $\mathcal{S}$ of positive integers is called cardinal if $\mathcal{S}$ contains the integer $|\mathcal{S}|$ where $|\mathcal{S}|$ denotes the number of distinct elements in $\mathcal{S}$. Let $f$ be a function from the set of positive integers to itself such that for any cardinal set $\mathcal{S}$, the set $f(\mathcal{S})$ is also cardinal. Here $f(\mathcal{S})$ denotes the set of all integers that can be expressed as $f(a)$ where $a \in \mathcal{S}$. Find all possible values of $f(2024)$
$\quad$
Proposed by Sutanay Bhattacharya
29 replies
+2 w
math_comb01
Jan 21, 2024
Adywastaken
5 minutes ago
Number of elements is equal to the average of all its elements
bigant146   3
N 15 minutes ago by Assassino9931
Source: VI Caucasus Mathematical Olympiad
Let us call a set of positive integers nice, if its number of elements is equal to the average of all its elements. Call a number $n$ amazing, if one can partition the set $\{1,2,\ldots,n\}$ into nice subsets.

a) Prove that any perfect square is amazing.

b) Prove that there exist infinitely many positive integers which are not amazing.
3 replies
bigant146
Mar 14, 2021
Assassino9931
15 minutes ago
Interesting inequality of sequence
GeorgeRP   3
N 17 minutes ago by dgrozev
Source: Bulgaria IMO TST 2025 P2
Let $d\geq 2$ be an integer and $a_0,a_1,\ldots$ is a sequence of real numbers for which $a_0=a_1=\cdots=a_d=1$ and:
$$a_{k+1}\geq a_k-\frac{a_{k-d}}{4d}, \forall_{k\geq d}$$Prove that all elements of the sequence are positive.
3 replies
GeorgeRP
May 14, 2025
dgrozev
17 minutes ago
D1042 : A strange inequality
Dattier   1
N 25 minutes ago by Dattier
Source: les dattes à Dattier
Let $a,b>0$.

$$\dfrac 1{12 a^2b^2} \geq \dfrac1{b-a}\ln\left(\dfrac{b(1+a)}{a(1+b)}\right)-\ln\left(\dfrac{1+a}a\right)\ln\left(\dfrac{1+b}b\right)\geq \dfrac 1 {12(a+1)^2(b+1)^2}$$
1 reply
Dattier
Jun 3, 2025
Dattier
25 minutes ago
No more topics!
Euclid NT
Taco12   12
N Apr 25, 2025 by Ilikeminecraft
Source: 2023 Fall TJ Proof TST, Problem 4
Find all pairs of positive integers $(a,b)$ such that \[ a^2b-1 \mid ab^3-1. \]
Calvin Wang
12 replies
Taco12
Oct 6, 2023
Ilikeminecraft
Apr 25, 2025
Euclid NT
G H J
G H BBookmark kLocked kLocked NReply
Source: 2023 Fall TJ Proof TST, Problem 4
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Taco12
1757 posts
#1 • 2 Y
Y by megarnie, ItsBesi
Find all pairs of positive integers $(a,b)$ such that \[ a^2b-1 \mid ab^3-1. \]
Calvin Wang
This post has been edited 1 time. Last edited by Taco12, Oct 6, 2023, 12:50 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
cj13609517288
1930 posts
#2
Y by
The original problem had way more conditions but apparently without the conditions was still solvable and rather interesting lol.

Doing sufficient Euclid yields
\[a^2b-1\mid a^5-1,\]\[a^2b-1\mid a^3-b,\]\[a^2b-1\mid a-b^2.\]
Caseworking on size for the second and third divisibilities yields $\boxed{(1,b)}$, $\boxed{(b^2,b)}$, and $\boxed{(a,a^3)}$, which all work.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
grupyorum
1435 posts
#3
Y by
I claim all answers are $(a,b)=(1,b), (b^2,b), (b,b^3)$, where $b$ is arbitrary.

First, see that for $a=1$, any $b$ works; so let $a>1$. Next, $a^2b-1\le ab^3-1$, so $b^2\ge a$. We have $a^2b-1\mid ab^3-a^2b=ab(b^2-a)$, so $a^2b-1\mid b^2-a$. If $b^2=a$, then any $b$ works, so let $b^2>a$. Now, using $a^2b-1\mid a^3b-a$, we find $a^2b-1 \mid b(a^3-b)$, that is $a^2b-1\mid a^3-b$.
Case 1. $b=a^3$. In this case, clearly any $b$ works.
Case 2. $b>a^3$. Then, $a^2b-1\mid b-a^3$, so $b\ge a^3-1+a^2b\ge 4b$ as $a\ge 2$, a contradiction.
Case 3. $b<a^3$. Then, $a^2b-1\mid a^3-b$, so $a^3\ge a^2b+b-1\ge a^2b$, so $a\ge b$. But then, using $a^2b-1\mid b^2-a$ we have $b^2\ge a+a^2b-1\ge a^2b\ge b^3$, forcingn $b=1$. For $b=1$, $a^2-1\mid a-1$, yielding $a=1$.
This post has been edited 1 time. Last edited by grupyorum, Oct 6, 2023, 1:50 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MathLuis
1560 posts
#4 • 2 Y
Y by vrondoS, MS_asdfgzxcvb
Note that $a^2b-1 \mid ab^3-1 \implies a^2b-1 \mid a^2b^3-a-(a^2b^3-b^2) \implies a^2b-1 \mid b^2-a \implies |b^2-a| \ge a^2b-1$
Also $a^2b-1 \mid ab^3-1 \implies a^2b-1 \mid a^4b^3-a^3 \implies a^2b-1 \mid a^3-b \implies |a^3-b| \ge a^2b-1$.
Now if $a=1$ then all $b$ work so $(1,n)$ is a solution, also note if $b=1$ then $a=1$ (which is $(1,1)$ which we already have), now if $a,b \ge 2$, then we have the following cases.
Case 1: $b \ge a^3$
Then here $b-a^3 \ge a^2b-1$ or $b=a^3$, if the first one holds then $b-8 \ge b-a^3 \ge a^2b-1 \ge 4b-1$ contradiction!, hence another solution pair from this case is $(n,n^3)$
Case 2: $b<a^3$
Case 2.1: $a \ge b^2$
Then $a=b^2$ or $a-b^2 \ge a^2b-1$ hence $a-4 \ge a-b^2 \ge ba^2-1 \ge 2a^2-1$ contradiction! hence $a=b^2$ so $(n^2,n)$ is another solution.
Case 2.2: $b^2>a$
$a^3 \ge a^2b+b-1>a^2b$ hence $a \ge b+1$ hence $b^2-b-1 \ge b^2-a \ge a^2b-1 \ge b^3-2b^2+b-1>b^3-2b^2-b-1$ so $3b^2>b^3$ hence $b=2$ but then $4-a \ge 4a^2-1$ for all $a \ge 3$ which cant happen, so contradiction!.
Hence all the pairs are $(1,n), (n^2, n), (n, n^3)$ thus we are done :D.
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
#5
Y by
Subtracting gives $a^2b-1\mid ab(b^2-a)$ so $a^2b-1\mid b^2-a$. Therefore, either $a=b^2$, which works, or $a^2b-1\leq b^2-a$. We also have $a^2b-1\mid ab^3-1-(a^4b^2-1)=ab^2(b-a^3)$, so either $b=a^3$, which works, or $a^2b-1\leq a^3-b$. This implies $b<a$, contradicting the first inequality.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
john0512
4191 posts
#7
Y by
The answer is $a=1$ and $a=b^2$ and $b=a^3.$ When $a=1$, the statement is $b-1\mid b^3-1$, which is true by difference of cubes factorization, and when $a=b^2$ the two sides are equal. When $b=a^3$, the statement is $a^5-1\mid a^{10}-1$ which is true by difference of squares.

From now on, assume $a\geq 2$ since we already know that $a=1$ always works.

Rewrite the condition as $$ab^3-1\equiv 0\pmod{a^2b-1}.$$Since $a^2b-1$ is relatively prime to $a$, we will multiply this by $a$ to get $$a^2b^3-a\equiv 0\pmod{a^2b-1}.$$We subtract $a^2b^3-b^2$ from the left side (since that is $b^2$ times the modulus), to get $$b^2\equiv a\pmod{a^2b-1}.$$Now, let $$b^2=a+k(a^2b-1)$$for some integer $k$. If $k=0$, then we have $a=b^2$ which we know works, so from now on assume $k\neq 0.$ Clearly, $k$ cannot be negative either, as $a^2b-1\geq a^2-1>a$ since we are assuming $a\geq 2.$ Thus, $k$ is a positive integer.

Now, rearrange this as a quadratic in $b$ to get $$b^2+(-a^2k)b+k-a=0.$$Since $b$ must be an integer, we have that the discriminant must be a perfect square. Thus, $$a^4k^2+4(a-k)$$must be a square.

Claim 1: $$(a^2k-1)^2<a^4k^2+4(a-k).$$Expanding this out gives $$-2a^2k+1<4a-4k$$$$4k+1<4a+2a^2k.$$This is clearly true, since we are assuming $a\geq 2$ so $$2a^2k+4a\geq 8k+8>4k+1.$$
Claim 2: $$(a^2k+1)^2>a^4k^2+4(a-k).$$Expanding this out gives $$2a^2k+1>4a-4k$$$$2a^2k+4k+1>4a.$$Again, this is clearly true since we are assuming $a\geq 2$ so $$2a^2k+4k+1>2a^2k\geq 2a^2\geq 4a.$$
Thus, the only way for it to be a perfect square is if $$a^4k^2+4(a-k)=(a^2k)^2$$$$a=k.$$
However, if we plug it back into $$b^2+(-a^2k)b+k-a=0,$$this just becomes $$b^2-a^3b=0,$$which has the solution $b=a^3,$ hence done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
shendrew7
806 posts
#8
Y by
Does $0 \mid 0$? Probably doesn't, so we exclude $(1,1)$ in the solution set.

Note the LHS must be less than or equal to the RHS, so $a \leq b^2$. Euclid also tells us
\[a^2b-1 \mid (ab^3-1)-(a^2b-1) = ab(b^2-a).\]
  • $\min(a,b)=1$: Our solutions are $\boxed{(1,k)}$.
  • Otherwise, $a^2b-1 \mid b^2-a$. If $b \leq a^2$, the RHS must be 0, we get the solution $\boxed{(k^2,k)}$.
  • Otherwise, $a^2b-1 \mid a(a^2b-1) - (b^2-a) = b(b-a^3)$, and as $|b-a^3| < |a^2b-1|$, we require $\boxed{(k,k^2)}$. $\blacksquare$
This post has been edited 1 time. Last edited by shendrew7, Mar 11, 2024, 7:59 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
vsamc
3789 posts
#9
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.
RedFireTruck
4255 posts
#10
Y by
Clearly, $a=1$ and $a=b^2$ are both solutions. When $a>b^2$, the LHS is greater than the RHS, so let $1<a<b^2$. Note that $\gcd(a^2b-1, ab^3-1)=\gcd(a^2b-1, b^2-a)$. Clearly, when $a\ge \sqrt{b}$, $b^2-a<a^2b-1$. Therefore, $1<a<\sqrt{b}$ so $1<a^2<b$.

Let $b=a^2+k_2$ for $k_2>0$. Then, $$\gcd(a^2b-1, b^2-a)=\gcd(a^4+k_2a^2-1, a^4+2k_2a^2+k_2^2-a)=\gcd(a^4+k_2a^2-1, k_2a^2+k_2^2-a+1).$$
Clearly, $k_2a^2+k_2^2-a+1>0$, so $k_2a^2+k_2^2-a+1\ge a^4+k_2a^2-1$ so $k_2^2+2\ge a^4+a$. When $k_2=a^2$, $a=2$ so $(2, 8)$ is a solution. Otherwise, $k_2>a^2$. Let $k_2=a^2+k_3$ for $k_3>0$. Then, $$\gcd(a^4+k_2a^2-1, k_2^2+2-a^4-a)=\gcd(2a^4+k_3a^2-1,2a^2k_3+k_3^2-a+2).$$
Clearly, $2a^2k_3+k_3^2-a+2>0$, so $2a^2k_3+k_3^2-a+2\ge 2a^4+k_3a^2-1$, so $a^2k_3+k_3^2+3\ge 2a^4+a$. When $k_3=a^2$, we get $a=3$, so $(3, 27)$ is a solution. Otherwise, $k_3>a^2$. Let $k_3=a^2+k_4$ for $k_4>0$. Then, $$\gcd(2a^4+k_3a^2-1,a^2k_3+k_3^2+3-2a^4-a)=\gcd(3a^4+k_4a^2-1, 3k_4a^2+k_4^2-a+3).$$
Clearly, $3k_4a^2+k_4^2-a+3>0$ so $3k_4a^2+k_4^2-a+3\ge 3a^4+k_4a^2-1$ so we get $2k_4a^2+k_4^2+4\ge 3a^4+a$. When $k_4=a^2$, we get $a=4$ so $(4, 64)$ is a solution. Otherwise, $k_4>a^2$.

It is easy to see that by induction, $k_n=a^2+k_{n+1}$ implies that $((n+1), (n+1)^3)$ is a solution and otherwise $k_{n+1}=a^2+k_{n+2}$. As $b$ must be finite, there are no solutions other than $b=a^3$ in this case.

Therefore, the solutions are $a=1$, $a=b^2$, and $b=a^3$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
math004
23 posts
#11 • 1 Y
Y by MS_asdfgzxcvb
Let $n=a^2b-1,$ for simplicity, and note that $(a,n)=(b,n)=1.$

\[1\equiv ab^3 \equiv a\times (a^{-2})^3 \equiv a^5 \pmod n  \]So $b$ is just the inverse of $a^2$ modulo $n$ which is $a^3.$
Hence, $b\equiv a^3 \pmod n $ and $b^2\equiv a \pmod n.$

\begin{align*}
     n &\mid b-a^3 \\
     n &\mid b^2-a \\ 
     n &\mid a^5-1   
\end{align*}Now, it is just a size argument and the answer is $(1,n),(n^2,n)$ and $(n,n^3).$
This post has been edited 2 times. Last edited by math004, Jan 26, 2025, 6:56 AM
Reason: .
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
pie854
246 posts
#12
Y by
Notice that $(1,x)$ works. Assume $a, b>1$. Then $a^2b-1 \leq ab^3-1$ i.e. $b^2\geq a$. The pair $(x^2.x)$ works so let's assume $b^2>a$. Note that $$a^2b-1 \mid a(ab^3-1)-b^2(a^2b-1)=b^2-a.$$This implies $b^2+1>a^2b+a$ which implies $b>a^2$. Now $$a^2b-1 \mid b(a^2b-1) - a^2(b^2-a)=a^3-b.$$If $a^3-b>0$ then, $a^3-b\geq a^2b-1$ i.e. $a^3+1 \geq b(a^2+1)>a^2(a^2+1)$, a contradiction. If $a^3-b<0$ then $b-a^3 \geq ab^2-1$ which is clearly absurd. Hence $a^3=b$ and we can check that $(x,x^3)$ works.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
OronSH
1748 posts
#13
Y by
First $a^2b-1\mid -a(ab^3-1)+b^2(a^2b-1)=a-b^2\implies a^2b-1\mid a^2(a-b^2)+b(a^2b-1)=a^3-b$. Now $a\ne 1\implies a^2b-1>b-a^3$ so either $b=a^3$ or $a^3-b\ge a^2b-1\implies a^3-a^2b-b+a\ge 0\implies (a^2+1)(a-b)\ge 0\implies a\ge b$. Now from $a^2b-1\mid a-b^2$ either $a=b^2$ or $a^2b-1\ge b^2-1>b^2-a\ge a^2b-1$ or $a^2b-1>a-1\ge a-b^2\ge a^2b-1$, contradiction. This gives our solutions $(1,t),(t,t^3),(t^2,t)$ which clearly work.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Ilikeminecraft
684 posts
#14
Y by
Note that the LHS is relatively prime to $a,$ so we multiply the RHS by $a$. This tells us that $a^2b - 1 \mid a^2b^3 - a \implies a^2b - 1 \mid b^2 - a.$ Multiplying by $a^2,$ it gives $a^2b - 1 \mid b - a^3.$ Now we casework on $b^2$ and $a.$

If $a = b^2,$ this clearly works.

If $a > b^2,$ we have that $a - b^2 < a^2b - 1,$ however, $a - b^2  > 0,$ which gives no solutions.

If $a < b^2,$ we do casework on $a^3 < b$ or $a^3 = b$. Continue by multiplying by $a^2$, and subtracting by the LHS. Clearly, the RHS must be non-negative. Thus, $1 - a^5 = 0 \implies a = 1.$

Thus, the solution set is $(1, k), (k, k^3), (k^2, k)$ where $k > 1.$
Z K Y
N Quick Reply
G
H
=
a