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
Hard functional equation
Hopeooooo   33
N an hour ago by jasperE3
Source: IMO shortlist A8 2020
Let $R^+$ be the set of positive real numbers. Determine all functions $f:R^+$ $\rightarrow$ $R^+$ such that for all positive real numbers $x$ and $y:$
\[f(x+f(xy))+y=f(x)f(y)+1\]
Ukraine
33 replies
Hopeooooo
Jul 20, 2021
jasperE3
an hour ago
series and factorials?
jenishmalla   9
N an hour ago by mpcnotnpc
Source: 2025 Nepal ptst p4 of 4
Find all pairs of positive integers \( n \) and \( x \) such that
\[
1^n + 2^n + 3^n + \cdots + n^n = x!
\]
(Petko Lazarov, Bulgaria)
9 replies
jenishmalla
Mar 15, 2025
mpcnotnpc
an hour ago
Geo with unnecessary condition
egxa   8
N 2 hours ago by ErTeeEs06
Source: Turkey Olympic Revenge 2024 P4
Let the circumcircle of a triangle $ABC$ be $\Gamma$. The tangents to $\Gamma$ at $B,C$ meet at point $E$. For a point $F$ on line $BC$ which is not on the segment $BC$, let the midpoint of $EF$ be $G$. Lines $GB,GC$ meet $\Gamma$ again at points $I,H$ respectively. Let $M$ be the midpoint of $BC$. Prove that the points $F,I,H,M$ lie on a circle.

Proposed by Mehmet Can Baştemir
8 replies
egxa
Aug 6, 2024
ErTeeEs06
2 hours ago
USAMO 2000 Problem 3
MithsApprentice   9
N 4 hours ago by Anto0110
A game of solitaire is played with $R$ red cards, $W$ white cards, and $B$ blue cards. A player plays all the cards one at a time. With each play he accumulates a penalty. If he plays a blue card, then he is charged a penalty which is the number of white cards still in his hand. If he plays a white card, then he is charged a penalty which is twice the number of red cards still in his hand. If he plays a red card, then he is charged a penalty which is three times the number of blue cards still in his hand. Find, as a function of $R, W,$ and $B,$ the minimal total penalty a player can amass and all the ways in which this minimum can be achieved.
9 replies
MithsApprentice
Oct 1, 2005
Anto0110
4 hours ago
No more topics!
How many cases did you check?
avisioner   16
N Mar 29, 2025 by eezad3
Source: 2023 ISL N2
Determine all ordered pairs $(a,p)$ of positive integers, with $p$ prime, such that $p^a+a^4$ is a perfect square.

Proposed by Tahjib Hossain Khan, Bangladesh
16 replies
avisioner
Jul 17, 2024
eezad3
Mar 29, 2025
How many cases did you check?
G H J
G H BBookmark kLocked kLocked NReply
Source: 2023 ISL N2
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
avisioner
294 posts
#1 • 5 Y
Y by OronSH, peace09, MarkBcc168, BorivojeGuzic123, Efesc128e968
Determine all ordered pairs $(a,p)$ of positive integers, with $p$ prime, such that $p^a+a^4$ is a perfect square.

