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
Number Theory Chain!
JetFire008   58
N 10 minutes ago by Primeniyazidayi
I will post a question and someone has to answer it. Then they have to post a question and someone else will answer it and so on. We can only post questions related to Number Theory and each problem should be more difficult than the previous. Let's start!

Question 1
58 replies
JetFire008
Apr 7, 2025
Primeniyazidayi
10 minutes ago
Simply equation but hard
giangtruong13   0
23 minutes ago
Find all integer pairs $(x,y)$ satisfy that: $$(x^2+y)(y^2+x)=(x-y)^3$$
0 replies
1 viewing
giangtruong13
23 minutes ago
0 replies
Silly Sequences
whatshisbucket   25
N 25 minutes ago by bin_sherlo
Source: ELMO 2018 #2, 2018 ELMO SL N3
Consider infinite sequences $a_1,a_2,\dots$ of positive integers satisfying $a_1=1$ and $$a_n \mid a_k+a_{k+1}+\dots+a_{k+n-1}$$for all positive integers $k$ and $n.$ For a given positive integer $m,$ find the maximum possible value of $a_{2m}.$

Proposed by Krit Boonsiriseth
25 replies
whatshisbucket
Jun 28, 2018
bin_sherlo
25 minutes ago
Advanced topics in Inequalities
va2010   8
N 29 minutes ago by sqing
So a while ago, I compiled some tricks on inequalities. You are welcome to post solutions below!
8 replies
va2010
Mar 7, 2015
sqing
29 minutes ago
Divisibility NT FE
CHESSR1DER   12
N 43 minutes ago by internationalnick123456
Source: Own
Find all functions $f$ $N \rightarrow N$ such for any $a,b$:
$(a+b)|a^{f(b)} + b^{f(a)}$.
12 replies
CHESSR1DER
Monday at 7:07 PM
internationalnick123456
43 minutes ago
Let \( a_1, a_2, \dots, a_n \) and \( b_1, b_2, \dots, b_n \) be nonzero real nu
Jackson0423   0
an hour ago
Let \( a_1, a_2, \dots, a_n \) and \( b_1, b_2, \dots, b_n \) be nonzero real numbers satisfying
\[
a_1^2 b_1^2 (a_1 + b_1) + a_2^2 b_2^2 (a_2 + b_2) + \cdots + a_n^2 b_n^2 (a_n + b_n) \leq 7,
\]\[
\frac{1}{a_1} + \cdots + \frac{1}{a_n} = \frac{1}{4}, \quad \frac{1}{b_1} + \cdots + \frac{1}{b_n} = \frac{1}{3}.
\]Find the maximum value of
\[
a_1 b_1 + a_2 b_2 + \cdots + a_n b_n.
\]
0 replies
Jackson0423
an hour ago
0 replies
Let \[ P(x) = a_0 + a_1 x^2 + a_2 x^4 + \cdots + a_{10} x^{20} \] be a polynom
Jackson0423   0
an hour ago
Let
\[
P(x) = a_0 + a_1 x^2 + a_2 x^4 + \cdots + a_{10} x^{20}
\]be a polynomial of degree 20 with only even powers of \( x \).
Let the roots of \( P(x) \) be \( x_1, x_2, \dots, x_{20} \).
Given that
\[
(x_1^2 + 1)(x_2^2 + 1) \cdots (x_{20}^2 + 1) = 2025,
\]find the **minimum value** of \( P(1) \).
``
0 replies
Jackson0423
an hour ago
0 replies
D1010 : How it is possible ?
Dattier   16
N an hour ago by Dattier
Source: les dattes à Dattier
Is it true that$$\forall n \in \mathbb N^*, (24^n \times B \mod A) \mod 2 = 0 $$?

A=1728400904217815186787639216753921417860004366580219212750904
024377969478249664644267971025952530803647043121025959018172048
336953969062151534282052863307398281681465366665810775710867856
720572225880311472925624694183944650261079955759251769111321319
421445397848518597584590900951222557860592579005088853698315463
815905425095325508106272375728975

B=2275643401548081847207782760491442295266487354750527085289354
965376765188468052271190172787064418854789322484305145310707614
546573398182642923893780527037224143380886260467760991228567577
953725945090125797351518670892779468968705801340068681556238850
340398780828104506916965606659768601942798676554332768254089685
307970609932846902
16 replies
Dattier
Mar 10, 2025
Dattier
an hour ago
Define a sequence \( a(n) \) by the recurrence \[ a(n) = \left| a(n-1) - a(n-2)
Jackson0423   0
an hour ago
Define a sequence \( a(n) \) by the recurrence
\[
a(n) = \left| a(n-1) - a(n-2) \right|
\]for all \( n \geq 3 \), with initial values \( a(1) = m \), \( a(2) = n \), where \( m, n \in \mathbb{Z} \).
Show that for any integers \( m, n \), there exists a positive integer \( k \) such that
\[
a(i) = a(i+3)
\]for all integers \( i \geq k \).
0 replies
Jackson0423
an hour ago
0 replies
Inspired by old results
sqing   1
N an hour ago by sqing
Source: Own
Let $ a,b \geq 0 $ and $ a^2+b^2+a+b \geq 4 .$ Prove that$$ \frac{1}{a^2+b+1}+\frac{1}{b^2+a+1}+\frac{1}{a+b+1} \leq  \frac{7\sqrt{17}-1}{26}$$
1 reply
sqing
an hour ago
sqing
an hour ago
Let \( a, b, c \) be positive real numbers satisfying \[ a^2 + c^2 = b(a + c). \
Jackson0423   0
an hour ago
Let \( a, b, c \) be positive real numbers satisfying
\[
a^2 + c^2 = b(a + c).
\]Let
\[
m = \min \left( \frac{a^2 + ab + b^2}{ab + bc + ca} \right).
\]Find the value of \( 2024m \).
0 replies
Jackson0423
an hour ago
0 replies
Two sets
steven_zhang123   6
N an hour ago by lgx57
Given \(0 < b < a\), let
\[
A = \left\{ r \, \middle| \, r = \frac{a}{3}\left(\frac{1}{x} + \frac{1}{y} + \frac{1}{z}\right) + b\sqrt[3]{xyz}, \quad x, y, z \in \left[1, \frac{a}{b}\right] \right\},
\]and
\[
B = \left[2\sqrt{ab}, a + b\right].
\]
Prove that \(A = B\).
6 replies
steven_zhang123
Today at 7:44 AM
lgx57
an hour ago
Problem 2 (First Day)
Valentin Vornicu   82
N an hour ago by Ihatecombin
Find all polynomials $f$ with real coefficients such that for all reals $a,b,c$ such that $ab+bc+ca = 0$ we have the following relations

\[ f(a-b) + f(b-c) + f(c-a) = 2f(a+b+c). \]
82 replies
Valentin Vornicu
Jul 12, 2004
Ihatecombin
an hour ago
24 Aug FE problem
nicky-glass   2
N an hour ago by HuongToiVMO
Source: Baltic Way 1995
$f:\mathbb R\setminus \{0\} \to \mathbb R$
(i) $f(1)=1$,
(ii) $\forall x,y,x+y \neq 0:f(\frac{1}{x+y})=f(\frac{1}{x})+f(\frac{1}{y}) : P(x,y)$
(iii) $\forall x,y,x+y \neq 0:(x+y)f(x+y)=xyf(x)f(y) :Q(x,y)$
$f=?$
2 replies
nicky-glass
Aug 24, 2016
HuongToiVMO
an hour ago
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
698 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
1243 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
62 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
3442 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
887 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
388 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
261 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
343 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