Summer is a great time to explore cool problems to keep your skills sharp!  Schedule a class today!

G
Topic
First Poster
Last Poster
k a May Highlights and 2025 AoPS Online Class Information
jlacosta   0
May 1, 2025
May is an exciting month! National MATHCOUNTS is the second week of May in Washington D.C. and our Founder, Richard Rusczyk will be presenting a seminar, Preparing Strong Math Students for College and Careers, on May 11th.

Are you interested in working towards MATHCOUNTS and don’t know where to start? We have you covered! If you have taken Prealgebra, then you are ready for MATHCOUNTS/AMC 8 Basics. Already aiming for State or National MATHCOUNTS and harder AMC 8 problems? Then our MATHCOUNTS/AMC 8 Advanced course is for you.

Summer camps are starting next month at the Virtual Campus in math and language arts that are 2 - to 4 - weeks in duration. Spaces are still available - don’t miss your chance to have an enriching summer experience. There are middle and high school competition math camps as well as Math Beasts camps that review key topics coupled with fun explorations covering areas such as graph theory (Math Beasts Camp 6), cryptography (Math Beasts Camp 7-8), and topology (Math Beasts Camp 8-9)!

Be sure to mark your calendars for the following upcoming events:
[list][*]May 9th, 4:30pm PT/7:30pm ET, Casework 2: Overwhelming Evidence — A Text Adventure, a game where participants will work together to navigate the map, solve puzzles, and win! All are welcome.
[*]May 19th, 4:30pm PT/7:30pm ET, What's Next After Beast Academy?, designed for students finishing Beast Academy and ready for Prealgebra 1.
[*]May 20th, 4:00pm PT/7:00pm ET, Mathcamp 2025 Qualifying Quiz Part 1 Math Jam, Problems 1 to 4, join the Canada/USA Mathcamp staff for this exciting Math Jam, where they discuss solutions to Problems 1 to 4 of the 2025 Mathcamp Qualifying Quiz!
[*]May 21st, 4:00pm PT/7:00pm ET, Mathcamp 2025 Qualifying Quiz Part 2 Math Jam, Problems 5 and 6, Canada/USA Mathcamp staff will discuss solutions to Problems 5 and 6 of the 2025 Mathcamp Qualifying Quiz![/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
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
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
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
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
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
Tuesday, May 6 - Aug 19
Wednesday, Jun 4 - Sep 17
Sunday, Jun 22 - Oct 19
Friday, Jul 18 - Nov 14

Introduction to Geometry
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

Paradoxes and Infinity
Mon, Tue, Wed, & Thurs, Jul 14 - Jul 16 (meets every day of the week!)

Intermediate: Grades 8-12

Intermediate Algebra
Sunday, Jun 1 - Nov 23
Tuesday, Jun 10 - Nov 18
Wednesday, Jun 25 - Dec 10
Sunday, Jul 13 - Jan 18
Thursday, Jul 24 - Jan 22

Intermediate Counting & Probability
Wednesday, May 21 - Sep 17
Sunday, Jun 22 - Nov 2

Intermediate Number Theory
Sunday, Jun 1 - Aug 24
Wednesday, Jun 18 - Sep 3

Precalculus
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
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
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

AIME Problem Series A
Thursday, May 22 - Jul 31

AIME Problem Series B
Sunday, Jun 22 - Sep 21

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
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
May 1, 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
Looking for someone to work with
midacer   0
8 minutes ago
I’m looking for a motivated study partner (or small group) to collaborate on college-level competition math problems, particularly from contests like the Putnam, IMO Shortlist, IMC, and similar. My goal is to improve problem-solving skills, explore advanced topics (e.g., combinatorics, NT, analysis), and prepare for upcoming competitions. I’m new to contests but have a strong general math background(CPGE in Morocco). If interested, reply here or DM me to discuss
0 replies
midacer
8 minutes ago
0 replies
Isogonal Conjugates of Nagel and Gergonne Point
SerdarBozdag   4
N 36 minutes ago by zuat.e
Source: http://math.fau.edu/yiu/Oldwebsites/Geometry2013Fall/Geometry2013Chapter12.pdf
Proposition 12.1.
(a) The isogonal conjugate of the Gergonne point is the insimilicenter of
the circumcircle and the incircle.
(b) The isogonal conjugate of the Nagel point is the exsimilicenter of the circumcircle and
the incircle.
Note: I need synthetic solution.
4 replies
SerdarBozdag
Apr 17, 2021
zuat.e
36 minutes ago
Compact powers of 2
NO_SQUARES   1
N 41 minutes ago by Isolemma
Source: 239 MO 2025 8-9 p3 = 10-11 p2
Let's call a power of two compact if it can be represented as the sum of no more than $10^9$ not necessarily distinct factorials of positive integer numbers. Prove that the set of compact powers of two is finite.
1 reply
NO_SQUARES
May 5, 2025
Isolemma
41 minutes ago
Cute NT Problem
M11100111001Y1R   4
N an hour ago by RANDOM__USER
Source: Iran TST 2025 Test 4 Problem 1
A number \( n \) is called lucky if it has at least two distinct prime divisors and can be written in the form:
\[
n = p_1^{\alpha_1} + \cdots + p_k^{\alpha_k}
\]where \( p_1, \dots, p_k \) are distinct prime numbers that divide \( n \). (Note: it is possible that \( n \) has other prime divisors not among \( p_1, \dots, p_k \).) Prove that for every prime number \( p \), there exists a lucky number \( n \) such that \( p \mid n \).
4 replies
M11100111001Y1R
Today at 7:20 AM
RANDOM__USER
an hour ago
USAMO 2003 Problem 4
MithsApprentice   72
N an hour ago by endless_abyss
Let $ABC$ be a triangle. A circle passing through $A$ and $B$ intersects segments $AC$ and $BC$ at $D$ and $E$, respectively. Lines $AB$ and $DE$ intersect at $F$, while lines $BD$ and $CF$ intersect at $M$. Prove that $MF = MC$ if and only if $MB\cdot MD = MC^2$.
72 replies
MithsApprentice
Sep 27, 2005
endless_abyss
an hour ago
Easy but unusual junior ineq
Maths_VC   1
N an hour ago by blug
Source: Serbia JBMO TST 2025, Problem 2
Real numbers $x, y$ $\ge$ $0$ satisfy $1$ $\le$ $x^2 + y^2$ $\le$ $5$. Determine the minimal and the maximal value of the expression $2x + y$
1 reply
1 viewing
Maths_VC
2 hours ago
blug
an hour ago
Bosnia and Herzegovina JBMO TST 2009 Problem 1
gobathegreat   1
N an hour ago by FishkoBiH
Source: Bosnia and Herzegovina Junior Balkan Mathematical Olympiad TST 2009
Lengths of sides of triangle $ABC$ are positive integers, and smallest side is equal to $2$. Determine the area of triangle $P$ if $v_c = v_a + v_b$, where $v_a$, $v_b$ and $v_c$ are lengths of altitudes in triangle $ABC$ from vertices $A$, $B$ and $C$, respectively.
1 reply
gobathegreat
Sep 17, 2018
FishkoBiH
an hour ago
USAMO 2001 Problem 2
MithsApprentice   53
N an hour ago by lksb
Let $ABC$ be a triangle and let $\omega$ be its incircle. Denote by $D_1$ and $E_1$ the points where $\omega$ is tangent to sides $BC$ and $AC$, respectively. Denote by $D_2$ and $E_2$ the points on sides $BC$ and $AC$, respectively, such that $CD_2=BD_1$ and $CE_2=AE_1$, and denote by $P$ the point of intersection of segments $AD_2$ and $BE_2$. Circle $\omega$ intersects segment $AD_2$ at two points, the closer of which to the vertex $A$ is denoted by $Q$. Prove that $AQ=D_2P$.
53 replies
MithsApprentice
Sep 30, 2005
lksb
an hour ago
A=b
k2c901_1   89
N an hour ago by reni_wee
Source: Taiwan 1st TST 2006, 1st day, problem 3
Let $a$, $b$ be positive integers such that $b^n+n$ is a multiple of $a^n+n$ for all positive integers $n$. Prove that $a=b$.

Proposed by Mohsen Jamali, Iran
89 replies
k2c901_1
Mar 29, 2006
reni_wee
an hour ago
Strange angle condition and concyclic points
lminsl   129
N 2 hours ago by Aiden-1089
Source: IMO 2019 Problem 2
In triangle $ABC$, point $A_1$ lies on side $BC$ and point $B_1$ lies on side $AC$. Let $P$ and $Q$ be points on segments $AA_1$ and $BB_1$, respectively, such that $PQ$ is parallel to $AB$. Let $P_1$ be a point on line $PB_1$, such that $B_1$ lies strictly between $P$ and $P_1$, and $\angle PP_1C=\angle BAC$. Similarly, let $Q_1$ be the point on line $QA_1$, such that $A_1$ lies strictly between $Q$ and $Q_1$, and $\angle CQ_1Q=\angle CBA$.

Prove that points $P,Q,P_1$, and $Q_1$ are concyclic.

Proposed by Anton Trygub, Ukraine
129 replies
lminsl
Jul 16, 2019
Aiden-1089
2 hours ago
Simple inequality
sqing   12
N 2 hours ago by Rayvhs
Source: MEMO 2018 T1
Let $a,b$ and $c$ be positive real numbers satisfying $abc=1.$ Prove that$$\frac{a^2-b^2}{a+bc}+\frac{b^2-c^2}{b+ca}+\frac{c^2-a^2}{c+ab}\leq a+b+c-3.$$
12 replies
sqing
Sep 2, 2018
Rayvhs
2 hours ago
Random concyclicity in a square config
Maths_VC   2
N 2 hours ago by Maths_VC
Source: Serbia JBMO TST 2025, Problem 1
Let $M$ be a random point on the smaller arc $AB$ of the circumcircle of square $ABCD$, and let $N$ be the intersection point of segments $AC$ and $DM$. The feet of the tangents from point $D$ to the circumcircle of the triangle $OMN$ are $P$ and $Q$ , where $O$ is the center of the square. Prove that points $A$, $C$, $P$ and $Q$ lie on a single circle.
2 replies
Maths_VC
2 hours ago
Maths_VC
2 hours ago
Serbian selection contest for the IMO 2025 - P3
OgnjenTesic   3
N 2 hours ago by atdaotlohbh
Source: Serbian selection contest for the IMO 2025
Find all functions $f : \mathbb{Z} \to \mathbb{Z}$ such that:
- $f$ is strictly increasing,
- there exists $M \in \mathbb{N}$ such that $f(x+1) - f(x) < M$ for all $x \in \mathbb{N}$,
- for every $x \in \mathbb{Z}$, there exists $y \in \mathbb{Z}$ such that
\[
            f(y) = \frac{f(x) + f(x + 2024)}{2}.
        \]Proposed by Pavle Martinović
3 replies
OgnjenTesic
May 22, 2025
atdaotlohbh
2 hours ago
Easy P4 combi game with nt flavour
Maths_VC   0
2 hours ago
Source: Serbia JBMO TST 2025, Problem 4
Two players, Alice and Bob, play the following game, taking turns. In the beginning, the number $1$ is written on the board. A move consists of adding either $1$, $2$ or $3$ to the number written on the board, but only if the chosen number is coprime with the current number (for example, if the current number is $10$, then in a move a player can't choose the number $2$, but he can choose either $1$ or $3$). The player who first writes a perfect square on the board loses. Prove that one of the players has a winning strategy and determine who wins in the game.
0 replies
Maths_VC
2 hours ago
0 replies
IMO ShortList 2002, number theory problem 6
orl   31
N May 11, 2025 by Markas
Source: IMO ShortList 2002, number theory problem 6
Find all pairs of positive integers $m,n\geq3$ for which there exist infinitely many positive integers $a$ such that \[ \frac{a^m+a-1}{a^n+a^2-1}  \] is itself an integer.

Laurentiu Panaitopol, Romania
31 replies
orl
Sep 28, 2004
Markas
May 11, 2025
IMO ShortList 2002, number theory problem 6
G H J
Source: IMO ShortList 2002, number theory problem 6
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
orl
3647 posts
#1 • 10 Y
Y by Davi-8191, JasperL, Adventure10, ImSh95, Mango247, bjump, Tastymooncake2, cubres, and 2 other users
Find all pairs of positive integers $m,n\geq3$ for which there exist infinitely many positive integers $a$ such that \[ \frac{a^m+a-1}{a^n+a^2-1}  \] is itself an integer.

Laurentiu Panaitopol, Romania
Attachments:
This post has been edited 6 times. Last edited by orl, Sep 27, 2005, 4:59 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
orl
3647 posts
#2 • 4 Y
Y by Adventure10, ImSh95, Mango247, cubres
Please post your solutions. This is just a solution template to write up your solutions in a nice way and formatted in LaTeX. But maybe your solution is so well written that this is not required finally. For more information and instructions regarding the ISL/ILL problems please look here: introduction for the IMO ShortList/LongList project and regardingsolutions :)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
gollywog
64 posts
#3 • 4 Y
Y by ImSh95, Adventure10, Mango247, cubres
Ljunggren's theorem kills it.

//my bad, there is answer m=5, n=3.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Hawk Tiger
667 posts
#4 • 4 Y
Y by Adventure10, ImSh95, Mango247, cubres
May I know that what is"Ljunggren's theorem"?
Thanks.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
gollywog
64 posts
#5 • 4 Y
Y by Adventure10, ImSh95, Mango247, cubres
http://www.math.sc.edu/~filaseta/seminars/MSRI2002/MSRILecture42002.pdf
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
hmm
9 posts
#6 • 20 Y
Y by Amir Hossein, JasperL, Pure_IQ, ValidName, Kobayashi, jeteagle, megarnie, ImSh95, Adventure10, Mango247, Stuffybear, cubres, and 8 other users
Click to reveal hidden text
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Zhero
2043 posts
#7 • 6 Y
Y by Pure_IQ, ImSh95, Adventure10, Mango247, Stuffybear, cubres
hmm wrote:
Click to reveal hidden text
Wow, that was quite ingenious. :D I have another finish to this problem which I feel is slightly cleaner:

Since $ a^n + a^2 - 1 | a^m + a - 1$, $ a^n + a^2 - 1 | (a+1)(a^m + a - 1) - (a^n + a^2 - 1) = (a^{m+1} + a^m) + (a^2 - 1) - (a^n + a^2 - 1) = a^{m+1} + a^m - a^n = a^n(a^{m-n+1} + a^{m-n} - 1)$. Therefore, $ a^{n} + a^2 - 1 | a^{m-n+1} + a^{m-n} - 1$. Hence, $ n \leq m - n + 1$, so $ 2n - 1 \leq m$. But it was have shown that $ m \leq 2n - 1$, so we have that $ m = 2n - 1$. Therefore, $ a^n + a^2 - 1 | a^n + a^{n-1} - 1$, so $ a^n + a^2 - 1 | a^{n-1} - a^2$. The only way this can be is if $ a^{n-1} = a^2$, yielding $ n = 3$ and $ m = 5$, as desired.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mathocean97
606 posts
#8 • 7 Y
Y by JasperL, ValidName, ImSh95, Adventure10, Mango247, cubres, and 1 other user
We first show that $f(a) = a^n+a^2-1$ has no double root. But it is easy to see that $\gcd(f(a), f'(a)) = \gcd(a^n+a^2-1, na^{n-1}+2a) = 1$ (not hard, I can show this more explicitly). Now let $r$ be a root of $f(a)$. Then $r^m+r-1 = 0, r^n+r^2-1 = 0$.

Rearranging the above equations gives $r^m = 1-r, r^n = (1-r)(1+r)$. Dividing these equations and rearranging gives $r^{m-n+1}+r^{m-n}-1 = 0$. But this holds for all roots $r$, so we get that $f(a) \vert a^{k+1}+a^k-1$, where $k = m-n$. By a rather famous result, $X^n-X-1$ is irreducible for all $n$, so if we reverse the coefficients, $X^n+X^{n-1}-1$ is also irreducible. Therefore, $f(a) = a^{k+1} + a^k - 1 \implies n = 3, k = 2, \implies m = 5, n = 3$.

This article seems to contain the proof that $X^n-X-1$ is irreducible in the beginning and much more later.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Nanas
44 posts
#9 • 3 Y
Y by ImSh95, Adventure10, cubres
My solution is written in the language of modules of polynomials, though the key ideas are nearly the same. It is less elegant than solutions above (As usual). It may appear lengthy but it is just direct computations ( I didn't omit any details, it is just the same as in my scratch paper)

Denote $f(a)=\frac{a^m+a-1}{a^n+a^2-1}$. . We let $P_m(x)=x^m+x-1$ and $Q_n(x)=x^n+x^2-1$, we have since both polynomials are monics, we can use Euclidean theorem for monic integer polynomials, to conclude that there is $S,R\in \mathbb{Z}[x]$ where $ \deg R < n$, such that $ P_m(x)= Q_m(x) S(x) + R(x)$, we have then \[ f(x) = \frac{x^m+x-1}{x^n+x^2-1} = \frac {P_m(x)}{Q_n(x)}= S(x) + \frac{R(x)}{Q_n(x)} \] If $R(x)$ is non-zero, We get the $\frac{R(x)}{Q_n(x)} \rightarrow 0$, which imply that for all but finitely many integers $s$, $ |\frac{R(x)}{Q_n(x)}| <1 $. And as that term never achieves zero for large numbers, we can't have $f(a)$ integer for infinitely many $a$'s. So we must have $Q_n | P_m$ in $\mathbb{Z}[x]$. Easily one can see that we must have $m > n$ .

Now we prove that $Q_n | P_m$ iff $(m,n)=(5,3)$. We do module arithmetic in the Euclidean domain $\mathbb{Q}[x]$ to prove that. Note that $(x,Q_n(x))=1$ and $(x-1,Q_n(x))=1$ in $\mathbb{Q}[x]$, and hence \[ \begin{array}{lcl}
x^m+x-1 & \equiv & 0 \pmod{x^n+x^2-1} \\
\iff x^m+x-x^n-x^2 & \equiv & 0 \pmod{x^n+x^2-1} \\
\iff x^{m-1}+1-x^{n-1}-x & \equiv  & 0\pmod{x^n+x^2-1}  \\
\iff x^{n-1}(x^{m-n} - 1) + (1-x) & \equiv & 0 \pmod{x^n+x^2-1} \\
\iff x^{m-2} + \cdots + x^{n-1} -1 & \equiv &0 \pmod{x^n+x^2-1}
\end{array}\]
If we let $m=n+i$ we get
\begin{align*}
x^{m-2} + \cdots + x^{n-1} -1 &\equiv x^{n+i-2}+ \cdots + x^{n-1} + x^{i} + x^{i-1} + \cdots + x^2 -1   \\
&\equiv  (x^{n+i-2}+ x^{i})+ (x^{n+i-3}+x^{i-1}) + \cdots + ( x^{n} + x^{2}) + x^{n-1} - x^{i} - x^{i-1} - \cdots - x^{2} -1 \\
&\equiv x^{i-2}+ x^{i-3}+ \cdots +1 + x^{n-1} - x^{i} - x^{i-1} - \cdots - x^{2} -1 \\
&\equiv x^{n-1} + x - x^{i} - x^{i-1} \pmod{x^n+x^2-1} 
\end{align*}
Now if $i<n$ we get $x^{n-1} + x - x^{i} - x^{i-1} = 0 $ which cannot happen unless $n-1=i$ and $i-1=1$ and hence $(n,i)=(3,2)$ and so we have the solution $(m,n) = (5,3)$. Now if $i=n+j ; j\geq0$ , then \[ \begin{array}{lcl}
x^{n-1} + x - x^{i} - x^{i-1} & \equiv & 0 \pmod{x^n+x^2-1} \\
\iff - x^{n-1} - x + x^{n+j} + x^{n+j-1} & \equiv & 0 \pmod{x^n+x^2-1} \\
\iff  x^{n+j-1} + x^{n+j-2} - x^{n-2} - 1 & \equiv  & 0\pmod{x^n+x^2-1}  \\
\iff  x^{n-2}(x^{j+1}-1) + x^{n+j-2} - 1 & \equiv & 0 \pmod{x^n+x^2-1} \\
\iff     x^{n+j-2} + 2x^{n+j-3} + \cdots + 2x^{n-2}+ x^{n} + \cdots + 1 & \equiv &0 \pmod{x^n+x^2-1}
\end{array}\]

But $x^{n+j-2} + 2x^{n+j-3} + \cdots + 2x^{n-2}+ x^{n} + \cdots + 1 \geq 1$ for $ x\geq0$ , while $s^n+s^2-1=0$ for some $s\in(0,1)$ since divisibility applies also in $\mathbb{R}[x]$ , we get $s^{n+j-2} + 2s^{n+j-3} + \cdots + 2s^{n-2}+ s^{n} + \cdots + 1 = 0$, getting a contradiction.
This post has been edited 2 times. Last edited by Nanas, Aug 4, 2015, 6:17 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ABCDE
1963 posts
#11 • 5 Y
Y by randomusername, ImSh95, Adventure10, Mango247, cubres
I found a pretty cool and unique solution to this problem. Can someone check for its validity?

Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
tree3
641 posts
#12 • 4 Y
Y by ImSh95, Adventure10, Mango247, cubres
Notice that $m>n$ since $m,n>3$ implies that if $m \leq n$, then $0<\frac{a^m+a-1}{a^n+a^2-1}<1$ for $a$ relatively large. First we claim that $\frac{a^m+a-1}{a^n+a^2-1}$ must always be an integer. Indeed, since $\frac{a^m+a-1}{a^n+a^2-1}=R(x)+\frac{Q(x)}{a^n+a^2-1}$ for polynomials $R,Q$, with $deg(Q)<deg(a^n+a^2+1)$, implying that for large $a$, $Q(x)<a^n+a^2-1$ occurs, meaning that the quotient cannot yield an integer unless $Q(x)=0$ for infinitely many values, implying the above claim. Now we can bound. Since
$a^n + a^2 - 1 | a^m + a - 1$, we get that $ a^n + a^2 - 1 | (a+1)(a^m + a - 1) - (a^n + a^2 - 1)$.
But $(a+1)(a^m + a - 1) - (a^n + a^2 - 1)= a^{m+1} + a^m - a^n = a^n(a^{m-n+1} + a^{m-n} - 1)$.
Therefore, $ a^{n} + a^2 - 1 | a^{m-n+1} + a^{m-n} - 1$. Hence, $ n \leq m - n + 1$, so $ 2n - 1 \leq m$. Plugging in $a=2$, we immediately get $2^n+3|2^m+1$ with $m<2n$. Then $gcd(2^n+3,2^m+1)=gcd(3(2^{m-n})-1,2^n+3)$. Since $3(2^{m-n})-1<3(2^{m-n})<3(2^n)$ and $3(2^{m-n})-1$ is odd, $3(2^{m-n})-1=2^n+3$. This rearranges to $3(2^k)=2^n+4$ for $k=m-n$. Since $n>2$, $k<2$, implying the only solution to be $m=5,n=3$.
This post has been edited 6 times. Last edited by tree3, Jan 20, 2018, 1:37 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
v_Enhance
6877 posts
#13 • 4 Y
Y by v4913, ImSh95, Adventure10, Mango247
The condition is equivalent to $a^n+a^2-1$ dividing $a^m+a-1$ as polynomials. The big step is the following analytic one.

Claim: We must have $m \le 2n$.

Proof. Assume on contrary $m > 2n$ and let $0 < r < 1$ be the unique real number with $r^n+r^2 = 1$, hence $r^m+r = 1$. But now \begin{align*} 		0 &= r^m + r - 1 < r(r^n)^2 + r - 1 = r\left( (1-r^2)^2+1 \right) - 1 \\ 		&= -(1-r)\left( r^4+r^3-r^2-r+1 \right). 	\end{align*}As $1-r > 0$ and $r^4+r^3-r^2-r+1 > 0$, this is a contradiction $\blacksquare$

Now for the algebraic part. Obviously $m > n$. \begin{align*} 	a^n+a^2-1 &\mid a^m+a-1 \\ 	\iff a^n+a^2-1 &\mid (a^m+a-1)(a+1) = a^m(a+1) + (a^2-1)  \\ 	\iff a^n+a^2-1 &\mid a^m(a+1) - a^n \\ 	\iff a^n+a^2-1 &\mid a^{m-n}(a+1) - 1. \end{align*}The right-hand side has degree $m-n+1 \le n+1$, and the leading coefficients are both $+1$. So the only possible situations are \begin{align*} 	a^{m-n}(a+1) - 1 &= (a+1)\left( a^n+a^2-1 \right) \\ 	a^{m-n}(a+1) + 1 &=  a^n+a^2-1. \end{align*}The former fails by just taking $a=-1$; the latter implies $(m,n) = (5,3)$. As our work was reversible, this also implies $(m,n) = (5,3)$ works, done.
This post has been edited 1 time. Last edited by v_Enhance, Apr 8, 2019, 5:10 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
anantmudgal09
1980 posts
#14 • 5 Y
Y by ELMOliveslong, SatisfiedMagma, ImSh95, Adventure10, Mango247
orl wrote:
Find all pairs of positive integers $m,n\geq3$ for which there exist infinitely many positive integers $a$ such that \[ \frac{a^m+a-1}{a^n+a^2-1}  \]is itself an integer.

Laurentiu Panaitopol, Romania

It is standard to prove that $x^n+x^2-1 \mid x^m+x-1$ as polynomials, by the given condition. Now the former has different signs at $x=0$ and $x=1$, so pick a root $0<\alpha<1$. Notice that $\alpha^n+\alpha^2=1$ and $\alpha^m+\alpha=1$. Suppose $m \ge 2n$. Then $$\alpha^m \le \alpha^{2n} \implies 1=\alpha^2+\alpha^n<\alpha+\alpha^{2n} \iff \alpha^{2n}-\alpha^2>\alpha^n-\alpha \iff \alpha^n+\alpha<1=\alpha^2+\alpha^n \iff \alpha<\alpha^2 \iff \alpha>1$$which is a contradiction!

So $m<2n$. Now $x^n+x^2-1 \mid x^{m-n+1}+x^{m-n}-1$ by taking residues. Finally, the latter polynomial has degree $m-n+1 \le (2n-1)-(n-1)$ so in fact, these two polynomials are equal, hence $m-n=2, m=2n-1$ so $m=5, n=3$. Clearly, this pair works, so we're done.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
IndoMathXdZ
694 posts
#15 • 1 Y
Y by ImSh95
Kind of nice.
The condition forces the polynomial $a^n + a^2 - 1$ to divide $a^m + a - 1$.
$\textbf{Claim 01.}$ $m < 2n$.
$\textit{Proof.}$ Suppose otherwise, we have $m \ge 2n$.
Notice that $(0)^n + (0)^2 - 1 = -1$ and $(1)^n + (1)^2 - 1 = 1$. By the Intermediate Value Theorem, we have that the polynomial $a^n + a^2 - 1$ has a root $\alpha$ which satisfy $0 < \alpha < 1$. Therefore,
\[ \alpha^m + \alpha = \alpha^n + \alpha^2 \Rightarrow \alpha (1 - \alpha) = \alpha^n (1 - \alpha^{m - n}) = (1 - \alpha^2)(1 - \alpha^{m - n}) \]This gives us
\[ \alpha = (1 + \alpha)(1 - \alpha^{m - n}) \]which can be rewritten as $\alpha^{m - n} + \alpha^{m - n + 1} = 1$. Since $m - n + 1 > n \ge 3$ and $0 < \alpha < 1$. We have
\[1 =  \alpha^{m - n} + \alpha^{m - n + 1} \le \alpha^n + \alpha^{n - 1} \le \alpha^n + \alpha^2= 1\]results to a clear contradiction.

Now, we have
\[ x^n + x^2 - 1 | x^{m - n + 2} - x^{m - n} - x + 1 \]Notice that we have the bound $n \le m - n + 2 \le n + 1$.
We'll prove that we must have $m - n + 2 = n + 1$.
Assume otherwise, then we must have $LHS = RHS$ since they are both the polynomial in the same degree and both having leading coefficient $1$, which is a clear contradiction as $RHS$ has constant $+1$ and $LHS$ has constant $-1$.
Then we have $m - n + 2 = n + 1$.
By considering the constant term ad the largest coefficient, we deduce
\[ (x^n + x^2 - 1)(x - 1) = x^{n + 1} - x^{n - 1} - x + 1 \]But taking $x = 2$. We have $LHS = 2^n + 2^2 - 1 \le 2^{n} + 2^{n - 1} - 1$ since $n \ge 3$.
For equality to hold, we must have $n = 3$. This forces $m = 5$, and we could check that
\[ (x^3 + x^2 - 1)(x^2 - x + 1) = x^5 + x - 1 \]Therefore, the pair $(3,5)$ clearly satisfies.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
A_Math_Lover
15 posts
#16 • 4 Y
Y by thczarif, AlastorMoody, yayitsme, ImSh95
Lemma: For $ a, m, n\in \mathbb{N} $, we have
\[a^n+a^2-1\ |\ a^{m-i} + (-1)^i\left(a^{n-1} - a^{n-2} +\dots + (-1)^{i+1}a^{n-i}\right) + (-1)^i\left(a-1\right)\]
Proof: We proceed by induction on $ i $. For $ i=0, 1 $, it is true. So assume for some $i>2$, it is true.

\begin{align*}
	a^n+a^2-1\ &|\ a^{m-i} + (-1)^i\left(a^{n-1} - a^{n-2} +\dots + (-1)^{i+1}a^{n-i}\right) + (-1)^i\left(a-1\right)\\[1em]
	\implies a^n+a^2-1\ &|\ a^{m-i} + (-1)^i\left(a^{n-1} - a^{n-2} +\dots + (-1)^{i+1}a^{n-i}\right) + (-1)^i\left(a-1\right) - (-1)^i(a^n+a^2-1)\\[.5em]
	&=a^{m-i} +  (-1)^i\left(-a^n+ a^{n-1} - a^{n-2} +\dots + (-1)^{i+1}a^{n-i}\right) + (-1)^{i+1}(a^2-a)\\[1em]
	\therefore a^n+a^2-1\ &|\ a^{m-i-1} + (-1)^{i+1}\left(a^{n-1} - a^{n-2} +\dots + (-1)^{i+1}a^{n-i}\right) + (-1)^{i+1}\left(a-1\right)\\
\end{align*}Which proves our lemma.

Now, let $ i=n $, we get,
\[a^n+a^2-1\ |\ a^{m-n}  + (-1)^n \left(\frac{a^n+1}{a+1}\right) + (-1)^n(a-1)\]Clearly, $ m\ge n $. Let $ m=nk+q $. If $ n $ is even,
\begin{align*}
a^n+a^2-1\ &|\ a^{m-n}+a-1 + \left(\frac{a^n+1}{a+1}\right)\\[.5em]
\implies a^n+a^2-1\ &|\ a^q+a-1 + k\left(\frac{a^n+1}{a+1}\right)
\end{align*}
Which is not possible since the polynomial on the right side has degree at most $ n-1 $, and can't be $ 0 $ for all $ a\in \mathbb{Z} $.

So, $ n $ is odd. Then we have,

\begin{align*}
a^n+a^2-1\ &|\ a^{m-n} + a-1 - \left(\frac{a^n+1}{a+1}\right) - 2(a-1)\\[.5em]
\implies a^n+a^2-1\ &|\ a^q + a -1 - k\left(\frac{a^n+1}{a+1}\right) -2k(a-1) = P(a)
\end{align*}
Since $ P(a) $ has degree at most $ n-1 $, $ P(a) =0 $ for all $ a\in \mathbb{Z} $.


\begin{align*}
	P(a) &= a^q + a -1 - k\left(\frac{a^n+1}{a+1}\right) -2k(a-1)\\
	\therefore a^q + a - 1 &= k\left(\frac{a^n+1}{a+1}\right)+2k(a-1)
\end{align*}
Comparing the coefficients and degrees on both sides, we have, $ q=n-1=2,\ k=1 $. Which gives us the only solution $ (m, n) = (5, 3) $.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Aryan-23
558 posts
#17 • 4 Y
Y by AlastorMoody, parola, ImSh95, Mango247
The problem is a joke if someone knows a particular lemma. ;)
Here's my solution
This post has been edited 2 times. Last edited by Aryan-23, Jun 26, 2020, 7:51 AM
Reason: YUHHHHHHHH
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
dchenmathcounts
2443 posts
#18 • 1 Y
Y by ImSh95
Cool problem!

We require $a^n+a^2-1\mid a^m+a-1$, else the remainder (which is deg $n-1$ at most) will eventually be smaller than $a^n+a^2-1$ for large enough $a.$

Also note $n<2m$ otherwise $a^m+a>a^{2m}+a^2>a^n+a^2$ for $0<a<1$ and obviously one of the roots has this value. So then the remainder is $-a^{m-n+2}+a^{m-n}+a-1,$ so we want $a^n+a^2-1\mid a^{m-n+2}-a^{m-n}-a+1,$ which must be equal to $a^n+a^2-1$ or $(a^n+a^2-1)(a-1)$ as $m-n+2\leq m+1.$ For size reasons $m-n+2=m$ or $m-n+2=m+1$. The first case fails by comparison of $a$ coefficient, and the second case requires $n=3$, which gives us $(a^3+a^2-1)(a-1)=a^m+a-1,$ fixing $m=5.$

So just $(3,5)$ works.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
DottedCaculator
7357 posts
#19 • 2 Y
Y by megarnie, ImSh95
Solution
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
i3435
1350 posts
#20 • 4 Y
Y by ImSh95, Mango247, Mango247, Mango247
Here is a weird reason why $m<2n$ which I can't find above, given that we already know $x^n+x^2-1$ has to divide $x^{m-n+1}+x^{m-n}-1$.

Both of these polynomials are monotonic when $x>0$, and one divides the other, so it is impossible for them to have different signs for some $x>0$. Consider $x=\frac{1}{2}^{\frac{1}{n}}$. $\left(\frac{1}{2}^{\frac{1}{n}}\right)^n+\left(\frac{1}{2}^{\frac{1}{n}}\right)^2-1=\frac{1}{2}+\frac{1}{2}^{\frac{2}{n}}-1>0$ since $\frac{2}{n}<1$. On the other hand, $\left(\frac{1}{2}^{\frac{1}{n}}\right)^{m-n+1}+\left(\frac{1}{2}^{\frac{1}{n}}\right)^{m-n}-1=\left(\frac{1}{2}^{\frac{1}{n}}+1\right)\left(\frac{1}{2}^{\frac{m-n}{n}}\right)-1$. The first part of the product is $<2$ and since $\frac{m-n}{n}\ge 1$, the second part of the product is $\le \frac{1}{2}$. Thus this is $<0$, giving the desired contradiction.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
MathLuis
1556 posts
#21 • 1 Y
Y by ImSh95
Let $f(x)=x^n+x^2-1$ and $g(x)=x^m+x-1$ be polynomials in $\mathbb Z[x]$. We claim that $(m,n)=(5,3)$ works.
Claim 1: $f \mid g$ holds always.
Proof: For any $x \in \mathbb C$ we do polynomial division with quotient and residue in $\mathbb Z[x]$
$$g(x)=f(x)q(x)+r(x) \implies \frac{g(x)}{f(x)}=q(x)+\frac{r(x)}{f(x)}$$From here note that $\text{deg} \; r<\text{deg} \; f$ so set $x$ to be a extremely large positive integer such that $-f(x)<r(x)<f(x)$ meaning that for infinite values $r$ is 0 so $r(x)=0$ holds always meaning that $f \mid g$ as desired.
Claim 2: $2n-1 \ge m$
Proof: From Claim 1 one has that all the roots of $f$ are also roots of $g$ now $f'(x)=nx^{n-1}+2x>0$ if $x>0$ hence $f$ is strictly increasing in $\mathbb R^+$, now $f(1)=1$ and $f\left(\frac{2}{3} \right)=\left(\frac{2}{3} \right)^n-\frac{5}{9}<0$ meaning that there exists a root of $f$ satisfying $\frac{2}{3}<z<1$.
Assume FTSOC that $m \ge 2n$ then by all said before and ineqs
$$(1-z^2)^2=z^{2n}\ge z^m=1-z \implies (1-z)(z^2+z+1+z) \ge 1 \implies 1-z^3+z-z^2 \ge 1 \implies 1 \ge z+z^2 \ge 3z-1 \implies \frac{2}{3} \ge z \; \text{contradicction!!}$$Contradiction comes from assuming $m \ge 2n$ hence $2n-1 \ge m$ as desired.
A nice finish: Lets now work in integers and divisions
$$a^n+a^2-1 \mid a^m+a-1 \implies a^n+a^2-1 \mid a^{m-n+2}-a^{m-n}+1-a=(a-1)(a^{m-n}(a+1)-1) \implies a^n+a^2-1 \mid a^{m-n}(a+1)-1$$From here as RHS has at most degree $n$ we see that both have to be equal and $m=2n-1$ hence $a^n+a^2-1=a^n+a^{n-1}-1$ which means $n=3$ and this means $m=5$.
Hence the pair $(m,n)=(5,3)$ is the unique pair that works, thus we are done :D
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
SatisfiedMagma
461 posts
#22 • 1 Y
Y by ImSh95
Did it back like 2 years ago? Very cool problem. Solved with quirtt and Fafnir.

Solution: We will show that $(m,n)=(5,3)$ is the only solution. One can see that it works as
\[a^5+a-1=(a^2-a+1)(a^3+a^2-1).\]We will break the solution into two claims which will bound the values of $m$. We define \begin{align*} P(a) \overset{\text{def}}{=} a^m+a-1 \\ Q(a) \overset{\text{def}}{=} a^n+a^2-1 \end{align*}where $P,Q$ are polynomials. We will now prove a well-known but extremely useful lemma which will take the problem from Number Theory to Algebra!

Lemma: If two polynomials $f,g \in \mathbb{Z}[x]$ are such that $f(n) \mid g(n)$ for infinitely many integers $n$, then $f(x) \mid g(x)$.

Proof: Due to size reasons, it is easy to see $\deg(g) > \deg(f)$. By the division algorithm over $\mathbb{Q}[x]$, write $g = fq + r$ for $f,q \in \mathbb{Q}[x]$ and $\deg(r) < \deg(f)$. One can clear out the denominators by multiplying by suitable integer, so we assume that all the polynomials are in $\mathbb{Z}[x]$. Just pick huge $k$ such that $f(k) \mid g(k)$. It would actually mean that $f(k) \mid r(k)$. But since $\deg(r) < \deg(f)$, we must have $r \equiv 0$ as desired. $\square$
So, we can actually apply the lemma to reduce the problem down to just two polynomials dividing each other!

Claim: $2n-1 \le m$.

Proof: First of all notice that $\gcd(a+1,Q(a))=1$. The algebra for divisibility begins here \begin{align*} P(a)                   & \equiv 0 \pmod{Q(a)} \\ (a+1)P(a)              & \equiv 0 \pmod{Q(a)} \\ a^{m+1}+a^2-a+ a^m+a-1 & \equiv 0 \pmod{Q(a)} \\ a^{m+1}+a^m+a^2-1      & \equiv 0 \pmod{Q(a)} \\ a^{m+1}+a^m-a^n        & \equiv 0 \pmod{Q(a)} \\ a^{m-n+1}+a^{m-n}-1    & \equiv 0 \pmod{Q(a)} \\ \end{align*}Bringing this into divisibility condition, we get \begin{align} a^n+a^2-1 \mid a^{m-n+1}+a^{m-n}-1 \label{1} \end{align}Due the bound on the degree, we get $m-n+1 \ge n$ which on simplifying gives $2n-1 \le m$ as desired. $\square$
The next is claim is a little harder to come up with and prove.

Claim: $m < 2n$.

Proof: Assume for the sake of contradiction, that $m>2n$. By the Intermediate Value Theorem, there exists a real root of $Q$ which lies between 0 and 1. Let this root be $\alpha$. By the problem condition, $\alpha$ is also a root of $P$. Now $P(\alpha)$ and $Q(\alpha)$ gives the following \begin{align} \alpha^m + \alpha = 1 \\ \alpha^n + \alpha^2 = 1 \end{align}Now we compute $\alpha^m$ and $\alpha^{2n}$. \begin{align*} \alpha^m    & = 1- \alpha      \\ \alpha^{2n} & = (1-\alpha^2)^2 \\ \end{align*}By assumption, we must have $\alpha^m < \alpha^{2n}$. Plugging in the values, we get \begin{align*} 1-\alpha    & \le (1-\alpha^2)^2           \\ 1-\alpha    & \le (1-\alpha)^2(1+\alpha)^2 \\ 1           & \le (1-\alpha)(1+\alpha)^2   \\ \iff \alpha & \le \varphi \end{align*}where $\varphi$ is the golden ratio. We will now show that $\alpha > \varphi$ which would bring the desired contradiction. It is easy to see that $P$ is an increasing function in the interval $[0,1]$. Note that \begin{align*} P(\varphi)=\varphi^m+\varphi-1 & < \varphi^2+\varphi-1 = 0 = P(\alpha) \\ \implies P(\varphi)            & < P(\alpha) \end{align*}and we can conclude that $\alpha > \varphi$ and we are done with the claim. $\square$
Now, due to the bounds we just need to check the case for $m=2n-1$. Putting this in $(1)$ we get
\[a^n+a^2-1 \mid a^{n-1}-a^2.\]This forces $n=3$ and we are done. $\blacksquare$
This post has been edited 2 times. Last edited by SatisfiedMagma, Jun 30, 2023, 6:27 PM
Reason: ayooo meth
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
#23
Y by
solved with hint to consider r, otherwise im very proud of myself :) :) :)