Proposed by Tahjib Hossain Khan, Bangladesh
This post has been edited 1 time. Last edited by avisioner, Jul 20, 2024, 4:57 PM
Reason: Proposer name added
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
bin_sherlo
672 posts
#2 • 4 Y
Y by ehuseyinyigit, Tellocan, poirasss, Efesc128e968
\[p^a+a^4=k^2\iff p^a=(k-a^2)(k+a^2)\]$i)p\geq 5,$
$k-a^2=p^x$ and $k+a^2=p^{a-x}$
\[2a^2=p^{a-x}-p^x=p^x(p^{a-2x}-1)\]$x=v_p(RHS)=2v_p(a). \ $Let $a=p^{\frac{x}{2}}b$ where $(p,b)=1$.
\[2b^2+1=p^{a-2x}=p^{p^{\frac{x}{2}}b-2x}\]But
\[2b^2+1=p^{p^{\frac{x}{2}}b-2x}\geq p^{5^{\frac{x}{2}}b-2x}\geq p^b\geq 5^b>2b^2+1\]Since $p\geq 5, \ 2b^2+1<5^b$ and $(5^{\frac{x}{2}}-1)b\geq 5^{\frac{x}{2}}-1\geq 2x$ which can be proved by induction.$\square$
$ii)p=3$
\[3^a=(k-a^2)(k+a^2)\]$k-a^2=3^x$ and $k+a^2=3^{a-x}$
\[2a^2=3^x(3^{a-2x}-1)\]Denote $a=3^{\frac{x}{2}}b$ We have
\[2b^2+1=3^{3^{\frac{x}{2}}b-2x}\]If $b=1,$ then $3^{\frac{x}{2}}-2x=1$ which gives $x=0,4$ so we get $\boxed{(a,p)=(9,3),(1,3)}$. If $b=2,$ then $2.3^{\frac{x}{2}}-2x=2\iff 3^{\frac{x}{2}}-x=1\implies x=0,2$ Thus we get $\boxed{(a,p)=(6,3),(2,3)}$
Suppose that $b\geq 3$.
\[3^b> b^2+1=3^{3^{\frac{x}{2}}b-2x}\implies 2x>b(3^{\frac{x}{2}}-1)\geq 3(3^{\frac{x}{2}}-1)\geq 6x\]Which is impossible.$\square$
$iii)p=2$
$k-a^2\neq 1$ Let $k-a^2=2^x, \ k+a^2=2^{a-x}$
\[2a^2=2^x(2^{a-2x}-1\iff a^2=2^{x-1}(2^{a-2x}-1)\]Let $x=2m+1$ and $a=2^mb$
\[b^2+1=2^{2^mb-4m-2}\]For $m=1$ we have $b^2+1=2^{2b-6}\underbrace{>}{\text{for} \ b\geq 6}b^2+1$ which gives no solution and for $m=2$ we have $b^2+1=2^{4b-10}\underbrace{>}{\text{for} \ b\geq 4}b^2+1$ which gives no solution again. If $m\geq 3,$ then $2^m>4m+2$ hence
\[2^{b+1}\geq b^2+1=2^{2^mb-4m-2}>2^{(4m+2)(b-1)}\geq 2^{12(b-1)}\implies b+1\geq 12(b-1)\implies b=1\]Which gives 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.
OronSH
1728 posts
#3 • 1 Y
Y by peace09
Answer: $p=3,a=1,2,6,9.$

Set $p^a+a^4=b^2,$ then $p^a=(b-a^2)(b+a^2).$ Then set $b-a^2=p^x,b+a^2=p^y$ where $x,y$ are nonnegative integers with $y>x$ and $x+y=a.$ We also get $2a^2=p^y-p^x$ so we are trying to solve $p^y-p^x=2(x+y)^2.$

First suppose $p=2.$ We get \[2^{y-x}-1=\frac{(x+y)^2}{2^{x-1}}.\]Then $\nu_2$ gives $x-1$ is even, so $\frac{(x+y)^2}{2^{x-1}}$ is a square and an integer. Thus we have $y-x=1$ by Mihailescu, so plugging this in we have $2^{x-1}=(2x+1)^2.$ Now the right side is odd, so $x=1$ which doesn't work. Thus there are no solutions in this case.

Now if $p\ne 2,$ we have $p^x\cdot\frac{p^{y-x}-1}2=(x+y)^2.$ By $\nu_p$ we have $x$ even, so $p^x$ and $\frac{p^{y-x}-1}2$ are both squares. However, $\frac{p^{y-x}-1}2\equiv-\frac12\pmod p.$ Now it is well known that $-1$ is a QR $\pmod p$ iff $p\equiv 1\pmod 4,$ and $2$ is a QR $\pmod p$ iff $p\equiv 1,7\pmod 8.$ Thus $-\frac12$ is a QR iff $p\equiv 1,3\pmod 8.$ Thus $p\ne 5,7.$

Now if $p\ge 11,$ we have \[8y^2=2(y+y)^2>2(x+y)^2=p^y-p^x\ge p^y-p^{y-1}\ge10p^{y-1}>8p^{y-1},\]so $y^2>p^{y-1}.$ But for $y=1$ we have $y^2=p^{y-1},$ and $p^{y-1}$ grows faster than $y^2$ since $\frac{p^y}{p^{y-1}}\ge 11$ but $\frac{(y+1)^2}{y^2}\le\frac{(y+y)^2}{y^2}=4$ for $y\ge 1.$ Thus there are no solutions in this case.

Now we consider $p=3.$ We have \[8y^2>2(x+y)^2=3^y-3^x\ge 3^y-3^{y-1}=2\cdot 3^{y-1},\]so $4y^2>3^{y-1}.$ This is true for $y=1,2,3,4,5$ but false for $y=6,$ and thus false for $y\ge 6$ since $\frac{(y+1)^2}{y^2}=\frac{y^2+2y+1}{y^2}<\frac{y^2+y^2+y^2}{y^2}=3$ for $y\ge 6,$ so the right side grows faster than the left.

Thus we just have to check $y=1,2,3,4,5$ and $x<y.$ Checking, we get only $(y,x)=(1,0),(2,0),(4,2),(5,4)$ work. Using $a=x+y$ we get $a=1,2,6,9.$ These 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.
Assassino9931
1220 posts
#4 • 1 Y
Y by ehuseyinyigit
Time consuming, but great to exercise optimization strategies. Answer. $(p,a)$: $(3,1), (3,2)$, $(3,6)$, $(3,9)$.

The equation $p^a + a^4 = m^2$ is equivalent to $p^a = (m - a^2)(m + a^2)$, hence (as $p$ is prime) $m-a^2 = p^x$ and $m + a^2 = p^{a-x}$ for some $0 \leq x < \frac{a}{2}$. Thus $2a^2 = p^{a-x} - p^x$. In the right-hand side the first time decreases as $x$ increases, while the second term increases, hence

\[ 2a^2 \geq p^{a - \left \lfloor \frac{a-1}{2} \right\rfloor} - p^{\left \lfloor \frac{a-1}{2} \right\rfloor} = p^{\left \lfloor \frac{a-1}{2} \right\rfloor}(p^{a - 2\left \lfloor \frac{a-1}{2} \right\rfloor} - 1). \]
If $a=1$, then in $2a^2 = p^{a-x} - p^x$ we can have only $x=0$, so $p=3$. If $a=2$, then again $x=0$ and $8 = p^2 - 1$ yield $p=3$.

Suppose $a\geq 3$ and $p\geq 5$. In the above inequality the right-hand side is at least $p^{\left \lfloor \frac{a-1}{2} \right\rfloor}(p-1) \geq 5^{\left \lfloor \frac{a-1}{2} \right\rfloor} \cdot 4$, so necessarily $a^2 \geq 2 \cdot 5^{\frac{a-1}{2}}$. This is false for $a=3$ (direct check) and for $a\geq 5$ by induction: the base case is checked directly, and if $5^{\frac{a-1}{2}} > \frac{a^2}{2}$, then multiplying with $5 > \frac{(a+1)^2}{a^2}$ (the right-hand side is indeed not more than $\left(1 + \frac{1}{a}\right)^2 \leq \left(\frac{6}{5}\right)^2 < 2$) we obtain what we want. If $a=4$ in $2a^2 = p^{a-x} - p^x$ we have $2^5 = p^{4-x} - p^x$ and $0\leq x < 2$, but none of $x=0$ and $x=1$ yields a solution (in the first case $p^4 = 33$, in the second one $p$ divides the right-hand side, so $p=2$ which does not work).

Now let $p=3$ and $a\geq 3$. In $2a^2 = p^{a-x} - p^x$ if $x=0$, then $2a^2 = 3^a - 1$, impossible since the right-hand side is larger by induction. If $x\geq 1$, then $3$ divides $2a^2$ and so $a$ is divisible by $3$. For $a=3$ the main expression is $3^3 + 3^4 = 108$, for $a=6$ is $3^6 + 6^4 = 45^2$, for $a=9$ it is $3^9 + 9^4 = 3^9 + 3^8 = 3^8 \cdot 4 = 162^2$. For $a\geq 12$ in the main inequality the right-hand side is at least $p^{\left \lfloor \frac{a-1}{2} \right\rfloor}(p-1) \geq 2 \cdot 3^{\frac{a-1}{2}}$, but actually $3^{\frac{a-1}{2}} > a^2$ by induction for $a\geq 11$ (for $a=11$ we have $243 > 121$ and the step follows by $3 > \left(1+\frac{1}{a}\right)^2$).

It remains to consider $p=2$ and $a\geq 3$. In the main inequality the right-hand side is at least $2^{\frac{a-1}{2}}$, so $a^2 \geq 2^{\frac{a-3}{2}}$, false for $a\geq 21$ (by induction, since $512 > 441$ and $2 > \left(1 + \frac{1}{a}\right)^2$). For $a=1,2,\ldots,20$ the expression $2^a + a^4$ equals $3 \in (1^2, 2^2)$, $20 \in (4^2, 5^2)$, $89 \in (9^2, 10^2)$, $272 \in (16^2, 17^2)$, $657 \in (25^2, 26^2)$, $1360 \in (36^2, 37^2)$, $2529 \in (50^2, 51^2)$, $2^8 + 2^{12} = 2^8 \cdot 17$, $7073 \in (84^2, 85^2)$, $11024 \in (104^2, 105^2)$, $16689 \in (129^2, 130^2)$, $2^{12} + 12^4 = 2^{8}(16 + 81) = 2^8 \cdot 97$, $2^{13} + 13^4$ ends at $3$, impossible for a square; $2^{14} + 14^4 = 2^4(1024 + 2401) = 2^4 \cdot 5^2 \cdot 137$ and $137 \in (11^2, 12^2)$ is not a square; $2^{15} + 15^4$ ends at $3$, impossible for a square; $2^{16} + 16^4 = 2^{17}$ and is not a square; $2^{17} + 17^4$ ends at $3$, impossible for a square; $2^{18} + 18^4 = 2^4 \cdot 22945$, the second multiplier is divisible by $5$, but not by $25$; $2^{19} + 19^4 = 654609$ is divisible by $3$, but not by $9$; $2^{20} + 20^4 = 2^8(2^{12} + 5^4) = 2^8 \cdot 4721$, where $4721 \in (68^2, 69^2)$ is not a square. Therefore there is no solution for $a=2$.
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
#5 • 1 Y
Y by isomoBela
Rewrite $p^a+a^4=x^2$ by factoring out $p^a = (x-a^2)(x+a^2)$. The second bracket is strictly positive, so the first one must be as well. We now consider several cases for $x - a^2$:
  • $x - a^2 = 1$. Then $x = a^2+1\Longrightarrow p^a = 2a^2 + 1$. The right-hand side is odd, so $p \geq 3$. Now $p^a \geq 3^a > 2a^2 + 1$ for $a>2$ (by induction, or taking the derivative of $f(a) = 3^a - 2a^2 - 1$, etc.), and $a=1, 2$ lead to the solutions $(a,p) = (1,3), (2,3)$.
  • $x - a^2 > 1$ and $p > 2$. Then $p\mid x-a^2$ and $p\mid x+a^2$, so $p\mid 2x$ and $p\mid 2a^2$. As $p>2$, these imply $p\mid x$ and $p\mid a$. Now if $\nu_p(x) = X$ and $\nu_p(a) = A$, and $x = x_1p^{X}$, $a = a_1p^{A}$, then we can write the initial equation as: \[p^{a_1p^{A}} + a_1^4 p^{4A} = x_1^2 p^{2X}.\]As $\nu_p(x^2) = 2X$ is even, so must be $\nu_p(p^{a_1p^A}+a_1^4p^{4A}$. However, if we assume that we don't just have $a_1p^{A} > 4A$, then $a_1 = 1$, $p = 3$, and $A = 1$, at which point $\nu_p(p^a+a^4 = 3$, which is odd, contradiction. Therefore, $a_1p^A > 4A$ and so
    \[4A = \nu_p(p^a+a^4) = \nu_p(x^2) = 2X \Longrightarrow X = 2A.\]Dividing both sides by $p^{4A}$ leaves $p^{a_1p^{A} - 4A} = (x_1 - a_1^2)(x_1 + a_1^2)$. Now if $p\mid x_1-a_1^2$, then $p\mid x_1+a_1^2$ as well, so $p\mid a_1$ and $p\mid x_1$, contradiction with the assumption that $\nu_p(x) = X$ and $\nu_p(a) = A$ from before. Hence $x_1 - a_1^2 = 1$ and so
    \[p^{a_1p^{A} - 4A} = 2a_1^2+1.\]If $a_1>2$, then $p^{a_1p^{A} - 4A} \geq p^{3a_1-4} \geq 3^{3a_1-4} \geq 2a_1^2+1$. Checking $a_1 = 1, 2$ leads to the solutions $(a,p) = (9,3)$ and $(a,p) = (6,3)$, respectively.
  • $x-a^2 > 1$ and $p = 2$. Here $x-a^2 = 2^y$ and $x+a^2 = 2^z$ for some positive integers $y<z$, and so $2^z - 2^y = 2a^2\Longrightarrow 2^{z-1} - 2^{y-1} = a^2$. Diving by $4$ until we can, we must get to $2^{z-y} - 1 = \alpha^2$ for some $\alpha \in\mathbb{N}$. However, $2^{z-y} - 1 \equiv 3\not\equiv \alpha^2 \pmod 4$ for $z>y+1$, so we must have $z = y+1$. This leads to $x+a^2 = 2(x-a^2)$, or $x = 3a^2$. Plugging this into the original equation gives $2^{a} + a^4 = 9a^4$, so $2^a = 8a^4$. At this point, $a$ is some power of two, say $a = 2^b$, but $2^a = 8a^4 \Longrightarrow 2^b = 4b+3$, which is impossible due to modulo $4$ issues again. Thus, there are no solutions in this case, and we're done.
In conclusion, all solutions are $(a,p) = (1,3), (2,3), (6,3), (9,3)$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
EeEeRUT
55 posts
#6
Y by
Let $(a, p)$ be a pair of integers satisfying the equation $ p^a + a^4 = k^2 $ for some integer $ k $. Then we have:
\[ p^a = (k - a^2)(k + a^2) = p^m \cdot p^{a-m} \]where $ k - a^2 = p^m $, $ k + a^2 = p^{a-m} $, and $ m $ is a non-negative integer.

Subtracting these two equations gives:
\[ p^{a-m} - p^m = 2a^2 \]
This simplifies further to:
\[ p^m(p^{a-2m} - 1) = 2a^2 \]
It is clear that $ p \neq 2 $ and $ p \nmid \frac{p^{a-2m} - 1}{2} = \frac{a^2}{p^m} $, leading to $ v_p(a^2) - v_p(p^m) = 0 $, implying $ 2v_p(a) = m $.

Therefore, $ m = 2b $ and $ a = c \cdot p^b $ for some positive integer $ c $ and non-negative integer $ b $. Hence,
\[ \frac{p^{a-2m} - 1}{2} = c^2 = \frac{p^{c \cdot p^b - 4b} - 1}{2} \]
Since $ p \neq 2 $, we have $ p \geqslant 3 $. Considering $ b $ as an integer, the inequality $ 3^b - 1 \geqslant 4b - 2 $ is always true. Furthermore, since $ p \geqslant 3 $, we have $ p^b - 1 \geqslant 3^b - 1 \geqslant 4b - 2 $, which results in:
\[ c \geqslant 1 \geqslant \frac{4b - 1}{p^b - 1} \implies cp^b - c \geqslant 4b - 1 \implies cp^b - 4b \geqslant c - 1 \]
Next, using the increasing nature of the function $ f(x) = p^x $, we obtain:
\[ \frac{1}{2}(p^{cp^b - 4b} - 1) \geqslant \frac{1}{2}(p^{c - 1} - 1) \implies c^2 \geqslant \frac{1}{2}(p^{c - 1} - 1) \geqslant \frac{1}{2}(3^{c - 1} - 1) \]
Upon further observation, if $ c \geqslant 5 $, the inequality $ c^2 < \frac{1}{2}(3^{c - 1} - 1) $ holds true.

In conclusion, the possible values for $ c $ are in the range $ 1 \leqslant c \leqslant 4 $. Let's consider each case:
$\bullet$ If $ c = 1 $, then $ 2 = p^{p^b - 4b} - 1 $, which implies $ p = 3 $ and $ p^b - 4b = 1 $. Thus, $ b = 2 $ or $ b = 0 $. If $ b = 2 $, then $ a = 9 $, satisfying $ p^a + a^4 = 3^9 + 9^4 = 162^2 $, a perfect square. If $ b = 0 $, then $ a = 1 $, satisfying $ p^a + a^4 = 3^1 + 1^4 = 2^2 $, also a perfect square.

$\bullet$ If $ c = 2 $, then $ 8 = p^{2p^b - 4b} - 1 $, implying $ p = 3 $ and $ 2p^b - 4b = 2 $. Thus, $ b = 0 $ or $ b = 1 $. If $ b = 0 $, then $ a = 2 $, satisfying $ p^a + a^4 = 3^2 + 2^4 = 5^2 $, a perfect square. If $ b = 1 $, then $ a = 6 $, satisfying $ p^a + a^4 = 3^6 + 6^4 = 45^2 $, also a perfect square.

$\bullet$ If $ c = 3 $, then $ 18 = p^{3p^b - 4b} - 1 $ leads to no integer solutions.

$\bullet$ If $ c = 4 $, then $ 32 = p^{4p^b - 4b} - 1 $ results in $ 33 = p^{4p^b - 4b} $, but $ 33 $ is not a power of any prime number, hence no solutions exist in this case.

Therefore, the valid pairs $ (a, p) $ that satisfy all conditions are $ \boxed{(1, 3), (2, 3), (6, 3), (9, 3)} $. Each pair has been verified to meet all criteria.
This post has been edited 1 time. Last edited by EeEeRUT, Jul 17, 2024, 1:43 PM
Reason: ITEMIZE
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ihatemath123
3441 posts
#7 • 6 Y
Y by OronSH, vsamc, Kawhi2, alexanderhamilton124, TensorGuy666, eezad3
the only correctly placed problem on the n shortlist is hard for the wrong reasons
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
FAA2533
65 posts
#8 • 5 Y
Y by avisioner, MS_Kekas, sami1618, ihatemath123, alexanderhamilton124
This problem was proposed by Tahjib Hossain Khan, Bangladesh.
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
#9
Y by
We claim the only solutions are $(1,3), (2,3), (6,3), (9,3)$.

Let $p^a + a^4 = x^2$ so we have that
\[p^a = (x-a^2)(x+a^2) \implies x-a^2 = p^k, x+a^2 = p^{a-k} \implies a^2 = \frac{p^{a-k} - p^k}2.\]
If $a = 1$, we get the only solution is $(1,3)$. We will proceed with casework.

Case 1: $p \ge 5$.
In this case, we get that $\nu_p(x) = 2\nu_p(a) = 2r$ where $2r \ge k-1$. If $r = 0$, we have $a^2 \ge \frac{p^{a-1} - p}{2} \ge 2p^{a-2}$ unless $a = 1$ or $a=2$ which we verify to not work. We have that $$\frac{p^{a-k}-p^k}{2} \ge 2p^{a-k-1} \ge \frac{2p^{a-2}}{a^2} > a^2$$where the last inequality holds unless $a = 5$ and $p = 5$, but the remaining case can be checked to fail. So there are no solutions here.

Case 2: $p = 3$.
Here, we have that $\nu_p(x) = 2\nu_p(a) = 2r, 2r\ge k - 1$ unless $r=1$ and $a = 3$ but this does not result in a solution. So we get that $$a^2 = \frac{p^{a-k}-p^k}{2} \ge p^{a-k-1} \ge \frac{p^{a-2}}{a^2}.$$This reduces to a case check for $a < 10$ which results in solutions $(2,3), (6,3), (9,3)$.

Case 3: $p = 2$.
Here, we have that if $k = 0$, then $2^a = 2a^2 + 1$ which clearly has no solutions. So we can get that $a^2 = 2^{k-1}(2^{a-2k}-1)$ so $k$ is odd. Let $k = 2l + 1$ and $a = 2^lq$, we get that $q^2 \equiv 3\pmod 4$ unless $a = 2k$ or $a = 2k+1$. But these cases give no solution as the first implies $a = 0$ and the second means $k = 1$ and this does not give a solution.

Having exhausted all cases, we can conclude that the solutions we initially listed are the only ones.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
sami1618
881 posts
#11
Y by
The pairs are $\boxed{(1,3),(2,3),(6,3),(9,3)}$.

Let $k$ be a positive integer such that $$p^a+a^4=(a^2+k)^2\iff p^a=k(2a^2+k)$$
We quickly resolve the case $p=2$. We can set $k=2^{k'}$ giving $2^{a-k'}=2a^2+2^{k'}$. We thus must have $2a^2=2^{k'}$ or $a=2^{\frac{k'-1}{2}}$. Thus we must have $2^{\frac{k'-1}{2}}=2k'+1$. Checking $k'\leq 10$ gives no solutions and one can finish with induction showing the LHS is larger.

Now set $k=p^{2k'}$ and we must have $a=a'p^{k'}$ for an non-negative $k'$. The case $a'=k'=1$ clearly gives no solutions. Then we must have $$p^{a'p^{k'}-4k'}=2{a'}^2+1$$Notice that for $(a',k')\neq (1,1)$ we have $a'p^{k'}-4k'\geq a'3^{k'}-4k'\geq a'$. Thus we must have $3^{a'}\leq p^{a'}\leq 2{a'}^2+1$. Thus we must have either $a'=1$ or $a'=2$ and $p=3$.

If $a'=1$ the equality simplifies to $3^{3^{k'}-4k'}=3$ so we must have $3^{k'}=4k'+1$ which has solutions at $k'=0$ and $k'=2$ giving $(a,p)$ as $(1,3)$ and $(9,3)$.

