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
Wednesday at 3:18 PM
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
Wednesday at 3:18 PM
0 replies
Inspired by Polish 2025
sqing   0
2 minutes ago
Source: Own
Let $ a,b,c,d $ be reals such that $ a+b+c+d =0 $ and $ a^2+b^2+c^2+d^2=12.$ Prove that$$-3\leq  abcd\leq 9$$Let $ a,b,c,d $ be reals such that $ a+b+c+d =0 $ and $ abcd=-3.$ Prove that$$a^2+b^2+c^2+d^2 \geq 12$$Let $ a,b,c,d $ be reals such that $ a+b+c+d =0 $ and $ abcd=9.$ Prove that$$a^2+b^2+c^2+d^2 \geq 12$$
0 replies
1 viewing
sqing
2 minutes ago
0 replies
Problem 4
blug   0
2 minutes ago
Source: Polish Math Olympiad 2025 Finals P4
A positive integer $n\geq 2$ and a set $S$ consisting of $2n$ disting positive integers smaller than $n^2$ are given. Prove that there exists a positive integer $r\in \{1, 2, ..., n\}$ that can be written in the form $r=a-b$, for $a, b\in \mathbb{S}$ in at least $3$ different ways.
0 replies
blug
2 minutes ago
0 replies
Problem 3
blug   0
7 minutes ago
Source: Polish Math Olympiad 2025 Finals P3
Positive integer $k$ and $k$ colors are given. We will say that a set of $2k$ points on a plane is $colorful$, if it contains exactly 2 points of each color and if lines connecting every two points of the same color are pairwise distinct. Find, in terms of $k$ the least integer $n\geq 2$ such that: in every set of $nk$ points of a plane, no three of which are collinear, consisting of $n$ points of every color there exists a $colorful$ subset.
0 replies
blug
7 minutes ago
0 replies
D1010 : How it is possible ?
Dattier   15
N 13 minutes ago by maxal
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
15 replies
Dattier
Mar 10, 2025
maxal
13 minutes ago
No more topics!
weird looking system of equations
Valentin Vornicu   37
N Mar 30, 2025 by deduck
Source: USAMO 2005, problem 2, Razvan Gelca
Prove that the system \begin{align*}
x^6+x^3+x^3y+y & = 147^{157} \\
x^3+x^3y+y^2+y+z^9 & = 157^{147}
\end{align*} has no solutions in integers $x$, $y$, and $z$.
37 replies
Valentin Vornicu
Apr 21, 2005
deduck
Mar 30, 2025
weird looking system of equations
G H J
Source: USAMO 2005, problem 2, Razvan Gelca
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Valentin Vornicu
7301 posts
#1 • 10 Y
Y by Adventure10, HWenslawski, megarnie, Mango247, dikugrjfvufytdktfjymtd, and 5 other users
Prove that the system \begin{align*}
x^6+x^3+x^3y+y & = 147^{157} \\
x^3+x^3y+y^2+y+z^9 & = 157^{147}
\end{align*} has no solutions in integers $x$, $y$, and $z$.
This post has been edited 1 time. Last edited by Valentin Vornicu, Sep 27, 2005, 9:45 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
jmerry
12096 posts
#2 • 5 Y
Y by mijail, Adventure10, HWenslawski, Mango247, and 1 other user
Here's a solution.
First, add and subtract the equations to get
$(x^3+y+1)^2-1+z^9=147^{157}-157^{147}$
$(x^3-y)(x^3+y)-z^9=147^{157}-157^{147}$

Now, assume that $x,y,z$ are a solution and work mod 19. $147^{157}\equiv2$ and $157^{147}\equiv11,$ so
$(x^3+y+1)^2+z^9\equiv14$,
Since 9th powers are congruent to $\pm1$, either $(x^3+y+1)^2\equiv13$ or $(x^3+y+1)^2\equiv15$. Neither of these values is a square mod 19, so there is no solution and we are done.

Edit- I'm having trouble calculating. My previous argument used the wrong value for $147^{157}$. Since it worked, I didn't realize it was wrong at the time.
This post has been edited 1 time. Last edited by jmerry, Nov 2, 2016, 8:18 AM
Reason: Fixed a buggy bit of code
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
jmerry
12096 posts
#3 • 3 Y
Y by Adventure10, Mango247, ehuseyinyigit
One more correction: 0 is also a 9th power, 14 is also not a square. I don't know what it is about this problem, but I just can't calculate straight.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
darktreb
732 posts
#4 • 2 Y
Y by Adventure10, Mango247
The other viable solution which I used when I took the contest was considering things modulo 13.