It's obvious that m>n; we want to find m,n s.t. $a^{m-n+2}-a^{m-n}-a+1\equiv a^m+a-1-a^{m-n}(a^n+a^2-1)\equiv0\pmod{a^n+a^2-1}$.
We claim that $m\le 2n$.
Assume FTSOC m>2n, and take 0<r<1 as the real number root of both polynomials. We have $$0=r^m+r-1\le r^{2n+1}+r-1=-(1-r)(r^4+r^3-r^2-r+1),r^4+r^3-r^2-r+1>r^2(r^2+r-1)>r^2(r^m+r-1)=0,1-r>0\implies 0\le RHS<0,$$impossible.

Case 1. m=2n. We have $a(a^3-2a+1)\equiv a^{n+2}-a^n-a+1-(a^2-1)(a^n+a^2-1)\equiv0\pmod{a^n+a^2-1}\implies n=\{1,2,3\}$, none of which work.
Case 2. m=2n-1. We have $a^{n-1}+a^3-1\equiv a^{n+1}-a^{n-1}-a+1-a(a^n+a^2-1)\equiv0\pmod{a^n+a^2-1}$, and checking the possible n, only $\boxed{n=3,m=5}$ works.
Case 3. m=2n-2 has similar computation with degrees on n, and none of n work. Case 4 has $m\le 2n-3$, none of which work by looking at deg LHS<deg RHS except for a few n, and checking those don't work. Having exhausted all cases, we conclude the proof here.

