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
k i Adding contests to the Contest Collections
dcouchman   1
N Apr 5, 2023 by v_Enhance
Want to help AoPS remain a valuable Olympiad resource? Help us add contests to AoPS's Contest Collections.

Find instructions and a list of contests to add here: https://artofproblemsolving.com/community/c40244h1064480_contests_to_add
1 reply
dcouchman
Sep 9, 2019
v_Enhance
Apr 5, 2023
k i Zero tolerance
ZetaX   49
N May 4, 2019 by NoDealsHere
Source: Use your common sense! (enough is enough)
Some users don't want to learn, some other simply ignore advises.
But please follow the following guideline:


To make it short: ALWAYS USE YOUR COMMON SENSE IF POSTING!
If you don't have common sense, don't post.


More specifically:

For new threads:


a) Good, meaningful title:
The title has to say what the problem is about in best way possible.
If that title occured already, it's definitely bad. And contest names aren't good either.
That's in fact a requirement for being able to search old problems.

Examples:
Bad titles:
- "Hard"/"Medium"/"Easy" (if you find it so cool how hard/easy it is, tell it in the post and use a title that tells us the problem)
- "Number Theory" (hey guy, guess why this forum's named that way¿ and is it the only such problem on earth¿)
- "Fibonacci" (there are millions of Fibonacci problems out there, all posted and named the same...)
- "Chinese TST 2003" (does this say anything about the problem¿)
Good titles:
- "On divisors of a³+2b³+4c³-6abc"
- "Number of solutions to x²+y²=6z²"
- "Fibonacci numbers are never squares"


b) Use search function:
Before posting a "new" problem spend at least two, better five, minutes to look if this problem was posted before. If it was, don't repost it. If you have anything important to say on topic, post it in one of the older threads.
If the thread is locked cause of this, use search function.

Update (by Amir Hossein). The best way to search for two keywords in AoPS is to input
[code]+"first keyword" +"second keyword"[/code]
so that any post containing both strings "first word" and "second form".


c) Good problem statement:
Some recent really bad post was:
[quote]$lim_{n\to 1}^{+\infty}\frac{1}{n}-lnn$[/quote]
It contains no question and no answer.
If you do this, too, you are on the best way to get your thread deleted. Write everything clearly, define where your variables come from (and define the "natural" numbers if used). Additionally read your post at least twice before submitting. After you sent it, read it again and use the Edit-Button if necessary to correct errors.


For answers to already existing threads:


d) Of any interest and with content:
Don't post things that are more trivial than completely obvious. For example, if the question is to solve $x^{3}+y^{3}=z^{3}$, do not answer with "$x=y=z=0$ is a solution" only. Either you post any kind of proof or at least something unexpected (like "$x=1337, y=481, z=42$ is the smallest solution). Someone that does not see that $x=y=z=0$ is a solution of the above without your post is completely wrong here, this is an IMO-level forum.
Similar, posting "I have solved this problem" but not posting anything else is not welcome; it even looks that you just want to show off what a genius you are.

e) Well written and checked answers:
Like c) for new threads, check your solutions at least twice for mistakes. And after sending, read it again and use the Edit-Button if necessary to correct errors.



To repeat it: ALWAYS USE YOUR COMMON SENSE IF POSTING!


Everything definitely out of range of common sense will be locked or deleted (exept for new users having less than about 42 posts, they are newbies and need/get some time to learn).

The above rules will be applied from next monday (5. march of 2007).
Feel free to discuss on this here.
49 replies
ZetaX
Feb 27, 2007
NoDealsHere
May 4, 2019
beautiful functional equation problem
Medjl   6
N 2 minutes ago by Sadigly
Source: Netherlands TST for BxMO 2017 problem 2
Let define a function $f: \mathbb{N} \rightarrow \mathbb{Z}$ such that :
$i)$$f(p)=1$ for all prime numbers $p$.
$ii)$$f(xy)=xf(y)+yf(x)$ for all positive integers $x,y$
find the smallest $n \geq 2016$ such that $f(n)=n$
6 replies
Medjl
Feb 1, 2018
Sadigly
2 minutes ago
Line Combining Fermat Point, Orthocenter, and Centroid
cooljoseph   0
5 minutes ago
In triangle $ABC$, draw exterior equilateral triangles on sides $AB$ and $AC$ to obtain $ABB'$ and $ACC'$, respectively. Let $X$ be the intersection of the altitude through $B$ and the median through $C$. Let $Y$ be the intersection of the altitude through $A$ and line $CC'$. Let $Z$ be the intersection of the median through $A$ and the line $BB'$. Prove that $X$, $Y$, and $Z$ all lie on a line.
0 replies
+1 w
cooljoseph
5 minutes ago
0 replies
complete integral values
Medjl   2
N 14 minutes ago by Sadigly
Source: Netherlands TST for BxMO 2017 problem 1
Let $n$ be an even positive integer. A sequence of $n$ real numbers is called complete if for every integer $m$ with $1 \leq  m \leq  n$ either the sum of the first $m$ terms of the sum or the sum of the last $m$ terms is integral. Determine
the minimum number of integers in a complete sequence of $n$ numbers.
2 replies
Medjl
Feb 1, 2018
Sadigly
14 minutes ago
Geometry
youochange   4
N 19 minutes ago by RANDOM__USER
m:}
Let $\triangle ABC$ be a triangle inscribed in a circle, where the tangents to the circle at points $B$ and $C$ intersect at the point $P$. Let $M$ be a point on the arc $AC$ (not containing $B$) such that $M \neq A$ and $M \neq C$. Let the lines $BC$ and $AM$ intersect at point $K$. Let $P'$ be the reflection of $P$ with respect to the line $AM$. The lines $AP'$ and $PM$ intersect at point $Q$, and $PM$ intersects the circumcircle of $\triangle ABC$ again at point $N$.