Basically, the only possible residues mod 13 for cubes (and ninth powers) are 0, 1, 5, -1, -5, so by plugging these in as possible values for $x^3$ in the first system are those. Plugging them in gives corresponding values for $y$, but plugging them in to the second equation produces no viable solutions for $z^9$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
JSteinhardt
947 posts
#5 • 3 Y
Y by Adventure10, Mango247, Natrium
jmerry wrote:
One more correction: 0 is also a 9th power, 14 is also not a square. I don't know what it is about this problem, but I just can't calculate straight.

What was the rationale between choosing 13 and 19 as mods? Did you just keep trying ones and these had nice residues, or was there something that led you to use them? My first intuition was mod 3 and 7, then CRT into mod 21 and reach a contradiction (which worked, but took about 2.5 hours to get; luckily #1 was trivialized by massive Graph theory).
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Elemennop
1421 posts
#6 • 11 Y
Y by swimmer, THE.UNEXPECTED, Nelu2003, Kanep, myh2910, mijail, Adventure10, Bakhtier, Mango247, Natrium, Math_legendno12
In general, when you want to minimize the number of residues of a power $k$ in a modular congruence $m$, then you want to choose an $m$ such that $k|\phi(m)$. In this case, $k=9$, so we choose $19$ because $\phi(19)=18$, and $9|18$.

For $13$, it's less obvious.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Davron
484 posts
#7 • 2 Y
Y by Adventure10 and 1 other user
This problem is nice we had solved it with our teacher...

Davron Latipov
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Davron
484 posts
#8 • 3 Y
Y by vsathiam, Adventure10, Mango247
Elemennop wrote:
In general, when you want to minimize the number of residues of a power $k$ in a modular congruence $m$, then you want to choose an $m$ such that $k|\phi(m)$. In this case, $k=9$, so we choose $19$ because $\phi(19)=18$, and $9|18$.

For $13$, it's less obvious.

where can i get a file or a link to study this method ?

Sincerely Davron :)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
kops723
87 posts
#9 • 1 Y
Y by Adventure10
Hmm.. I was doing this problem as practice and ended up with a really long winded solution, which I believe works but would like to confirm this if anyone would be so kind.

Consider equation 1, factoring we have:
$ (x^3+y)(x^3+1) = 147^{157}$
Equation 2 factors to:
$ (x^3+y)(y+1) = 157^{147}-z^9$
Since both LHS's have a common term, we now examine it. In particular, we know
$ x^3+y|147^{157}$
And so we have 3 cases:

Case 1:
$ x^3+1=\pm 1$
Then $ \pm(x^3+1)=147^{157}$
So either $ 147^{157}+1,147^{157}-1$ is a perfect cube. In addition, 147 is odd, so both of those terms are even, so they must be divisible by 8. However, it is easy to check that neither one is ($ 147^{157} \equiv 147 \equiv 3 \pmod 8$).

Case 2:
$ 7|x^3+y$
Plugging this into the second equation, we see that
$ 7|157^{147}-z^9 \Rightarrow z^9 \equiv 157^{147} \Rightarrow z^3 \equiv 157^{49} \equiv 3^{49} \equiv 3 \pmod 7$
However, any perfect cube modulo 7 must be congruent to one of $ -1,0,1$ by Fermat, so we have a contradiction.

Case 3:
$ 3|x^3+y$
This is the most painful case... but we will proceed with algebraic manipulations on equation 1:
${ \pm 3^k(x^3+1)=147^{157}
x^3+1=\pm \frac{146^{157}}{3^k}}$
So there must exist a perfect cube of the form:
$ 3^{157-k}7^{2*157} \pm 1$
This must be even, so must be divisible by 8, and we have
$ 3^{157-k}7^{2*157} \equiv 3^{\{0,1\}}$
Thus, if we are to have a perfect cube, 157-k must be even, and the "$ \pm$" must denote a minus one. We now have:
$ 3^{2r}7^{2*157} - 1=a^3$ for some a. This is a contradiction to Mihailescu's Theorem so we're done.