Remark. After enough of these problems, reducing the degree of polynomials by suitably subtracting multiples of the modulus becomes second nature; it's very natural to do so by euclidean algorithm, and once LHS|RHS with LHS deg<RHS deg except for a few numbers, the problem is solved.
This post has been edited 2 times. Last edited by huashiliao2020, Sep 4, 2023, 7:19 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
IAmTheHazard
5003 posts
#24
Y by
The answer is $(m,n)=(5,3)$ only, which clearly works since $a^3+a^2-1 \mid a^5+a-1$ in the polynomial sense. We now prove this is the only one.

For fixed $(m,n)$, since $a^n+a^2-1$ is monic we can write
$$\frac{a^m+a-1}{a^n+a^2-1}=p(a)+\frac{q(a)}{a^n+a^2-1}$$for some $p,q \in \mathbb{Z}[x]$ and $\deg q<n$. Then by considering sufficiently large $a$ we require $q \equiv 0$, so we should have $a^n+a^2-1 \mid a^m+a-1$ in the polynomial sense. Note that both of these polynomials have exactly one positive real root, so they must be the same. Call this common root $r$; clearly $r<1$.

Claim: $m<2n$.
Proof: Suppose otherwise. We should then have
$$1=r^n+r^2=r^m+r<r^{2n}+r \implies r-r^2>r^n-r^{2mn}.$$On the other hand, since $r^m<r$ but $r^n=1-r^2>1-r$, this is impossible, since $x-x^2$ increases as $x$ gets closer to $1/2$. $\blacksquare$