If $a'=2$ the equality simplifies to $3^{2\cdot 3^{k'}-4k'}=9$ so we must have $3^{k'}=2k'+1$ which has solutions at $k'=0$ and $k'=1$ giving $(a,p)$ as $(2,3)$ and $(6,3)$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
alexanderhamilton124
384 posts
#12
Y by
Let $p^a + a^4 = k^2$. We have $(k - a^2)(k + a^2) = p^a$> If $k - a^2 = 1$, then $2a^2 + 1 = p^a$. We have that $p^a \geq 2^a > 2a^2 + 1$, for $a = 7$. Say $2^a > 2a^2 + 1$ for $a = \{7, \dots, k\}$. Then, $2^k > 2k^2 + 1$, and $2^{k + 1} = 2 \cdot 2^k > 4k^2 + 2 > 2(k + 1)^2 + 1$, so $2^a > 2a^2 + 1$ for $a \geq 7$, now we simply have to check $a = 1, 2, \dots 6$, which yield $(1, 3), (2, 3)$ as solutions.

Now, assume \( k - a^2 \neq 1 \). Then \( p \mid k - a^2, p \mid k + a^2 \implies p \mid a, k \). Let \( k = p^{\alpha}x \) and \( a^2 = p^{2\beta}y \), where \( p \nmid x, y \). Let:
\[
k - a^2 = p^{\gamma}, \quad k + a^2 = p^{a - \gamma}
\]First, note that $a > 2\gamma$. We have $p^{\alpha}x + p^{2\beta}y = p^{a - \gamma}$, and WLOG $\alpha \geq 2\beta$ which gives $p^{2\beta}(p^{\alpha - 2\beta}x + y) = p^{a - \gamma}$. If $\alpha \neq 2\beta$, then $p \nmid p^{\alpha - 2\beta}x + y$ since $p \nmid y$, a contradiction (as it's not equal to 1). Therefore $v_p(k) = v_p(a^2)$, and $\alpha = 2\beta$.

So, we have $p^{2\beta}(x - y) = p^{\gamma}, p^{2\beta}(x + y) = p^{a - \gamma}$. Note that $x + y \neq 1$, so $p \mid x + y$. If $x - y \neq 1$, then $p \mid x - y$ as well which yields $p \mid x, y$ a contradiction therefore $x - y = 1$, resulting in $p^{2\beta} = p^{\gamma}$, and $2y + 1 = p^{a - 2\gamma}$, and since $2y + 1 = \frac{2a^2}{p^{\gamma}} + 1$, we have $2a^2 = p^{a - \gamma} - p^{\gamma}$. Since $a > 2\gamma$, $\gamma \leq \frac{a - 1}{2}$, and therefore $p^{a - \gamma} - p^{\gamma} \geq p^{\frac{a + 1}{2}} - p^{\frac{a - 1}{2}} = p^{\frac{a - 1}{2}}(p - 1)$.

Claim: $p^{\frac{a - 1}{2}}(p - 1) > 2a^2$ for odd primes and $a \geq 11$. If we prove $3^{\frac{a - 1}{2}}\cdot 2 > 2a^2$, we would be done. Note that for $a = 11$, $3^5 \cdot 2 = 486 > 242$, so say we are done for $a = \{11, \dots, k\}$. Then, $2 \cdot 3^{\frac{k}{2}} = \sqrt{3} \cdot 3^{\frac{a - 1}{2}} \cdot 2 > 2\sqrt{3}k^2 > 2(k + 1)^2$, since $2\sqrt{3} > 3$, and $k^2 > 5k > 4k + 1$. Therefore, we are simply reduced to a case check from $a = 1, 2, \dots 11$.

Keep in mind that $p \mid a$ and we are only considering $p$ odd at the moment, so for $a = 10, p = 5, 10^{4} + 5^{10} \equiv 2\mod{3}$, not possible. For $a = 9, p = 3$, which gives $9^4 + 3^9 = 162^2$, which works. For $a = 8$, no odd primes divide it. For $a = 7$, $p = 7$ and this fails. For $a = 6, p = 3$ and $6^4 + 3^6 = 45^2$, so this works. For $a = 5, p = 5$, and this fails. For $a = 4$, no odd primes divide it. For $a = 3$, we fail. So, we have the solutions $(9, 3), (6, 3)$ as well.

Now, consider $p = 2$. We have $2a^2 = 2^{a - \gamma} - 2^{\gamma} \implies a^2 = 2^{\gamma - 1}(2^{a - 2\gamma} - 1)$. Since $2 \nmid 2^{a - 2\gamma} - 1$, we have $v_2(a^2) = \gamma - 1$, which means $2^{\gamma - 1}$ is a perfect square therefore $2^{a - 2\gamma} - 1$ is a perfect square as well. However, this is not possible if $a \geq 2\gamma + 2$, as then $2^{a - 2\gamma} - 1 \equiv 3\mod{4}$, so $a = 2\gamma + 1$, which gives $(2\gamma + 1)^2 = 2^{\gamma - 1}$, impossible by parity (clearly $\gamma \neq 1$).

So, we are done and our solutions are $\boxed{(1, 3), (2, 3), (6, 3), (9, 3)}$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
KnowingAnt
149 posts
#13
Y by
Wow okay I hate this problem. We want to solve $p^a + a^4 = n^2$, or $p^a = (n - a^2)(n + a^2)$. Let $p^\alpha = n - a^2$ and $p^\beta = n + a^2$, since $a > 0$, $\alpha < \beta$.

We first eliminate the case $p = 2$. Then, $2^{\alpha - 1}(2^{\beta - \alpha} - 1) = a^2$, $2^{\beta - \alpha} - 1$ is a perfect square, so $\beta - \alpha = 1$, by taking modulo $4$. Therefore, $2(n - a^2) = n + a^2$, which gives $n = 3a^2$, or $2^a = 8a^2$, which clearly has no solutions.

Now suppose $p > 2$. Then
\[p^\beta - p^\alpha = 2a^2 \ge (p - 1)p^{\frac{a - 1}{2}}.\]Now we proceed with a massive cases bash:

$p = 3$: then $a \le 9$. If $a = 1$, $3^1 + 1^4 = 3^2$ works. If $a = 2$, $3^2 + 2^4 = 5^2$ works. If $a = 3$, $3^3 + 3^4 = 108$ fails. If $a = 4$, $3^4 + 4^4 \equiv 2 \pmod 5$ fails. If $a = 5$, $3^5 + 5^4 = 2^2 \cdot 7 \cdot 31$ fails. If $a = 6$, $3^6 + 6^4 = 45^2$ works. If $a = 7$, $3^7 + 7^4 \equiv 12 \pmod{16}$ fails. If $a = 8$, $3^8 + 8^4 \equiv 3 \pmod 7$ fails. If $a = 9$, $3^9 + 9^4 = (2 \cdot 3^4)^2$ works.

$p = 5$: then $a \le 4$. If $a = 1$, $5^1 + 1^4 = 6$ fails. If $a = 2$, $5^2 + 2^4 = 41$ fails. If $a = 3$, $5^3 + 3^4 = 206$ fails. If $a = 4$, $5^4 + 4^4 = 881$ fails.

$p \ge 7$: All $a$ fail.
This post has been edited 1 time. Last edited by KnowingAnt, Oct 12, 2024, 5:17 AM
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
#14
Y by
Write the equation as $p^a+a^4 = k^2$, or $p^a = (k-a^2)(k+a^2)$. So both factors are powers of $p$, i.e.
\[2a^2 = p^r - p^{a-r} \geq \begin{cases} p^{a/2 + 1} - p^{a/2 - 1} = p^{a/2 - 1} (p^2-1) & \text{$a$ even} \\ p^{(a+1)/2} - p^{(a-1)/2} = p^{(a-1)/2} (p-1) & \text{$a$ odd} \end{cases}\]Okay, now time for the bash.

Even Case: If $p = 2$, the inequality holds only for $a \leq 20$, and no cases yield valid solutions. If $p = 3$, check $a \leq 6$, which yields $a = 2$ and $a = 6$. If $p \geq 5$, no values of $a$ work.

Odd Case: For $p = 2$, check $a \leq 23$; for $p = 3$, check $a \leq 12$, yielding $a = 1$ and $a = 9$; for $p = 5$, check $a \leq 6$; for $p \geq 7$ we have $a \leq 4$ which clearly will not yield any solutions.

Thus we have $(1, 3)$, $(2, 3)$, $(6, 3)$, $(9, 3)$ in total.
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
#15
Y by
Junior vibes but time consuming :(
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
N3bula
256 posts
#16
Y by
If we have $p^k=n^2-a^4$ we get that $p^k=(n-a^2)(n+a^2)$ thus both $n-a^2$ and $n+a^2$ are powers of $p$ so:
\[n-a^2\mid n+a^2\]Thus:
\[n-a^2\mid n+a^2+n-a^2=2n\]Thus if $n-a^2\neq 1$ and $n-a^2\neq 2$ we get $p\mid n$. This means we must also have $p\mid a^2$, thus $p^2\mid n$, thus we can divide
by $p^2$ to obtain $p^{k-4}=(\frac{n}{p^2}-(\frac{a}{p})^2)(\frac{n}{p^2}+(\frac{a}{p})^2)$ we can repeat the above argument until we get values $a'$ and $n'$ where $p^i=(n'-a'^2)(n'+a'^2)$ and where we have $n'-a'^2=1$ or $2$. If $n'-a'^2=1$ we get $p^i=2a'^2+1$, suppose $p\neq 2$ and $p\neq 3$, thus we have that $i<a'$ and we also have that $i+4k<a'p^k$ for all $k$ so $p=2$ or $p=3$, if $p=2$ we have $2^i=2a'^2+1$ which is clearly not possible so $p=3$ is the only possible case. If $a'>2$ we have that $a'>i$ and also that $2a'>4$ so $i+4k<3^ka'$ thus when $a'=1$ we get the solutions $(1, 3)$ and $(9, 3)$ and when $a'=2$ we get the solutions $(2, 3)$ and $(6, 3)$. If $n'-a'^2=2$ we get $2^i=2a^2+2$ so $2^{i-1}=a^2+1$ this is clearly not possible because of catalans unless $i-1=1$, if $i-1=1$ we get $a=1$ however this means $a=0$ which is clearly not possible.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Ilikeminecraft
330 posts
#17
Y by
uh I hate size

Let $p^a + a^4 = k^2.$ Thus, $p^a = (k - a^2)(k + a^2),$ and assume the factors are $k - a^2 = p^{\ell}, k + a^2 = p^{a - \ell},$ where we require $\ell < a - \ell.$ Thus, we have $a^2 = \frac{p^\ell(p^{a - 2\ell} - 1)}2.$ Clearly, $a > 1.$
Claim: $p = 2, 3$ are the only possible values
Proof: We first handle $p\geq11.$ We have $a^2 = \frac{p^\ell(p^{a - 2\ell} - 1)}2.$ Define the function $f(x) = p^{a - x} - p^x,$ where $x \in [0, \frac a2).$ We have that $f'(x) = -\ln p(p^{a - x} + p^x) < 0.$ Hence, $f$ is decreasing over the interval. Clearly note that $\ell < \frac a2,$ and thus $\ell \leq \frac{a - 1}{2}.$ Thus, for integers $\ell,$ we get $f(\ell) \geq f(\frac{a - 1}{2}) = (p - 1)p^{\frac{a - 1}2} > 2a^2$ for $p\geq11.$

Now, assume $3 < p < 11.$ Observe that from taking modulo $p,$ we get $a^2 \equiv -\frac12\pmod p.$ However,
\begin{align*}
            \left(\frac{-2}{p}\right) & = \left(\frac{-1}p\right)\left(\frac{2}{p}\right) \\
            & = (-1)^{\frac{p^2-1}{8} + \frac{p - 1}{2}} \\
            & = (-1)^{\frac{ p -1}{8}(p + 5)}
        \end{align*}which is a contradiction as the expression evaluates to $-1$ for $p = 5, 7.$

If $p = 2:$ let $a'\in\mathbb Z$ satisfy $a = 2^{\frac{\ell-1}{2}}a'.$ Hence, we require $(a')^2 = 2^{a - 2\ell} - 1.$ However, by catalan, we require $a - 2\ell = 1,$ and thus $a' = 1.$ However, we have that $a$ is a power of 2 while it is an odd number, and so $a = 1.$ This doesn't work by testing it.

If $p = 3:$ We have $2a^2 = 3^{a -\ell} - 3^{\ell} \geq 2\cdot3^{\frac{a - 1}2}$(recall the lower bound we established earlier). However, $2\cdot3^{\frac{a-1}2} > a^2$ for $a > 11.$ Simple testing tells us that $a = 1, 2, 6, 9$ work.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
eezad3
4 posts
#18
Y by
Anubhab vaiya, we felt that (pun fully intended)

Note $a=1$ gives solution $(1,3)$. Now we consider $a>1$.
Case 1: $p \neq 2$
$p^a+a^4=b^2 \implies p^a=(b-a^2)(b+a^2).$ Note $(b-a^2,b+a^2)=(b-a^2,a^2)=$ some power of $p$ since $p \neq 2$. Now, $\frac{a^2}{b-a^2} \in \mathbb{N} \dots \textbf{(i)}$. Write $b=p^{n_1}m_1, a=p^{n_2}m_2$ where $(m_1,m_2)=1$.

$2n_2>n_1,\textbf{(i)} \implies m_1=p^{2n_2-n_1}m_2^2+1$ (since $(p,m_1)=1$)$\implies 2a^2+p^{n_1}=p^{a-n_1} \implies 2p^{2n_2-n_1}m_2=p^{a-2n_1}-1$, contradiction.
$2n_2=n_1, \textbf{(i)} \implies m_1=m_2+1 \implies b-a^2=p^{\bullet} \implies -m_2^2+m_2+1=p^{\bullet -2n_2}$ but for $m_2>1, -m_2^2+m_2+1<0.$ $m_2=1 \implies b+a^2=3p^{2n_2} \implies p=3 \implies 3^{4n_2+1}=3^{3^{n_2}}$ and gives solution $(9,3)$
$2n_2<n_1, \textbf{(i)} \implies p^{n_1-2n_2}m_1=m_2^2+1 \implies 2a^2+p^{2n_2}=p^{a-2n_2} \implies p^{a-4n_2}-1=2m_2^2 \dots \textbf{(ii)}$. If $n_2=0,1$ we get solution $(2,3), (6,3)$. If $m_2=1$, we get solution $(9,3)$. Now consider $n_2,m_2>1$. If $m_2<p$ (note the relation cant be that of equality): trivially $3^{n_2}m_2 - 4n_2 > log_p(2)+2 \implies p^{n_2}m_2 - 4n_2 >log_p(2)+2 \implies p^{a-4n_2}>2p^2 \implies p^{a-4n_2}-1 \geq 2p^2 >2m_2^2$, a contradiction. So, let $m_2=u+p$ where $u>0$. Trivially $p^{n_2+2} \geq 6n_2p+2p \implies p^{n_2+2}-6n_2p-2p \geq u(2-p^{n_2+1}) \implies \frac{p^{n_2+1}(p+u)-6n_2p-2p}{2u} \geq 1 \implies p^{\frac{p^{n_2+1}(p+u)-6n_2p-2p}{2u}} \geq 3>e>(1+ \frac{u}{p})^{\frac{p}{u}} \implies p^{p^{n_2+1}m_2-6n_2p} > m^{2p} \implies p^{\frac{a-6n_2}{a-4n_2}} > m^{\frac{2}{a-4n_2}} \implies 1 > p^{\frac{6n_2-a}{a-4n_2}}m_2^{\frac{2}{a-4n_2}}$ (trivially $6n_2-a<0$ for $n_2>1$) $\implies p^{a-4n_2} > p^{2n_2}m_2^2>2m_2^2 \implies p^{a-4n_2}-1>2m_2^2$, a contradiction from $\textbf{(ii)}$.
Case 2: $p=2$
Subcase 1: $2 \nmid a$. Let $b-a^2=2^{t_1} \implies 2^{t_1}+2a^2=2^{t_2} \implies t_1=1$ (since $t_1 \neq t_2$) $\implies (b+a^2)=2(a^2+1)=2^{\bullet}$, contradiction by zsigmondy
Subcase 2: $2 \mid a$. Let $a=2^tk$ where $(2,k)=1$. So, $2^{2^tk-4t}+k^4=(\frac{b}{2^{2t}})^2$. When $2^tk-4t>0$ this becomes subcase 1. Trivially, $k \geq 3 \implies 2^tk-4t > 0$. If $k=1$ then trivially, except for $t \in \{1,2,3,4\}$, $2^tk-4t>0$. Case working thru $k=1, t \in \{1,2,3,4\}$ gives no solution.
Z K Y
N Quick Reply
G
H
=
a