Did I screw up stupidly anywhere?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
supercomputer
491 posts
#10 • 2 Y
Y by Adventure10, Mango247
Hi I was just wondering; how do you think of using $\pmod{13}$?
Also for the CRT solution that @JSteinhardt mentioned, would you just find all possibilities for $x,y,z$ $\pmod{3}$ and $\pmod{7}$ and then CRT them and show that the resulting $\pmod{21}$ congruences don't work?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
flyingpurplepeopleeater
333 posts
#11 • 2 Y
Y by Adventure10, Mango247
i used mod 9 and it seems to have worked fine...
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
rkm0959
1721 posts
#12 • 5 Y
Y by vsathiam, ooozeqes, myh2910, mijail, Adventure10
Add the two equations and work modular $19$.
We get $(x^3+y+1)^2+z^9 \equiv 14 \pmod{19}$, and $z^9 \equiv 0, \pm 1 \pmod{19}$.
However, we can check the quadratic residues $\left(\frac{13}{19}\right), \left(\frac{14}{19}\right), \left(\frac{15}{19}\right)$ 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.
arshiya381
158 posts
#14 • 1 Y
Y by Adventure10
Valentin Vornicu wrote:
Prove that the system \begin{align*}
x^6+x^3+x^3y+y & = 147^{157} \\
x^3+x^3y+y^2+y+z^9 & = 157^{147}
\end{align*}has no solutions in integers $x$, $y$, and $z$.

proving that $x^3+y=3^k$ will easily solve the question since then $x^3+1 \geq 7^{314}*3$ which is clearly bigger than $3^{147}$ so it will give us a contradiction and well proving that is just by checking modulo 7 in the second equation
This post has been edited 2 times. Last edited by arshiya381, Feb 8, 2020, 8:27 PM
Reason: stupid mistake
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
SenorIncongito
307 posts
#15
Y by
How does one know they should work $mod$ $19$?
This post has been edited 1 time. Last edited by SenorIncongito, Oct 22, 2020, 9:52 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Pitagar
67 posts
#24
Y by
Another a lot lenghtier approach:
Factoring the first equation gives you $(x^3 + y)(x^3 + 1)=147^{157}=3^{157}\cdot 7^{314} $ . Now you get that there exists nonnegative integers $a,b$ for which $(x^3+1)=\pm 3^{a}\cdot 7^{b}$, which when solving the diophantine equation gives you some little solutions for $x$($x=0,2,-2,-4$) and also the corresponding values of $y$, which are not very hard to check off using the second equation and small modulos(like 7 and 9).
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
lahmacun
259 posts
#25
Y by
SenorIncongito wrote:
How does one know they should work $mod$ $19$?

Well, if $ ab=p-1 $ where $p$ is an odd prime, then $a$-th powers give exactly $b$ non-zero remainders mod $p$.
In particular, $9*2=19-1$, so ninth powers give only a few remainders (0,1,-1) and $z$ appears only in $z^9$, so it is reasonable to take mod 19.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
GeronimoStilton
1521 posts
#26
Y by
yuck