Now let $m=n+k$ with $0 \leq k \leq n-1$ (since clearly $m \geq n$). We should have
$$a^n+a^2-1 \mid a^k(a^n+a^2-1)-(a^{n+k}+a-1)=a^{k+2}-a^k-a+1=(a-1)(a^{k+1}+a^k-1).$$Since $\gcd(a^n+a^2-1,a-1)=1$ (in the polynomial sense) it follows that $a^n+a^2-1 \mid a^{k+1}+a^k-1$. In general $a^{k+1}+a^k-1$ is a nonzero polynomial, so $k<n-1$ is impossible, hence $k=n-1$ and $a^n+a^2-1 \mid a^n+a^{n-1}-1 \implies a^n+a^2-1 \mid a^{n-1}-a^2$. The last polynomial has degree less than $n$, hence it must be zero, i.e. $n=3$. Thus we extract the claimed solution. $\blacksquare$

Remark: Good problem to test "polynomial" intuition? To me considering $r$ felt "intuitive" but it's not super motivated in itself. I guess you start thinking about the roots after divisibility, and these are mostly hard to pin down except $r$.
This post has been edited 1 time. Last edited by IAmTheHazard, Oct 4, 2023, 1:16 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
thdnder
198 posts
#25
Y by
The only answer is $(m, n) = (5, 3)$.