Prove that the point $Q$ lies on the circumcircle of $\triangle ANK$.
4 replies
youochange
Today at 11:27 AM
RANDOM__USER
19 minutes ago
combinatorics and number theory beautiful problem
Medjl   1
N 21 minutes ago by Sadigly
Source: Netherlands TST for BxMo 2017 problem 4
A quadruple $(a; b; c; d)$ of positive integers with $a \leq b \leq c \leq d$ is called good if we can colour each integer red, blue, green or purple, in such a way that
$i$ of each $a$ consecutive integers at least one is coloured red;
$ii$ of each $b$ consecutive integers at least one is coloured blue;
$iii$ of each $c$ consecutive integers at least one is coloured green;
$iiii$ of each $d$ consecutive integers at least one is coloured purple.
Determine all good quadruples with $a = 2.$
1 reply
Medjl
Feb 1, 2018
Sadigly
21 minutes ago
interesting ineq
nikiiiita   5
N 29 minutes ago by nikiiiita
Source: Own
Given $a,b,c$ are positive real numbers satisfied $a^3+b^3+c^3=3$. Prove that:
$$\sqrt{2ab+5c^{2}+2a}+\sqrt{2bc+5a^{2}+2b}+\sqrt{2ac+5b^{2}+2c}\le3\sqrt{3\left(a+b+c\right)}$$
5 replies
nikiiiita
Jan 29, 2025
nikiiiita
29 minutes ago
Pythagorean new journey
XAN4   1
N 37 minutes ago by RagvaloD
Source: Inspired by sarjinius
The number $4$ is written on the blackboard. Every time, Carmela can erase the number $n$ on the black board and replace it with a new number $m$, if and only if $|n^2-m^2|$ is a perfect square. Prove or disprove that all positive integers $n\geq4$ can be written exactly once on the blackboard.
1 reply
XAN4
Today at 3:41 AM
RagvaloD
37 minutes ago
Path within S which does not meet itself
orl   5
N an hour ago by atdaotlohbh
Source: IMO 1982, Day 2, Problem 6
Let $S$ be a square with sides length $100$. Let $L$ be a path within $S$ which does not meet itself and which is composed of line segments $A_0A_1,A_1A_2,A_2A_3,\ldots,A_{n-1}A_n$ with $A_0=A_n$. Suppose that for every point $P$ on the boundary of $S$ there is a point of $L$ at a distance from $P$ no greater than $\frac {1} {2}$. Prove that there are two points $X$ and $Y$ of $L$ such that the distance between $X$ and $Y$ is not greater than $1$ and the length of the part of $L$ which lies between $X$ and $Y$ is not smaller than $198$.
5 replies
orl
Nov 11, 2005
atdaotlohbh
an hour ago
Romanian National Olympiad 1997 - Grade 9 - Problem 4
Filipjack   0
an hour ago
Source: Romanian National Olympiad 1997 - Grade 9 - Problem 4
Consider the numbers $a,b, \alpha, \beta \in \mathbb{R}$ and the sets $$A=\left \{x \in \mathbb{R} : x^2+a|x|+b=0 \right \},$$$$B=\left \{ x \in \mathbb{R} : \lfloor x \rfloor^2 + \alpha \lfloor x \rfloor + \beta = 0\right \}.$$If $A \cap B$ has exactly three elements, prove that $a$ cannot be an integer.
0 replies
Filipjack
an hour ago
0 replies
s(n) and s(n+1) divisible by m
Miquel-point   1
N an hour ago by RagvaloD
Source: Romanian IMO TST 1981, Day 2 P2
Let $m$ be a positive integer not divisible by 3. Prove that there are infinitely many positive integers $n$ such that $s(n)$ and $s(n+1)$ are divisible by $m$, where $s(x)$ is the sum of digits of $x$.

Dorel Miheț
1 reply
Miquel-point
3 hours ago
RagvaloD
an hour ago
Romanian National Olympiad 1997 - Grade 9 - Problem 2
Filipjack   0
an hour ago
Source: Romanian National Olympiad 1997 - Grade 9 - Problem 2
Find the range of the function $f: \mathbb{R} \to \mathbb{R},$ $$f(x)=\frac{3+2\sin x}{\sqrt{1+\cos x}+\sqrt{1-\cos x}}.$$
0 replies
Filipjack
an hour ago
0 replies
Giving n books when you have n*1 + 1*(2n+1) books
Miquel-point   0
an hour ago
Source: Romanian IMO TST 1981, Day 4 P5
At a maths contest $n$ books are given as prizes to $n$ students (each students gets one book). In how many ways can the organisers give these prizes if they have $n$ copies of one book and $2n+1$ other books each in one copy?


0 replies
1 viewing
Miquel-point
an hour ago
0 replies
Finding signs in a nice inequality of L. Panaitopol
Miquel-point   0
an hour ago
Source: Romanian IMO TST 1981, Day 4 P4
Consider $x_1,\ldots,x_n>0$. Show that there exists $a_1,a_2,\ldots,a_n\in \{-1,1\}$ such that
\[a_1x_1^2+a_2x_2^2+\ldots +a_nx_n^2\geqslant (a_1x_1+a_2x_2+\ldots +a_nx_n)^2.\]
Laurențiu Panaitopol
0 replies
Miquel-point
an hour ago
0 replies
Right tetrahedron of fixed volume and min perimeter
Miquel-point   0
2 hours ago
Source: Romanian IMO TST 1981, Day 4 P3
Determine the lengths of the edges of a right tetrahedron of volume $a^3$ so that the sum of its edges' lengths is minumum.

0 replies
Miquel-point
2 hours ago
0 replies
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
674 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
883 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