We actually compute the choices of $x$ with $x^3+1\mid 147^{157}$, which must occur if $147^{157}=x^6+x^3+x^3y+y = (x^3+y)(x^3+1)$. Remark that $x>1$ because $x=1$ fails. Observe that the only prime factors of $x^3+1$ are $3$ and $7$. Observe that $9\nmid x^2-x+1$ because $3\nmid x^2-x+1$ if $x\equiv 0,1\pmod 3$ and $9$ does not divide any of $2^2-2+1=3,5^2-5+1=21,8^2-8+1=57$. Remark that $3\mid x+1$ if and only if $3\mid x^2-x+1$. Moreover,
\[\gcd(x+1,x^2-x+1) = \gcd(x+1,(-1)^2-(-1)+1) = \gcd(x+1,3),\]so if $3$ did not divide $x+1$ it would have to be $1$, as $x^2-x+1$ would be at least $3^2-3+1=7$ and therefore divisible by $7$ because it is not divisible by $3$. This is absurd, so $3\mid x+1$. By the gcd condition, we can write $x+1=3^p$ and $x^2-x+1=3\cdot 7^q$ for some integers $p\ge 1$ and $q\ge 0$. Write
\[3\cdot 7^q = (3^p-1)^2 - (3^p-1)+1 = 3^{2p}-3^{p+1}+3.\]This implies $7^q-1 = 3^{2p-1}- 3^p = (3^{p-1}-1)3^p$. Assume for now that $q>0$. It is clear that $2p-1> q$ because otherwise $7^q = 3^{2p-1}-3^p+1 \le 3^{2p-1} \le 3^q$, absurd. But we also have $p = \nu_3(q)+1$ by LTE. Thus $2\log_e q + 1\ge 2\log_3 q+1\ge 2\nu_3(q)+1> q$. Remark that $2\log_e q+1-q$ has derivative $\frac 2q-1$, so it is decreasing if $q>2$. Moreover, the inequality does not hold at $q=5$ because we would have to have $2\log_e 5 \ge 4$ otherwise, which would be true if and only if $e^2 \le 5$. But in fact $e\ge 2.7$, so indeed the result does not hold for $q=5$. For $q=1,2,3,4$ manually check, noting that at $q=1,2,3,4$ we get $2\nu_3(q)<q$. Thus $q=0$, so $3^{p-1}-1=0$, meaning $p=1$. This yields the one solution of $x=2$. However, we did not consider the situation in which $x$ is negative or zero (in which case $x=0$ works). In that case, let $a=-x$ and observe that for essentially the same reasons as before, $a^3-1=(a-1)(a^2+a+1)$ must either have $a=2$ (which is a solution) or $a=3^p$ and $a^2+a+1 = 3\cdot 7^q$. By the same machinations as before, we get $(3^{p-1}+1)3^p = 7^q-1$. Again, we have $p = \nu_3(q)+1$. This time we remark that either $p=1$ (which yields no solution) or $7^q = 3^{2p-1}+3^p+1< 3^{2p-1}+3^{p+1} < 3^{2p}$, meaning that $q< 2p = 2\nu_3(q)+2$. That is, $q\le 2\nu_3(q)+1\le 2\log_3 q+1 \le 2\log_e q+1$. Again, $q<5$ by the argument from before, so $q\in \{1,2,3,4\}$ because $q=0$ would be absurd. Again, note that $q$ cannot be in $\{2,4\}$ because then $q\le 1=2\nu_3(q)+1$, absurd. If $q=1$ we get $p=1$ so $a=4$ and we do not have $7^3 = 3^3 + 3^2 + 1$. Thus the possible values of $x$ are $\{2,0,-2,-4\}$.

Write $147^{157} = (x^3+1)(x^3+y),157^{147}=(x^3+y)(y+1)+z^9$. It is clear that $27\mid x^3+y$, so
\[z^9\equiv 157^{147}\equiv 22^{147}\equiv 22^3\equiv (-5)^3 \equiv -125\equiv 10\pmod{27}.\]Since $10$ is not a $9$-th power modulo $27$, 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.
puntre
159 posts
#27 • 2 Y
Y by MatBoy-123, PickleSauce
Wait, isn't this just $\bmod{4}$ ?

It's not hard to prove that $x,y,z$ are all odd. (by subtracting the first equation by the second)
Hence, by Euler;
\begin{align*}
x+xy+y & \equiv 2 \\
x+xy+y+z & \equiv 0
\end{align*}So $z\equiv 2$ and $x+y+xy\equiv 2\implies (x+1)(y+1)\equiv 3$.
This means the pair $(x+1,y+1)\equiv (1,3),(3,1)\implies x,y$ are even integers.
But $x^6+x^3+x^3y+y = 147^{157}$ is not, which is a contradiction.
This post has been edited 2 times. Last edited by puntre, Apr 23, 2022, 8:05 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
megarnie
5552 posts
#28
Y by
Add the two equations.

$x^6+2x^3+2x^3y+y^2+2y+z^9=147^{157}+157^{147}$, so \[(x^3+y)(x^3+y+2)+z^9=147^{157}+157^{147}\]
We work in $\pmod{19}$. First, we have $147^{157}\equiv 14^{13}\equiv 2\pmod {19}$ and $157^{147}\equiv 5^3\equiv 11\pmod{19}$.

So $(x^3+y)(x^3+y+2)+z^9\equiv 13\pmod{19}$.

Clearly $z^9\equiv \{-1,0,1\}\pmod{19}$.

Case 1: $z^9\equiv 1\pmod{19}$.
Then $(x^3+y)(x^3+y+2)\equiv 12\pmod{19}\implies (x^3+y+1)^2\equiv 13\pmod{19}$. This is a contradiction because $13$ is not a QR mod $19$.

Case 2: $z^9\equiv 0\pmod{19}$.
Then $(x^3+y+1)^2\equiv 14\pmod{19}$. $14$ is not QR mod $19$.

Case 3: $z^9\equiv -1\pmod{19}$.
Then $(x^3+y+1)^2\equiv 15\pmod{19}$. $15$ is not QR mod $19$.