Obviously $m > n$. It's not hard to see that $x^n + x^2 - 1 \mid x^m + x - 1$. Let $r$ be a real root of $x^n + x^2 - 1$. Then $r$ is real root of $x^m + x - 1$. Thus $r^n + r^2 = r^m + r$, which is equivalent to $r(1 - r) = r^n(1 - r^{m-n})$.

If $m > 2n$, then $r(1 - r) = r^n(1 - r^{m-n}) > r^n(1 - r^{n}) \ge r(1 - r)$, a contradiction. Thus $m \le 2n$.

Now note that $x^n + x^2 - 1 \mid (x + 1)(x^m + x - 1) = x^{m+1} + x^m + x^2 - 1$, thus $x^n + x^2 - 1 \mid x^{m-n}(x + 1) - 1$. Since $m - n + 1 \le n + 1$, thus $x^{m-n}(x + 1) - 1 = (x + 1)(x^n + x^2 - 1)$ or $x^{m-n}(x + 1) - 1 = x^n + x^2 - 1$. In the first case we have $x^{n+1} + x^n + x^3 + x^2 - x - 1 = x^{n} + x^2 - 1$, which is impossible. In the second case we have $x^n + x^2 - 1 = x^n + x^{n-1} - 1$, thus $n = 3$. Thus $m = 5$. Therefore $(m, n) = (5, 3)$ is only answer. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
awesomeming327.
1736 posts
#26
Y by
Note that these are both polynomials, so if for infinitely many $a$, $a^n+a^2-1\mid a^m+a-1$ then the polynomial $a^n+a^2-1$ divides the polynomial $a^m+a-1$. Note that $P(x) \mid Q(x)$ implies $\text{deg} P\le \text{deg} Q$. In particular, $m\ge n$.

Since $a^n + a^2 - 1\mid a^m+a-1$, which implies $a^n+a^2-1|(a+1)(a^m+a-1)-(a^n+a^2-1)$. This becomes $a^n+a^2-1\mid a^{m+1}+a^{m}-a^n$. Note that $\gcd(a^n+a^2-1,a)=\gcd(a^2-1,a)=1$ so $a^n+a^2-1\mid a^{m-n+1}+a^{m-n}-1$. This implies $m\ge 2n-1$. This also means $m-n\ge n-1\ge 2$.

By IVT and taking the derivative, there exists a unique real $0<r<1$ for which $r^n+r^2-1=0$. We must have $r^m+r-1=0$. Setting them equal, we get
\[r=\frac{r^n(1-r^{m-n})}{1-r}=\frac{(1-r^2)(1-r^{m-n})}{1-r}=(1+r)(1-r^{m-n})\]and this becomes $r^{m-n}(r+1)=1=r^n+r^2\ge r^n+r^{m-n}$ which implies $r^{m-n+1}\ge r^n\implies m-n+1\le n$ so $m\le 2n-1$. Note that equality is dependent on $m-n=2$, so we need $(m,n)=(5,3)$ which works.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HamstPan38825
8868 posts
#27
Y by
Claim. [Main Claim] $m \leq 2n$.