We have exhausted all cases, so there are no solutions.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ZETA_in_olympiad
2211 posts
#29
Y by
We can show in any one preferable modular and do casework to show that there is no solution for such a system. Nonetheless I did in $\pmod {13}.$
This post has been edited 1 time. Last edited by ZETA_in_olympiad, Apr 23, 2022, 7:37 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
kootrapali
4527 posts
#30 • 2 Y
Y by Mango247, Mango247
Upon factoring, our equations become
$$(x^3+1)(x^3+y)=147^{157}$$$$(y+1)(x^3+y)+z^9=157^{147}$$We work in modulo $19$. Note that $147^{157}\equiv 2$ (mod $19$) and $157^{147}\equiv 11$ (mod $19$).
The cubic residues mod $19$ are $0,1,7,8,11,12,18$, so the corresponding residues of $x^3+1$ are $1,2,8,9,12,13$, since $147^{157}$ isn’t divisible by $19$. Then we must have $x^3+y$ have corresponding possible residues of $2,1,5,15,16,6$, yielding corresponding residues of $y+1$ as $3,1,18,8,6,14$.

Then, in our second equation, the possible residues of $(y+1)(x^3+y)$ mod $19$ are $1,6,8,14$, so we must have $z^3$ equivalent to $3,5,10,16$ mod $19$, but since none of these are nonic residues, there are no integer solutions to our system, as desired.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
bobthegod78
2982 posts
#31 • 1 Y
Y by Mango247
Pretty weird problem.

Add up both equations to get $(x^3+y+1)^2 + z^9 = 147^{157} + 157^{147} +1$. We can take both sides mod $19$. We know that $z^9 \equiv -1, 0, 1 \pmod{19}$ since $z^{18} \equiv 0,1 \pmod{19}$. The right side can be found pretty easily mod 19: $$147^{157}+157^{147} + 1 \equiv (-5)^{13} + 5^{3} +1 \equiv 2 + 11 + 1\equiv 14 \pmod{19}.$$The quadratic residues mod 19 are $0, 1, 4, 9, 16, 6, 17, 11, 7, 5$. We can see that adding $0, -1, 1$ to any of these will not yield $14$, so it is impossible.

It is funny how each individual equation is unnecessary as the problem can be solved using just the sum.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
john0512
4176 posts
#32
Y by
Adding the two equations and completing the square, we have $$(x^3+y+1)^2+z^9=147^{157}+157^{147}+1.$$We take mod 19. By FLT, the right side becomes $14^{13}+5^3+1$, and we can compute $14^{13}\equiv 14^8\cdot 14^4\cdot 14\equiv14\cdot-2\cdot4\equiv 2,$ so $14^{13}+5^3+1\equiv 14\pmod 19.$ Therefore, we then have $$(x^3+y+1)^2+z^9\equiv 14\pmod {19}.$$Since $(z^9)^2\equiv 0,1\pmod {19}$, we have $z^9\equiv -1,0,1\pmod {19}$. However, neither of $13,14,15$ are quadratic residues mod 19, so there are no solutions and 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.
kamatadu
465 posts
#33 • 4 Y
Y by IAmTheHazard, GeoKing, HoripodoKrishno, AlexCenteno2007
Her: He must be cheating on me :mad:
Meanwhile me: Fakesolving this problem for 4 times straight and then finally making up my mind to case bash 18 total cases and literally compute thousands of modulos for 4 straight hours :ninja:

here is my solution that literally bases our every possible modulo all in a single problem you might have ever seen before :ninja:

Firstly manipulate the equations to get, $(x^3+1)(x^3+y)=147^{157}$ and $(y+1)(x^3+y)+z^9=157^{147}$.

We have $\boxed{x^9\equiv\{0,\pm 1\}\pmod{27}}$ and $\boxed{x^9\equiv\{0,\pm 1\}\pmod{19}}$, which can be verified as $\varphi(27)=\varphi(19)=18$. Also, $\boxed{x^3\in\{0,1,7,8,11,12,18\}\pmod{19}}$ and $\boxed{x^3\in\{0,1,8,10,17,19,26\}\pmod{27}}$, which can be verified by case bashing each and every $\mod 19$ and $\mod 27$. Now if $27\mid x^3+y$, then taking the second equation $\mod{27}$ gives contradiction.

Also notice that $\operatorname{ord}_{19}(3)=18$, $\operatorname{ord}_{19}(7)=3$ and $\operatorname{ord}_{27}(7)=3$. Now we case bash for $x^3+y$, with the powers of $3$ in each one of them and powers of $7$ taken $\mod 3$.