Proof. Let $r$ be a root of $a^n + a^2 - 1 = 0$, such that $r^n + r^2 = r^m + r = 1$. Suppose for the sake of contradiction that $m > 2n$. Then,
\begin{align*}
r^m + r &< r^{2n} + r \\
&= (r^n - r^{n+2}) + r \\
&= 1 - 2r^2 + r^3 + r \\
0 &< r^4 + r - 2r^2 \\
&=r(r-1)(r^2+r-1).
\end{align*}On the other hand, $r^2 + r > 1$ and $r - 1 < 0$, so this is a clear contradiction. $\blacksquare$

Now, by Euclidean algorithm we have $$a^n + a^2 - 1 \mid (a-1)(a^{m-n+1}+a^{m-n} - 1).$$In particular, as $a^n + a^2 - 1 \equiv 1 \pmod {a-1}$, we have $$a^n + a^2 - 1 \mid a^{m-n+1} + a^{m-n} + 1.$$If $m \leq 2n-2$, then the RHS is clearly smaller and $a^{m-n+1}+a^{m-n} + 1 = 0$, which is clearly impossible.

If $m \in \{2n-1, 2n\}$, perform one more step to get $$a^n + a^2 - 1 \mid a^{m-n} + a^{m-2n+1}-a^{m+3-2n} - 1.$$As $m-2n+1 \leq 1$, the RHS is smaller than the LHS now, so it must uniquely equal zero. When $m = 2n-1$, we get $a^{n-1} = a^2$, giving the solution pair $(3, 5)$. When $m = 2n$, we get $a^n + a - a^3 - 1=0$, which does not work for any value of $n$. Thus, $(3, 5)$ is the only solution.
This post has been edited 1 time. Last edited by HamstPan38825, Dec 16, 2023, 11:37 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
shendrew7
799 posts
#28
Y by
We claim our only solution is $\boxed{(5,3)}$. Our condition, $N/D \in \mathbb{Z}$, can be rewritten as
\[D \mid a^{m-n}\left(a^n+a^2-1\right) - \left(a^m+a-1\right) \implies D \mid a^{m-n+1}+a^{m-n}-1.\]
There are clearly no solutions for $m \leq 2n-2$, and investigating $m=2n-1,2n$ gives the desired solution. Now assume FTSOC $m>2n$, and consider a root $0<r<1$ of $D \mid N$. Then
\[\left(a^n+a^2\right)^2 - (a^m+a) = 0 \implies a\left(2a^{n+1}+a^3-1\right) = a^m-a^{2n}.\]
The RHS is negative under the assumption, but the LHS can be expressed as
\[a\left((a^{n+1})+a(a^n+a^2)\right)-(a^n+a^2) = a(1-a)(a-a^n) > 0. \quad \blacksquare\]
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
bjump
1035 posts
#29 • 1 Y
Y by megarnie
solution (arch carried me :skull:)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
atdaotlohbh
190 posts
#30
Y by
Let $P(a)$ be the enumerator and $Q(a)$ be the denominator. Divide $P$ on $Q$:
$$P=QT+R$$where $deg R<def Q$ and division is done in $\mathbb{Q}$. Multiply this equation by the lcm of denominators so that all coeffiecients were integer. Now $Pc$ is divisible by $Q$ and $(Tc)Q$ are divisible by $Q$ in infinitely many points from the problem statement, thus $Rc$ is also divisible by $Q$ in infinitely many points. But if $R \neq 0$, then eventually $|Rc| < |Q|$, so $R$ must be equal to zero. Hence $P$ is divisible by $Q$
Now $a^{m+1}+a^{m}-a^n=(a+1)P-Q \vdots Q$, but $(Q,a)=1$, thus $a^{m-n+1}+a^{m-n}-1 \vdots Q$. Denote $m-n=t$
Obviously $t+1 \geq$deg $Q=n$. Note that $Q(0)=-1$ and $Q(1)=1$, thus there exists a number $x_0 \in (0,1)$ such that $Q(x_0)=0$. Then $x_0^{t+1}+x_0^{t}=1=x_0^n+x_0^2$. Note that if $t>2$, then $x_0^{t+1} \leq x_0^n$ and $x_0^t<x_0^2$, contradicting the statement. Thus $t \leq 2$. But $n \leq t+1 \leq 3$, thus $n=3, t=2$, and $m=t+n=5$
To show that it works, just note that $x^5+x-1=(x^3+x^2-1)(x^2-x+1)$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
OronSH
1748 posts
#31
Y by
By polynomial division if $x^n+x^2-1\nmid x^m+x-1$ then there is a remainder term which is eventually always smaller than the denominator, giving non integers. Thus $x^n+x^2-1\mid x^m+x-1$. Rearranging, $x^n+x^2-1\mid\tfrac1x((x^m+x-1)-(x^n+x^2-1))+(x^m+x-1)=x^{n-1}(x^{m-n+1}+x^{m-n}-1)$ so $m-n+1\ge n$. Now let $r$ be a root of $x^n+x^2-1$ with $0<r<1$ which exists by IVT. Then $r^m=1-r,r^n=1-r^2\implies r^{m-n}=\tfrac1{r+1}$ which is between $\tfrac 12$ and $1$. However $r^n\le\tfrac12$ as otherwise $r^n+r^2-1>\tfrac12+\tfrac12-1=0$. Thus $m-n<n$. Together we have $m=2n-1$, which implies $x^n+x^2-1\mid x^n+x^{n-1}-1$, so $n=3,m=5$ is the only solution.
This post has been edited 1 time. Last edited by OronSH, Feb 27, 2025, 6:07 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Ilikeminecraft
662 posts
#32
Y by
Problem is equivalent to finding $m, n$ such that $a^n + a^2 - 1 \mid a^m + a - 1.$