Apart from this, we also have,
\begin{align*}
    147^{157}&\equiv 2\pmod{19}\\
    157^{147}&\equiv 11\pmod{19}\\
    147^{157}&\equiv 0\pmod{27}\\
    157^{147}&\equiv 10\pmod{27}.
\end{align*}
$\textbf{\underline{Case 1.1.1}: }x^3+y=1\cdot 7^{2\cdot 157-3i}$ and $x^3+1=3^{157}\cdot 7^{3i}$.

Gives $x^3\equiv 7\pmod{19}$ and $y\equiv 4\pmod{19}$. But this contradicts $z^9\pmod{19}$.
$\textbf{\underline{Case 1.1.2}: }x^3+y=3\cdot 7^{2\cdot 157-3i}$ and $x^3+1=3^{156}\cdot 7^{3i}$.

Gives $x^3\equiv 8\pmod{19}$ and $y\equiv 6\pmod{19}$. But this contradicts $z^9\pmod{19}$.
$\textbf{\underline{Case 1.1.3}: }x^3+y=9\cdot 7^{2\cdot 157-3i}$ and $x^3+1=3^{155}\cdot 7^{3i}$.

Second one fails $\mod 19$.
$\textbf{\underline{Case 1.2.1}: }x^3+y=1\cdot 7^{2\cdot 157-3i-1}$ and $x^3+1=3^{157}\cdot 7^{3i+1}$.

Second one fails $\mod 19$.
$\textbf{\underline{Case 1.2.2}: }x^3+y=3\cdot 7^{2\cdot 157-3i-1}$ and $x^3+1=3^{156}\cdot 7^{3i+1}$.

Second one fails $\mod 19$.
$\textbf{\underline{Case 1.2.3}: }x^3+y=9\cdot 7^{2\cdot 157-3i-1}$ and $x^3+1=3^{155}\cdot 7^{3i+1}$.

Gives $x^3\equiv 1\pmod{19}$ and $y\equiv 5\pmod{19}$. But this contradicts $z^9\pmod{19}$.
$\textbf{\textcolor{blue}{\underline{Case 1.3.1}:} }x^3+y=1\cdot 7^{2\cdot 157-3i-2}$ and $x^3+1=3^{157}\cdot 7^{3i+2}$.

Gives $x^3\equiv 11\pmod{19}$ and $y\equiv 9\pmod{19}$. This works.
$\textbf{\underline{Case 1.3.2}: }x^3+y=3\cdot 7^{2\cdot 157-3i-2}$ and $x^3+1=3^{156}\cdot 7^{3i+2}$.

Second one fails $\mod 19$.
$\textbf{\underline{Case 1.3.3}: }x^3+y=9\cdot 7^{2\cdot 157-3i-2}$ and $x^3+1=3^{155}\cdot 7^{3i+2}$.

Second one fails $\mod 19$.
$\textbf{\underline{Case 2.1.1}: }x^3+y=-1\cdot 7^{2\cdot 157-3i}$ and $x^3+1=-3^{157}\cdot 7^{3i}$.

Second one fails $\mod 19$.
$\textbf{\underline{Case 2.1.2}: }x^3+y=-3\cdot 7^{2\cdot 157-3i}$ and $x^3+1=-3^{156}\cdot 7^{3i}$.

Second one fails $\mod 19$.
$\textbf{\underline{Case 2.1.3}: }x^3+y=-9\cdot 7^{2\cdot 157-3i}$ and $x^3+1=-3^{155}\cdot 7^{3i}$.

Second one fails $\mod 19$.
$\textbf{\underline{Case 2.2.1}: }x^3+y=-1\cdot 7^{2\cdot 157-3i-1}$ and $x^3+1=-3^{157}\cdot 7^{3i+1}$.

Gives $x^3\equiv 0\pmod{19}$ and $y\equiv 12\pmod{19}$. But this contradicts $z^9\pmod{19}$.
$\textbf{\underline{Case 2.2.2}: }x^3+y=-3\cdot 7^{2\cdot 157-3i-1}$ and $x^3+1=-3^{156}\cdot 7^{3i+1}$.

Gives $x^3\equiv 12\pmod{19}$ and $y\equiv 5\pmod{19}$. But this contradicts $z^9\pmod{19}$.
$\textbf{\underline{Case 2.2.3}: }x^3+y=-9\cdot 7^{2\cdot 157-3i-1}$ and $x^3+1=-3^{155}\cdot 7^{3i+1}$.