Let $f(x) = x^m + x - 1, g(x) = x^n + x^2 - 1.$ Let $0 < r < 1$ be a real root to $g(x)$. This exists by IVT. Hence, we must have that $f(r) = 0.$ I claim that $m < 2n.$

First, we have that $r^m + r = r^n + r^2 = 1.$ Rearranging, we have that $r(1 - r) = r^{n}(1 - r^{m - n}) = (1 - r^2)(1 - r^{m - n}).$ Hence, $r^{m - n + 1} + r^{m - n} = 1.$ Now, assume for the sake of contradiction, that $m \geq 2n.$ It follows that $r^{m - n + 1} + r^{m - n} < r^{n + 1} + r^{n} = r^{n + 1} + 1 - r < 1.$ Thus, we have that $m < 2n.$

We now simplify the problem a bit:
\begin{align*}
  a^n + a^2 - 1 \mid a^m + a - 1 & \implies a^n + a^2 - 1 \mid (a^m + a - 1)(a + 1) \\
  & \implies a^n + a^2 - 1 \mid a^{m + 1} + a^m - a^n \\
  & \implies a^n + a^2 - 1 \mid a^{m - n + 1} + a^{m - n} - 1 \\
\end{align*}Hence, since $n < m < 2n,$ we have that the degree of the LHS is $m - n + 1 < n + 1.$ Hence, it must be $n,$ and so $m = 2n - 1.$ Hence, the only solution is $(5, 3)$ only.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Markas
150 posts
#33
Y by
Let $f(x) = x^m + x - 1$ and $g(x) = x^n + x^2 - 1$. Now f(x) = g(x).q(x) + r(x). We have that $deg (r) < deg (g) = n$ $\Rightarrow$ $|r(x)| < |g(x)|$ and for sufficiently large x $g(x) \mid r(x)$ for infinite values of x $\Rightarrow$ r(x) = 0 $\Rightarrow$ $g(x) \mid f(x)$. Assume that $m \geq 2n$. Since $g(0).g(1) < 0$, f(x) and g(x) have a common root $\alpha \in (0,1)$ $\Rightarrow$ $1 - \alpha = \alpha^m \leq \alpha^{2n} = (1 - \alpha^2)^2$ $\Rightarrow$ $\alpha.(\alpha - 1).(\alpha^2 + \alpha - 1) \geq 0$ $\Rightarrow$ $\alpha^2 + \alpha - 1 \leq 0$, but $\alpha^2 + \alpha - 1 > \alpha^m + \alpha - 1$ - contradiction $\Rightarrow$ $n + 1 \leq m \leq 2n - 1$ $\Rightarrow$ $f(x) = x^{m - n}.g(x) - x^{m - n + 2} + x^{m - n} + x - 1$. Now $g(x) \mid h(x)$, where $h(x) = x^{m - n + 2} - x^{m - n} - x + 1$. We have $deg(h) = m - n + 2 \leq 2n - 1 - n + 2 = n + 1 = deg(g) + 1$ $\Rightarrow$ h(x) = g(x) or h(x) = g(x)(x - a), but 1 is a root of h(x), but not of g(x) $\Rightarrow$ a = 1 $\Rightarrow$ m = 2n - 1 and $x^{n + 1} - x^{n - 1} - x + 1 = (x - 1)(x^n + x^2 - 1)$ $\Rightarrow$ n = 3, m = 5.
Z K Y
N Quick Reply
G
H
=
a