Second one fails $\mod 19$.
$\textbf{\underline{Case 2.3.1}: }x^3+y=-1\cdot 7^{2\cdot 157-3i-2}$ and $x^3+1=-3^{157}\cdot 7^{3i+2}$.

Second one fails $\mod 19$.
$\textbf{\underline{Case 2.3.2}: }x^3+y=-3\cdot 7^{2\cdot 157-3i-2}$ and $x^3+1=-3^{156}\cdot 7^{3i+2}$.

Second one fails $\mod 19$.
$\textbf{\underline{Case 2.3.3}: }x^3+y=-9\cdot 7^{2\cdot 157-3i-2}$ and $x^3+1=-3^{155}\cdot 7^{3i+2}$.

Second one fails $\mod 19$.
We just have $\textbf{\textcolor{blue}{\underline{Case 1.3.1}:} }x^3+y=1\cdot 7^{2\cdot 157-3i-2}$ and $x^3+1=3^{157}\cdot 7^{3i+2}$ to check :) .

Now for this case, we get $x^3\equiv -1\pmod{27}$ and $y\equiv 2\pmod{27}$. Now put this in the initial second equation and we now get a contradiction $z^9\pmod{27}$ YAYY!!
This post has been edited 3 times. Last edited by kamatadu, Feb 25, 2023, 10:24 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
EthanWYX2009
842 posts
#34
Y by
We can get $\begin{cases}147^{157}=(x^3+1)(x^3+y)\\157^{147}=(y+1)(x^3+y)+z^9\end{cases}$.
Add up the two equations, we have $(x^3+y)(x^3+y+2)+z^9=147^{157}+157^{147}$.
Let $n=x^3+y+1$, then $n^2+z^9=147^{157}+157^{147}+1\equiv 14\pmod {19}$.
However, as $z^9\equiv\pm 1\pmod{19}$, $n^2\equiv 0,1,4,9,16,6,17,11,7,5\pmod {19}$, it is not true.$\blacksquare$
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
#35 • 1 Y
Y by chenghaohu
The key is to take mod $19$. Adding the two equations, $$(x^3+y+1)^2+z^9 \equiv 14 \pmod {19}.$$Now as $z^9 \equiv -1, 0, 1 \pmod {19}$, we must have $(x^3+y+1)^2 \equiv 13, 14, 15 \pmod {19}$. But none of these are quadratic residues.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
chenghaohu
69 posts
#36
Y by
Add the equations, we see that it can be factored as (x^3 +y +1)^2 + z^9 = 147^157 +157^147 +1. Note that z^9 In mod 19 is either 1 or -1 or 0. So this means that (x^3 +y+1)^2 is 13, 14, or 15 mod 19. Non of this are quadratic residues so there are 0 solutions.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
huashiliao2020
1292 posts
#37
Y by
evan why rate 10 MOHS :clap: :ewpu:

Adding the equations, $$(x^3+y+1)^2+z^9 \equiv 14 \pmod {19};\quad z^9 \equiv\{ -1, 0, 1 \}\implies (x^3+y+1)^2 \equiv \{13, 14, 15\} \pmod {19},$$but none of these are quadratic residues, contradiction, so there are no solutions.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
peppapig_
279 posts
#38 • 1 Y
Y by sargamsujit
Note that by factoring, we have that
\[(x^3+1)(x^3+y)=147^{157}\]\[(y+1)(x^3+y)+z^9=157^{147}.\]Since the latter is odd and $x$ and $y$ are integers, we have that $x$ must be even (because $x^3+1$ must be odd), meaning that $x^3\equiv 0 \mod 8$. Since $147^{157}\equiv3^{157}\equiv3\mod8$, we have that
\[(x^3+1)(x^3+y)=147^{157}\equiv x^3+y \equiv 1+y \equiv 3 \mod 8 \iff y\equiv 2\mod8.\]Finally, note that $157^{147}\equiv5^{157}\equiv 5\mod 8$. Since both $y+1$ and $x^3+y$ are $3$ mod $8$, we have that $(y+1)(x^3+y)$ is $1$ mod $8$. Since
\[(y+1)(x^3+y)+z^9=157^{147} \iff (y+1)(x^3+y)+z^9\equiv5 \mod8 \iff 1+z^9\equiv 5\mod8,\]this gives us that $z^9\equiv 4\mod8$, which is impossible. This is because the equation implies that $z$ is even, however, if $z$ was even, that would mean that $z^9$ would be $0$ mod $8$, a contradiction. Therefore there are no integer solutions to this system of equations, finishing the problem.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
shendrew7
793 posts
#39
Y by
Factoring and adding the two equations, we get
\[(x^3+y+1)^2 = 147^{157}+157^{147}+1-z^9.\]
The use for modulo 19 becomes apparent, as $z^9 \pmod{19} \equiv \{-1,0,1\}$. Therefore the RHS is equivalent to $\{13,14,15\} \text{ mod } 19$, none of which quadratic residues modulo 19. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
joshualiu315
2513 posts
#40
Y by
Adding the two equations and factoring, we get

\[(x^3+y+1)^2 + z^9 = 147^{157}+157^{147}+1\]\[\implies (x^3+y^2+1)^2 \equiv \{13,14,15\} \pmod{19}.\]
This results in no integer solutions as none of them are quadratic nonresidues modulo $19$. $\square$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dolphinday
1318 posts
#41
Y by
Add both equations and add $1$ to both sides to get
$x^6 + 2x^3y + 2x^3 + y^2 + 2y + 1 + z^9 = 147^{157} + 157^{147} + 1$.
Factoring gets us
$\newline$
\[(x^3 + y + 1)^2 + z^9 = 147^{157} + 157^{147} + 1\]Taking the expression modulo $19$ results in
\[(x^3 + y + 1)^2 + z^9 \equiv 14\pmod{19}\]Notice that All QRs of $z^k$ modulo $2k + 1$ are $2k$, $0$, and $1$.
So then we have
\[(x^3 + y + 1)^2 + z^9 \equiv \{13, 14, 15\}\pmod{19}\]None of these being a QR, so there are no solutions.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
de-Kirschbaum
187 posts
#42
Y by
Really profound problem.

Summing both equations and manipulating we end up with $$(x^3+y+1)^2+z^9-1 = 157^{147}+147^{157}$$
Now consider $\mod{19}$, in which case we can restrict $z^9$ to $\{1,0,-1\}$. Then we can calculate by hand the QR of $\mod{19}$ which is $\{0,1,4,9,6,17,30,7,5\}$. Then we can calculate that $157^{147} \equiv 30 \equiv 11 \mod{19}$ and $147^{157} \equiv 17^3(-5) \equiv 40 \equiv 2 \mod{19}$. So we need $\{1,0,-1\}+\{0,1,4,9,6,17,30,7,5\} \equiv 14 \mod{19}$ 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.
Danielzh
481 posts
#44
Y by
Motivation
Add and subtract with equation. Note that when adding, you get a format for perfect squares like $x^6+2x^3$ and $y^2+2y$, but you also have $2x^3y$ left over. Thus, can we combine this into one expression? Yes! Let's try $(x^3+y+1)^2$. Now, what modulo do we take? After testing classics such as $3,7,9$, let's pick one such that $p-1$ is divisible by $9$ by FLT. Let's pick base $19$!

Solution
Continuing,

\begin{align*}
(x^3+y+1)^2 +z^9 \equiv 14 \pmod{19} \\ 
\end{align*}
Now note that $z^9 \equiv 0,1,-1 \pmod{19}$. Thus, we get $$(x^3+y+1)^2 +z^9 \equiv 14 \pmod{19}$$which is not possible.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
megahertz13
3181 posts
#45
Y by
what is this :P

Adding the equations and adding $1$ to both sides gives $$z^9+x^6+2x^3y+2x^3+y^2+2y+1=147^{157}+157^{147}+1$$$$\implies z^9+(x^3+y+1)^2=147^{157}+157^{147},$$but $\pmod {19}$ there are no solutions.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Maximilian113
523 posts
#46
Y by
Adding the equations yields $(x^3+y+1)^2+z^9 = 147^{157}+157^{147}+1.$ However, $z^9 \equiv \{-1, 0, 1\} \pmod{19},$ so it follows that $$(x^3+y+1)^2 \equiv \{13, 14, 15 \} \pmod{19}.$$However, none of these are quadratic residues mod $19,$ so we are done. QED
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Marcus_Zhang
965 posts
#47
Y by
Super easy but why mod 19...
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
deduck
186 posts
#48
Y by
@above for me hardest part was realizing the factorization and easy part was taking mod 19 cause wut else are we gonna do with z^9 xd
Z K Y
N Quick Reply
G
H
=
a