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 June Highlights and 2025 AoPS Online Class Information
jlacosta   0
Jun 2, 2025
Congratulations to all the mathletes who competed at National MATHCOUNTS! If you missed the exciting Countdown Round, you can watch the video at this link. Are you interested in training for MATHCOUNTS or AMC 10 contests? How would you like to train for these math competitions in half the time? We have accelerated sections which meet twice per week instead of once starting on July 8th (7:30pm ET). These sections fill quickly so enroll today!

[list][*]MATHCOUNTS/AMC 8 Basics
[*]MATHCOUNTS/AMC 8 Advanced
[*]AMC 10 Problem Series[/list]
For those interested in Olympiad level training in math, computer science, physics, and chemistry, be sure to enroll in our WOOT courses before August 19th to take advantage of early bird pricing!

Summer camps are starting this 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 a transformative 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][*]June 5th, Thursday, 7:30pm ET: Open Discussion with Ben Kornell and Andrew Sutherland, Art of Problem Solving's incoming CEO Ben Kornell and CPO Andrew Sutherland host an Ask Me Anything-style chat. Come ask your questions and get to know our incoming CEO & CPO!
[*]June 9th, Monday, 7:30pm ET, Game Jam: Operation Shuffle!, Come join us to play our second round of Operation Shuffle! If you enjoy number sense, logic, and a healthy dose of luck, this is the game for you. No specific math background is required; all are welcome.[/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, Jun 15 - Oct 12
Monday, Jun 30 - Oct 20
Wednesday, Jul 16 - Oct 29
Sunday, Aug 17 - Dec 14
Tuesday, Aug 26 - Dec 16
Friday, Sep 5 - Jan 16
Monday, Sep 8 - Jan 12
Tuesday, Sep 16 - Jan 20 (4:30 - 5:45 pm ET/1:30 - 2:45 pm PT)
Sunday, Sep 21 - Jan 25
Thursday, Sep 25 - Jan 29
Wednesday, Oct 22 - Feb 25
Tuesday, Nov 4 - Mar 10
Friday, Dec 12 - Apr 10

Prealgebra 2 Self-Paced

Prealgebra 2
Monday, Jun 2 - Sep 22
Sunday, Jun 29 - Oct 26
Friday, Jul 25 - Nov 21
Sunday, Aug 17 - Dec 14
Tuesday, Sep 9 - Jan 13
Thursday, Sep 25 - Jan 29
Sunday, Oct 19 - Feb 22
Monday, Oct 27 - Mar 2
Wednesday, Nov 12 - Mar 18

Introduction to Algebra A Self-Paced

Introduction to Algebra A
Sunday, Jun 15 - Oct 12
Thursday, Jun 26 - Oct 9
Tuesday, Jul 15 - Oct 28
Sunday, Aug 17 - Dec 14
Wednesday, Aug 27 - Dec 17
Friday, Sep 5 - Jan 16
Thursday, Sep 11 - Jan 15
Sunday, Sep 28 - Feb 1
Monday, Oct 6 - Feb 9
Tuesday, Oct 21 - Feb 24
Sunday, Nov 9 - Mar 15
Friday, Dec 5 - Apr 3

Introduction to Counting & Probability Self-Paced

Introduction to Counting & Probability
Sunday, Jun 1 - Aug 24
Thursday, Jun 12 - Aug 28
Wednesday, Jul 2 - Sep 17
Sunday, Jul 27 - Oct 19
Monday, Aug 11 - Nov 3
Wednesday, Sep 3 - Nov 19
Sunday, Sep 21 - Dec 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Friday, Oct 3 - Jan 16
Tuesday, Nov 4 - Feb 10
Sunday, Dec 7 - Mar 8

Introduction to Number Theory
Monday, Jun 9 - Aug 25
Sunday, Jun 15 - Sep 14
Tuesday, Jul 15 - Sep 30
Wednesday, Aug 13 - Oct 29
Friday, Sep 12 - Dec 12
Sunday, Oct 26 - Feb 1
Monday, Dec 1 - Mar 2

Introduction to Algebra B Self-Paced

Introduction to Algebra B
Wednesday, Jun 4 - Sep 17
Sunday, Jun 22 - Oct 19
Friday, Jul 18 - Nov 14
Thursday, Aug 7 - Nov 20
Monday, Aug 18 - Dec 15
Sunday, Sep 7 - Jan 11
Thursday, Sep 11 - Jan 15
Wednesday, Sep 24 - Jan 28
Sunday, Oct 26 - Mar 1
Tuesday, Nov 4 - Mar 10
Monday, Dec 1 - Mar 30

Introduction to Geometry
Monday, Jun 16 - Dec 8
Friday, Jun 20 - Jan 9
Sunday, Jun 29 - Jan 11
Monday, Jul 14 - Jan 19
Wednesday, Aug 13 - Feb 11
Tuesday, Aug 26 - Feb 24
Sunday, Sep 7 - Mar 8
Thursday, Sep 11 - Mar 12
Wednesday, Sep 24 - Mar 25
Sunday, Oct 26 - Apr 26
Monday, Nov 3 - May 4
Friday, Dec 5 - May 29

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
Friday, Aug 8 - Feb 20
Tuesday, Aug 26 - Feb 24
Sunday, Sep 28 - Mar 29
Wednesday, Oct 8 - Mar 8
Sunday, Nov 16 - May 17
Thursday, Dec 11 - Jun 4

Intermediate Counting & Probability
Sunday, Jun 22 - Nov 2
Sunday, Sep 28 - Feb 15
Tuesday, Nov 4 - Mar 24

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

Precalculus
Sunday, Jun 1 - Nov 9
Monday, Jun 30 - Dec 8
Wednesday, Aug 6 - Jan 21
Tuesday, Sep 9 - Feb 24
Sunday, Sep 21 - Mar 8
Monday, Oct 20 - Apr 6
Sunday, Dec 14 - May 31

Advanced: Grades 9-12

Olympiad Geometry
Tuesday, Jun 10 - Aug 26

Calculus
Wednesday, Jun 25 - Dec 17
Sunday, Sep 7 - Mar 15
Wednesday, Sep 24 - Apr 1
Friday, Nov 14 - May 22

Group Theory
Thursday, Jun 12 - Sep 11

Contest Preparation: Grades 6-12

MATHCOUNTS/AMC 8 Basics
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!)
Sunday, Aug 17 - Nov 9
Wednesday, Sep 3 - Nov 19
Tuesday, Sep 16 - Dec 9
Sunday, Sep 21 - Dec 14 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Monday, Oct 6 - Jan 12
Thursday, Oct 16 - Jan 22
Tues, Thurs & Sun, Dec 9 - Jan 18 (meets three times a week!)

MATHCOUNTS/AMC 8 Advanced
Wednesday, Jun 11 - Aug 27
Sunday, Jun 22 - Sep 21
Tues & Thurs, Jul 8 - Aug 14 (meets twice a week!)
Sunday, Aug 17 - Nov 9
Tuesday, Aug 26 - Nov 11
Thursday, Sep 4 - Nov 20
Friday, Sep 12 - Dec 12
Monday, Sep 15 - Dec 8
Sunday, Oct 5 - Jan 11
Tues, Thurs & Sun, Dec 2 - Jan 11 (meets three times a week!)
Mon, Wed & Fri, Dec 8 - Jan 16 (meets three times a week!)

AMC 10 Problem Series
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!)
Sunday, Aug 10 - Nov 2
Thursday, Aug 14 - Oct 30
Tuesday, Aug 19 - Nov 4
Mon & Wed, Sep 15 - Oct 22 (meets twice a week!)
Mon, Wed & Fri, Oct 6 - Nov 3 (meets three times a week!)
Tue, Thurs & Sun, Oct 7 - Nov 2 (meets three times a week!)

AMC 10 Final Fives
Monday, Jun 30 - Jul 21
Friday, Aug 15 - Sep 12
Sunday, Sep 7 - Sep 28
Tuesday, Sep 9 - Sep 30
Monday, Sep 22 - Oct 13
Sunday, Sep 28 - Oct 19 (1:00 - 2:30 pm ET/10:00 - 11:30 am PT)
Wednesday, Oct 8 - Oct 29
Thursday, Oct 9 - Oct 30

AMC 12 Problem Series
Thursday, Jun 12 - Aug 28
Sunday, Jun 22 - Sep 21
Wednesday, Aug 6 - Oct 22
Sunday, Aug 10 - Nov 2
Monday, Aug 18 - Nov 10
Mon & Wed, Sep 15 - Oct 22 (meets twice a week!)
Tues, Thurs & Sun, Oct 7 - Nov 2 (meets three times a week!)

AMC 12 Final Fives
Thursday, Sep 4 - Sep 25
Sunday, Sep 28 - Oct 19
Tuesday, Oct 7 - Oct 28

AIME Problem Series A
Thursday, Oct 23 - Jan 29

AIME Problem Series B
Sunday, Jun 22 - Sep 21
Tuesday, Sep 2 - Nov 18

F=ma Problem Series
Wednesday, Jun 11 - Aug 27
Tuesday, Sep 16 - Dec 9
Friday, Oct 17 - Jan 30

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
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
Thursday, Aug 14 - Oct 30
Sunday, Sep 7 - Nov 23
Tuesday, Dec 2 - Mar 3

Intermediate Programming with Python
Sunday, Jun 1 - Aug 24
Monday, Jun 30 - Sep 22
Friday, Oct 3 - Jan 16

USACO Bronze Problem Series
Sunday, Jun 22 - Sep 1
Wednesday, Sep 3 - Dec 3
Thursday, Oct 30 - Feb 5
Tuesday, Dec 2 - Mar 3

Physics

Introduction to Physics
Sunday, Jun 15 - Sep 14
Monday, Jun 23 - Sep 15
Tuesday, Sep 2 - Nov 18
Sunday, Oct 5 - Jan 11
Wednesday, Dec 10 - Mar 11

Physics 1: Mechanics
Monday, Jun 23 - Dec 15
Sunday, Sep 21 - Mar 22
Sunday, Oct 26 - Apr 26

Relativity
Mon, Tue, Wed & Thurs, Jun 23 - Jun 26 (meets every day of the week!)
0 replies
jlacosta
Jun 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
Inspired by current year (2025)
Rijul saini   4
N a few seconds ago by Rg230403
Source: India IMOTC 2025 Day 4 Problem 1
Let $k>2$ be an integer. We call a pair of integers $(a,b)$ $k-$good if \[0\leqslant a<k,\hspace{0.2cm} 0<b \hspace{1cm} \text{and} \hspace{1cm} (a+b)^2=ka+b\]Prove that the number of $k-$good pairs is a power of $2$.

Proposed by Prithwijit De and Rohan Goyal
4 replies
Rijul saini
Yesterday at 6:46 PM
Rg230403
a few seconds ago
Write down sum or product of two numbers
Rijul saini   2
N 12 minutes ago by Rg230403
Source: India IMOTC Practice Test 2 Problem 3
Suppose Alice's grimoire has the number $1$ written on the first page and $n$ empty pages. Suppose in each of the next $n$ seconds, Alice can flip to the next page, and write down the sum or product of two numbers (possibly the same) which are already written in her grimoire.

Let $F(n)$ be the largest possible number such that for any $k < F(n)$, Alice can write down the number $k$ on the last page of her grimoire. Prove that there exists a positive integer $N$ such that for all $n>N$, we have that \[n^{0.99n}\leqslant F(n)\leqslant n^{1.01n}.\]
Proposed by Rohan Goyal and Pranjal Srivastava
2 replies
Rijul saini
Yesterday at 6:56 PM
Rg230403
12 minutes ago
"all of the stupid geo gets sent to tst 2/5" -allen wang
pikapika007   27
N 41 minutes ago by HamstPan38825
Source: USA TST 2024/2
Let $ABC$ be a triangle with incenter $I$. Let segment $AI$ intersect the incircle of triangle $ABC$ at point $D$. Suppose that line $BD$ is perpendicular to line $AC$. Let $P$ be a point such that $\angle BPA = \angle PAI = 90^\circ$. Point $Q$ lies on segment $BD$ such that the circumcircle of triangle $ABQ$ is tangent to line $BI$. Point $X$ lies on line $PQ$ such that $\angle IAX = \angle XAC$. Prove that $\angle AXP = 45^\circ$.

Luke Robitaille
27 replies
pikapika007
Dec 11, 2023
HamstPan38825
41 minutes ago
Interior point of ABC
Jackson0423   2
N an hour ago by Diamond-jumper76
Let D be an interior point of the acute triangle ABC with AB > AC so that ∠DAB = ∠CAD. The point E on the segment AC satisfies ∠ADE = ∠BCD, the point F on the segment AB satisfies ∠F DA = ∠DBC, and the point X on the line AC satisfies CX = BX. Let O1 and O2 be the circumcenters of the triangles ADC and EXD, respectively. Prove that the lines BC, EF, and O1O2 are concurrent
2 replies
Jackson0423
Today at 2:17 PM
Diamond-jumper76
an hour ago
IMO ShortList 2008, Number Theory problem 2
April   41
N an hour ago by shendrew7
Source: IMO ShortList 2008, Number Theory problem 2, German TST 2, P2, 2009
Let $ a_1$, $ a_2$, $ \ldots$, $ a_n$ be distinct positive integers, $ n\ge 3$. Prove that there exist distinct indices $ i$ and $ j$ such that $ a_i + a_j$ does not divide any of the numbers $ 3a_1$, $ 3a_2$, $ \ldots$, $ 3a_n$.

Proposed by Mohsen Jamaali, Iran
41 replies
April
Jul 9, 2009
shendrew7
an hour ago
Cute Geometry
EthanWYX2009   1
N an hour ago by Funcshun840
In triangle \( X_AX_BX_C \), let \( X \) and \( Y \) be a pair of isogonal conjugate points. The line \( XX_A \) intersects \( X_BX_C \) at \( P \), and the line \( XY \) intersects \( X_BX_C \) at \( Q \). Let the circumcircle of \( XX_BX_C \) and the circumcircle of \( XPQ \) intersect again at \( R \) (other than \( X \)). Prove that the line \( RX \) bisects \( \angle PRX_A \).
IMAGE
1 reply
EthanWYX2009
Today at 2:19 PM
Funcshun840
an hour ago
Cheese??? - I'm definitely doing smth wrong
Sid-darth-vater   0
an hour ago
Source: European Girls Math Olympiad 2013/1
The problem is attached. So is my diagram which has a couple of markings on it for clarity :)

So basically, I found a solution which I am 99% confident that I am doing smth wrong, I just can't find the error. Any help would be appreciated!

We claim that triangle $BAC$ is right angled (for clarity, $<BAC = 90$). Define $S$ as a point on line $AC$ such that $SD$ is parallel to $AB$. Additionally, since $BC = DC$, $\triangle BAC \cong \triangle DSC$ meaning $<BAC = <CSD$, $AC = CS$, and $AB = SD$. Also, since $BE = AD$, by SSS, we have $\triangle BEA \cong DAS$ meaning $\angle EAB= \angle CSD$. Since $\angle EAS + \angle BAC = 180$, we have $2\angle ASD = 180$ or $\angle ASD = \angle BAC = 90$ and we are done.
0 replies
Sid-darth-vater
an hour ago
0 replies
IMO ShortList 2002, algebra problem 1
orl   132
N an hour ago by SomeonecoolLovesMaths
Source: IMO ShortList 2002, algebra problem 1
Find all functions $f$ from the reals to the reals such that

\[f\left(f(x)+y\right)=2x+f\left(f(y)-x\right)\]

for all real $x,y$.
132 replies
orl
Sep 28, 2004
SomeonecoolLovesMaths
an hour ago
All good sequences are degenerate
v4913   13
N an hour ago by Jack_w
Source: EGMO 2022/3
An infinite sequence of positive integers $a_1, a_2, \dots$ is called $good$ if
(1) $a_1$ is a perfect square, and
(2) for any integer $n \ge 2$, $a_n$ is the smallest positive integer such that $$na_1 + (n-1)a_2 + \dots + 2a_{n-1} + a_n$$is a perfect square.
Prove that for any good sequence $a_1, a_2, \dots$, there exists a positive integer $k$ such that $a_n=a_k$ for all integers $n \ge k$.
(reposting because the other thread didn't get moved)
13 replies
v4913
Apr 10, 2022
Jack_w
an hour ago
One of the lines is tangent
Rijul saini   6
N 2 hours ago by bin_sherlo
Source: LMAO 2025 Day 2 Problem 2
Let $ABC$ be a scalene triangle with incircle $\omega$. Denote by $N$ the midpoint of arc $BAC$ in the circumcircle of $ABC$, and by $D$ the point where the $A$-excircle touches $BC$. Suppose the circumcircle of $AND$ meets $BC$ again at $P \neq D$ and intersects $\omega$ at two points $X$, $Y$.

Prove that either $PX$ or $PY$ is tangent to $\omega$.

Proposed by Sanjana Philo Chacko
6 replies
Rijul saini
Yesterday at 7:02 PM
bin_sherlo
2 hours ago
Tricky coloured subgraphs
bomberdoodles   1
N 2 hours ago by bomberdoodles
Consider a graph with nine vertices, with the vertices labelled 1 through 9. An
edge is drawn between each pair of vertices.

Sally picks any edge of her choice, and colours that edge either red or blue. She keeps repeating
this process, choosing any uncoloured edge, and colouring that edge either red or blue.
The only rule is that she is never allowed to colour an edge either red or blue so that one
of these scenarios occurs:

(i) There exist three numbers $a, b, c$, with $1 \le a < b < c \le 9$, for which the edges $ab, bc, ac$ are
all coloured red.

(ii) There exist four numbers $p, q, r, s,$ with $1 \le p < q < r < s \le 9$, for which the edges $pq, pr,
ps, qr, qs, rs$ are all coloured blue.

For example, suppose Sally starts by choosing edges 14 and 34, and colouring both of these
edges red. Then if she picks edge 13, she must colour this edge blue, because she cannot colour
it red.

What is the maximum number of edges that Sally can colour?
1 reply
bomberdoodles
2 hours ago
bomberdoodles
2 hours ago
Permutation guessing game
Rijul saini   1
N 2 hours ago by asbodke
Source: India IMOTC Day 3 Problem 3
Let $n$ be a positive integer. Alice and Bob play the following game. Alice considers a permutation $\pi$ of the set $[n]=\{1,2, \dots, n\}$ and keeps it hidden from Bob. In a move, Bob tells Alice a permutation $\tau$ of $[n]$, and Alice tells Bob whether there exists an $i \in [n]$ such that $\tau(i)=\pi(i)$. Bob wins if he ever tells Alice the permutation $\pi$. Prove that Bob can win the game in at most $n \log_2(n) + 2025n$ moves.

Proposed by Siddharth Choppara and Shantanu Nene
1 reply
Rijul saini
Yesterday at 6:43 PM
asbodke
2 hours ago
Tricky FE
Rijul saini   10
N 2 hours ago by MathematicalArceus
Source: LMAO 2025 Day 1 Problem 1
Let $\mathbb{R}$ denote the set of all real numbers. Find all functions $f : \mathbb{R} \to \mathbb{R}$ such that
$$f(xy) + f(f(y)) = f((x + 1)f(y))$$for all real numbers $x$, $y$.

Proposed by MV Adhitya and Kanav Talwar
10 replies
Rijul saini
Yesterday at 6:58 PM
MathematicalArceus
2 hours ago
IMO ShortList 2002, number theory problem 6
orl   32
N 2 hours ago by Rayvhs
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
32 replies
orl
Sep 28, 2004
Rayvhs
2 hours ago
already well-known, but yet strangely difficult
Valentin Vornicu   37
N Apr 30, 2025 by cursed_tangent1434
Source: Romanian ROM TST 2004, problem 6
Let $a,b$ be two positive integers, such that $ab\neq 1$. Find all the integer values that $f(a,b)$ can take, where \[ f(a,b) = \frac { a^2+ab+b^2} { ab- 1} . \]
37 replies
Valentin Vornicu
May 1, 2004
cursed_tangent1434
Apr 30, 2025
already well-known, but yet strangely difficult
G H J
Source: Romanian ROM TST 2004, problem 6
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Valentin Vornicu
7301 posts
#1 • 7 Y
Y by samrocksnature, Adventure10, Mango247, and 4 other users
Let $a,b$ be two positive integers, such that $ab\neq 1$. Find all the integer values that $f(a,b)$ can take, where \[ f(a,b) = \frac { a^2+ab+b^2} { ab- 1} . \]
This post has been edited 1 time. Last edited by Valentin Vornicu, Sep 24, 2005, 2:42 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
harazi
5526 posts
#2 • 4 Y
Y by samrocksnature, Adventure10, Mango247, ehuseyinyigit
Do not mention that a very similar problem: $\frac{a^2+b^2}{ab-1}$ appeared not long ago in a USA TST. But it's very interesting what happens with this problem after you start solving it. It has a step curiously difficult. A very nice problem, like all the other problems given in this very difficult TST.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
grobber
7849 posts
#3 • 4 Y
Y by Bumblebee60, samrocksnature, Adventure10, Mango247
I think I have an idea about what a solution might look like. We consider ordered pairs $(a,b)$ s.t. $a\leq b$. We can go from the pair $(a,b)$ to a "smaller pair" $(a',b')=(\frac{a+b+a^3}{ab-1},a)$ until we eventually reach a "dead-end", i.e. a pair which can no longer become smaller by the above transformation.

A simple calculation shows that $f(a,b)$ is invariant wrt the transformation mentioned, so the value we're interested in remains the same. I also think that the "dead-end", as I've called it, must be one of the pairs $(1,2)$, $(1,4)$ and $(2,2)$. By analyzing the 3 cases we obtain $f(a,b)\in \{7,4\}$ (it's 7 in the first two cases and 4 in the third case).

I don't even know if this is th correct answer, let alone the correct idea for a solution, but it looks like this at 2 AM :).
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Valentin Vornicu
7301 posts
#4 • 3 Y
Y by samrocksnature, Adventure10, Mango247
The problem was proposed at the upmentioned romanian test, but, no matter the fact that the idea of the problem is well-known, at least for people which studied a little bit the questions from past IMOs (especially IMO '88 :D), only two contestants have managed to master the problem

you are right, Grobber ... the good idea, and also the good result. :D some more computations for clarification are required, but that's the main idea.
This post has been edited 1 time. Last edited by Valentin Vornicu, Sep 24, 2005, 2:42 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
grobber
7849 posts
#5 • 3 Y
Y by samrocksnature, Adventure10, Mango247
Well, I suppose I don't have to do the actual computations (I pity the contestants for that, as I often lose my interest in a problem after getting the main idea :D)..

Do you know who proposed the problem?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
harazi
5526 posts
#6 • 4 Y
Y by Kunihiko_Chikaya, samrocksnature, Adventure10, Mango247
n As far as I know, it was proposed by Mircea Becheanu.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Kunihiko_Chikaya
14514 posts
#7 • 4 Y
Y by samrocksnature, Adventure10, Mango247, and 1 other user
case1:$a=b$

$f(a,b)=\frac{3a^2}{a^2-1}=3+\frac{3}{a^2-1}\in\mathbb{N}$,we have $a^2-1=3$.Thus $a=2$.i.e. $(a.b)=(2,2)$,yielding $f(a,b)=4$.

case2:$a\neq b$
By symmetry of $a$ and $b$,WLOG $a>b\geqq1$,so we can set $a\geqq b+1$,thus we have

$f(a,b)=\frac{a^2+ab+b^2}{ab-1}=1+\frac{a^2+b^2+1}{ab-1}\cdots\ $ (☆)

$\leqq1+\frac{a^2+(a-1)^2+1}{ab-1}=1+\frac{2\left[(a-1)a+1\right]}{ab-1}\in\mathbb{N}$,since $(a-1)a+1$ is odd, we obtain $2|ab-1$,

i.e. $ab-1=1,2$,yielding $(a,b)=(1,2),(1,3)$

For $(a,b)=(1,2),f(a,b)=7$ and $(a,b)=(1,3)=\frac{3}{2}$, in addition to from (☆)

in using A.M$\geqq$ G.M and $a\geqq2,b\geqq1$,we obtain

$f(a,b)\geqq 1+\frac{2ab+1}{ab-1}\geqq 1+2+\frac{3}{ab-1}>3$.

Consequentry,The value of $f(a,b)$ is $4,7$.

kunny
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ikap
173 posts
#8 • 9 Y
Y by Kunihiko_Chikaya, tree_3, samrocksnature, Adventure10, Mango247, and 4 other users
you are so far from reality kunny....
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Tales
16 posts
#9 • 3 Y
Y by samrocksnature, Adventure10, Mango247
kunny´s solution is wrong..

grobber, i don´t undestand your solution.
can you help me? :)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
symplectic_manifold
25 posts
#10 • 3 Y
Y by samrocksnature, Adventure10, Mango247
Neither do I...I can't get how the procedure used by Grobber leads to the "dead-end"...and why this very procedure is justified in this case.
But still another question:
Could we in some way apply...or is there at least a connection to...Diophantine equations of the second order here:
ax^2+bxy+cy^2=k
? I looked it up at MathWorld and became curious about a possible connection.
Cheers!
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Farhad
27 posts
#11 • 3 Y
Y by samrocksnature, Adventure10, Mango247
Valentin Vornicu wrote:
Let $a,b$ be two positive integers, such that $ab\neq 1$. Find all the integer values that $f(a,b)$ can take, where \[ f(a,b) = \frac{ a^2+ab+b^2} { ab- 1} .  \]
i've seen this problem approximately a year ago
try to take a minimal and then show that there is x which is less than a but it's pretty hard i think
another way is to try to make it with the help of quadratic equation
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Feuerbach
35 posts
#12 • 4 Y
Y by samrocksnature, Fordingle, Adventure10, Mango247
Valentin Vornicu wrote:
Let $a,b$ be two positive integers, such that $ab\neq 1$. Find all the integer values that $f(a,b)$ can take, where \[ f(a,b) = \frac{ a^2+ab+b^2} { ab- 1} .  \]
Let for some integer $n$ we have $n=\frac{a^2+b^2+ab}{ab-1}$.
Suppose $a>b>2$.
Then we have $a^2+b^2+ab=nab-n$, $a^2+a\cdot b(1-n)+b^2+n=0$. This equation has the second root (with respect to $a$), call it $a'$.
It's easy to prove that $0<a'<a$. We can repeat this while both $a,b>2$.
Hence all possible values of $n$ can be obtained while one of the numbers (i.e. b) is 0, 1 or 2, which is easy to handle.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
armanf
26 posts
#13 • 3 Y
Y by samrocksnature, Adventure10, Mango247
Some Other questions with the same idea :

1: Find all natural numbers x,y,z such that x^2 + y^2 + z^2 = 3xyz

2: Suppose that m is a given natural number ,Show that there exist infinitly pairs (x,y) of natural numbers such that

xy | x^2 + y^2 + m

3: For which natural numbers n we can find integers a,b,c,d such that:

n = (a^2 + b^2 + c^2 + d^2)/(1 + abcd)

Good luck. :D
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Simo_the_Wolf
106 posts
#14 • 3 Y
Y by samrocksnature, Adventure10, Mango247
armanf wrote:
Some Other questions with the same idea :

1: Find all natural numbers x,y,z such that x^2 + y^2 + z^2 = 3xyz

2: Suppose that m is a given natural number ,Show that there exist infinitly pairs (x,y) of natural numbers such that

xy | x^2 + y^2 + m

3: For which natural numbers n we can find integers a,b,c,d such that:

n = (a^2 + b^2 + c^2 + d^2)/(1 + abcd)

Good luck. :D

for the 2nd, saying WLOG that x is the greatest, take the couple $(x',y')=(\frac{y^2+m}x,x'$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
perfect_radio
2607 posts
#15 • 3 Y
Y by samrocksnature, Adventure10, Mango247
I still can't find the complete solution :( I'm having troubles understanding why the new pair is "smaller" than the previous one. In IMO '88, that's clear, but here :blush: Does anyone dare to help me?
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ishfaq420haque
151 posts
#16 • 3 Y
Y by samrocksnature, Adventure10, Mango247
can anyone kindly give a complete solution?i am trying something like IMO 88 but it seems its not working here...
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
FelixD
588 posts
#17 • 10 Y
Y by lukakuta, trenkialabautroj, Amir Hossein, Cico, AlastorMoody, Imayormaynotknowcalculus, samrocksnature, Adventure10, Mango247, and 1 other user
Of course Vieta-Jumping is working here :)

See my proof in the attachment.
Attachments:
RomanianTST04.pdf (47kb)
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
trenkialabautroj
82 posts
#18 • 3 Y
Y by lukakuta, samrocksnature, Adventure10
thanks felixD
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
AmirAlison
118 posts
#19 • 2 Y
Y by samrocksnature, Adventure10
It's easy, not?
$a^2+b^2+ab$ is divisible by $ab-1$, so $a^2+b^2+2ab-1$ is also divisible by $ab-1$. $(a+b-1)(a+b+1)$ is divisible by $ab-1$. The rest is not so difficult.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
v_Enhance
6882 posts
#20 • 9 Y
Y by mathleticguyyy, v4913, samrocksnature, Inconsistent, Fordingle, SSaad, HamstPan38825, Adventure10, Mango247
With Alan Chen, Alexandru Girban, Anushka Aggarwal, Derek Liu, Dhrubajyoti Ghosh, Eric Shen (USA), Gene Yang, Jeffrey Kwan
Paul Hamrick, Sean Li, Zifan Wang:

Suppose that \[ k = \frac{a^2+ab+b^2}{ab-1} 	\iff a^2 - b(k-1) \cdot a + (b^2+k) = 0. \]We contend either $k=4$ or $k=7$. These are achieved by $f(2,2) = = 4$ and $f(2,1) = 7$.

Now fix $k$ and suppose $(a,b)$ is a minimal pair for that $k$. If $a=b$ we get $f(a,a) = \frac{3a^2}{a^2-1} = 3 + \frac{3}{a^2-1}$ which easily implies $a=2$ and hence $f(a,a) = 7$.

Else, assume $a > b$ and note that if $(a,b)$ is a solution then by Vieta jumping we get a neighboring pair \[ (a,b) \rightarrow \left( \frac{b^2+k}{a}, b \right) 	= \left( (k-1) \cdot b - a, b \right).  \]This forces $\frac{b^2+k}{a} \ge a$, so $k \ge a^2-b^2$. A calculation then gives \begin{align*} 	\frac{a^2+ab+b^2}{ab-1} &\ge a^2-b^2 \\ 	\iff a(2a+b) &\ge ab(a-b)(a+b) \\ 	\iff 2a+b &\ge b(a-b)(a+b) \\ 	\implies 2 &> b(a-b). \end{align*}This can only occur for $(a,b) = (2,1)$ hence $f(2,1) = 7$.

Remark: The Vieta chains for $k=4$ and $k=7$ are given respectively by \[ (2,2) \xleftrightarrow{a^2-6a+8} 		(2,4) \xleftrightarrow{a^2-12a+20} 		(10,4) \longleftrightarrow \dots \]and \[ \dots \longleftrightarrow 		(23,4) \xleftrightarrow{a^2-24a+23} 		(4,1) \xleftrightarrow{a^2-6a+8} 		(2,1) \xleftrightarrow{a^2-12a+11} 		(11,2) \xleftrightarrow{a^2-66a+128} 		(64,11) \longleftrightarrow \dots.  \]The proof above can be phrased conceptually as saying that $(2,1)$ and $(2,2)$ are the unique pairs (across all $k$) which do not have a neighbor of lesser sum.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
ubermensch
820 posts
#21 • 3 Y
Y by samrocksnature, Adventure10, alexanderhamilton124
I've no clue what exactly I'm doing here, new to Vietta jumping, but, well...
For $a \neq b$, say $a>b$.
Letting $f(a,b)=k \implies a^2+b^2+ab=kab-k \implies a^2+ab(1-k)+(b^2+k)=0$.
Say $(a,b)$ is the pair for the particular $k$ that is an output of $f$ such that $b$ is minimal.
Now say $a_0$ is another root of $x^2+xb(1-k)+(b^2+k)=0$, and clearly $a_0 \geq b$. Assume $a_0<a \implies a>a_0 \geq b$.
Notice $aa_0=b^2+k \implies b^2+k>ab \implies k \geq b(a-b)=ab-b^2$.
Also $a+a_0 =b(1-k) \implies 2a>b(k-1) \implies \frac{2a}b +1>k \geq ab-b^2 \implies 2a+b>ab^2-b^3 \implies \frac{b^3+b}{b^2-2} \geq a$.
As $a \geq b+1$, this implies $b^3+b \geq (b^2-2)(b+1)=b^3+b^2-2b-2 \implies 0 \geq b^2-3b-2 \implies b=1,2$ or $3$.

Thus we have 4 cases to deal with:
$b=1 \implies a-1 \mid a^2+a+1 \implies a-1 \mid a^2+a+1-a^2+1 \implies a-1 \mid 3 \implies a=4$ or $a=2$.
$b=2 \implies 2a-1 \mid a^2+2a+4=2a^2+4a+8-a(2a-1)=5a+8=10a+16-5(2a-1)=21 \implies a=1,2,4,11$.
$b=3 \implies 3a-1 \mid 91=13 \cdot 7 \implies$ Contradiction.
$a=b \implies a^2-1 \mid 3a^2 \implies a^2-1 \mid 3 \implies a=2=b$.
Checking all these cases give the only values of $k=f(a,b)$ as $4$ or $7$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
arzhang2001
251 posts
#22 • 1 Y
Y by samrocksnature
maybe i make mistake but if my solution be true it mean problem is too easy for TST.
$ f(a,b) = \frac { a^2+ab+b^2} { ab- 1} .  $then should $\frac {  (a+b)^2-1} { ab- 1}  $ be a integer. so
we can suppose that $a+b=t$ so:
$t^2-1=m(ta-a^2-1)$ then: $t^2-(ma)t+(m-1+ma^2)=0$ then we can check the possible roots and get solution.
This post has been edited 2 times. Last edited by arzhang2001, Apr 27, 2020, 7:57 AM
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
#23 • 1 Y
Y by samrocksnature
We operate on the function $g(a,b) = f(a,b)-1=\frac{a^2+b^2+1}{ab-1}$. We first resolve some edge-cases.

Claim: If $b=1$, then $g(a,b)=6$.

Solution: Note that
\[g(a,1)=\frac{a^2+2}{a-1}=a+1+\frac{3}{a-1},\]so we get $a\in \{2,4\}$ and $g(a,1)=6$. $\fbox{}$

Claim: If $a=b$, then $g(a,b)=3$.

Solution: Note that
\[g(a,a)=\frac{2a^2+1}{a^2-1} = 2+\frac{3}{a^2-1}.\]This implies $a=2$, so $g(a,b)=3$. $\fbox{}$

We can now freely assume $a>b>1$ WLOG. Set $a/b=r$ so we get
\[g(a,b)=\frac{a^2+b^2+1}{ab-1}=\frac{r^2b^2+b^2+1}{rb^2-1} = r+\frac{b^2+r+1}{rb^2-1}=r+\frac{1}{r}+\frac{r+1+\frac{1}{r}}{rb^2-1} \le r+\frac{1}{r}+\frac{r+1+\frac{1}{r}}{4r-1}.\]Then, note the inequality
\[4r-1>3r >r+1+1>r+1+\frac{1}{r},\]so we must have
\[g(a,b)=\left\lceil r+\frac{1}{r}\right\rceil < r+\frac{1}{r}+1<r+2\]because
\[\frac{r+1+\frac{1}{r}}{4r-1}<1\]and $g(a,b)\in\mathbb{Z}$. Now, we use bruteforce to make Vieta Jumping work; we take some choice of $(a,b)$ and either reduce $|a|+|b|$ or get stuck at some particular points. WLOG assume $a>b$ as we already dealt with the other cases. Let $g(a,b)=k$. We can assume $k\not\in\{3,6\}$ as we have already found constructions for those $k$.

We write
\[a^2+b^2+1=kab-k.\]Rewrite this as
\[a^2-(kb)a+b^2+k+1=0.\]Thus, the other root of this quadratic in $a$ is
\[\frac{b^2+k+1}{a} < \frac{b^2+k+1}{b(k-2)} = \frac{b}{k-2}+\frac{k+1}{b(k-2)}.\]We take the time to note that as $k\ne 3$ and $k\ge r+\frac{1}{r}>2$, we have
\[\frac{b^2+k+1}{a}<\frac{b}{2}+\frac{k+1}{2(k-2)} = \frac{b}{2}+\frac{1}{2}+\frac{3}{2(k-2)}\le \frac{b}{2}+\frac{1}{2}+\frac{3}{4} = \frac{b}{2}+\frac{b}{2}+\frac{1}{4}=b+\frac{1}{4}.\]As the latter expression is an integer and cannot be $b$ (as that would give $k=3$, which is disallowed), we get that $|a|+|b|$ is monotonically decreasing when we Vieta Jump, absurd. Thus, $k\in \{3,6\}$ are the only possibilities and so $f(a,b)\in \{4,7\}$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Illuzion
211 posts
#24 • 1 Y
Y by samrocksnature
Let's look at $g(a, b)=f(a, b)-1=\frac{a^2+b^2+1}{ab-1}.$ Note that by $\text{AM-GM}$ we have $g(a, b)>2.$ Consider the solution $(a_0, b_0)$ with minimal sum, for which $g(a_0, b_0)=k$ is an integer. Assume WLOG $a_0\geq b_0.$ Consider the function $h(a)=a^2-kb_0a+b_0^2+k+1.$ We know that there is a number $a_1\in \mathbb{R},$ such that $$h(a_1)=0, a_0+a_1=kb_0, a_0a_1=b_0^2+k+1.$$From here we easily deduce $a_1\in \mathbb{Z}_{> 0}$ and therefore it must be the case $a_1\geq a_0.$

Case 1: Assume that $b_0\geq 2$ and recall that $k\geq 3.$ We obtain $$h(b_0)=b_0^2(2-k)+k+1\leq 4(2-k)+k+1=9-3k\leq 0,$$so we must have $a_1\geq b_0\geq a_0\geq b_0,$ so $a_0=b_0$ and now by simple polynomial division we obtain $(a_0, b_0)=(2, 2),$ and so $f(a, b)=g(a, b)+1=4.$

Case 2: Let $b_0=1.$ We then have $a_0-1\mid a_0^2+2,$ and so $a_0\in \{2, 4\}.$ In both cases we deduce $f(a, b)=g(a, b)+1=7.$ $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
algebra_star1234
2467 posts
#25 • 1 Y
Y by samrocksnature
We claim the only possible integer values are $4$ and $7$. First, note that when $a=b$, the fraction becomes $\frac{3a^2}{a^2-1} = 3 + \frac{3}{a^2-1}$ which is only an integer for $a=2$. This yields $f(a,b)=4$. Now, assume that $a>b>0$. We will use Vieta jumping. We have
\[ \frac{a^2+ab+b^2}{ab-1} = k \implies a^2 - (k-1)b \cdot a + b^2 + k .\]Therefore, we can jump from the pair $(a,b)$ to $\left(\frac{b^2+k}{a},b)\right)$. This process always produces a smaller pair when $\frac{b^2+k}{a} < a$ or when $k < a^2 - b^2$. In this case we have,
\[ \frac{a^2+ab+b^2}{ab-1} < a^2 - b^2 \iff \frac{2a+b}{a+b} < b(a-b) \]Note that $b(a-b) \ge 2 \ge \frac{2a+b}{a+b}$ when $b \ge 2$. Therefore, the only case when this breaks is when $a=1$ and $b = 2$. This yields $f(a,b) = 7$, 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.
Eyed
1065 posts
#26 • 1 Y
Y by samrocksnature
The only possible values of $f(a, b)$ are $4,7$, which can be obtained with $(a,b) = (2,1), (2,2)$ respectively.

Let $k = \frac{a^{2} + ab + b^{2}}{ab-1}$. Then, we have $a^{2} - a(kb-b) + (k+b^{2}) = 0$. Suppose $a>b>0$ is a solution. Then,$(\frac{k+b^{2}}{a}, b)$ is also a solution. Observe that for $b\geq 2$, or $a-b\geq 2$ then we have
\[2a+b < b(a-b)(a+b) = a^{2}b - b^{3} \Rightarrow 2a^{2} + ab < a^{3}b - ab^{3}\]\[\Rightarrow a^{2} + ab + b^{2} < a^{3}b - ab^{3} - a^{2} + b^{2} \Rightarrow a^{2} > \frac{a^{2} + ab + b^{2}}{ab-1} + b^{2} = k+b^{2}\]Therefore, for all $b\geq 2$ or $a-b\geq 2$, when we flip the larger of $(a,b)$, it always decreases it. Thus, we need to check when $a = b$, or when $b = 1$ and $a-b < 2$. When $a = b$, we need $\frac{3a^{2}}{a^{2} -1}$ is an integer, or $3 + \frac{3}{a^{2} - 1}$ is an integer. The only case where this is possible is $a = b = 2$. When $b = 1$ and $a-b < 2$, this is when $a = 2$. For both these cases, flipping the larger one does not decrease, so all solutions $(a,b)$ can be continuously flipped to reach one of these two. Since $k$ is constant when flipped, the possible values of $k$ are $f(1,2), f(2,2) = 4, 7$.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
VulcanForge
626 posts
#27 • 1 Y
Y by samrocksnature
Rewrite the problem as $\tfrac{a^2+b^2+1}{ab-1}=k \in \mathbb{Z}$ which is the same as $a^2-(bk)a+b^2+k+1=0$; given any solution $(a,b)$ with $a \ge b$ we Vieta jump to $(\tfrac{b^2+k+1}{a},b)$. It suffices to find all minimal solutions, which have $\tfrac{b^2+k+1}{a} \ge a$, so $k \ge a^2-b^2-1$. Letting $a=b+t$ for some $t \ge 0$, we have $$\frac{a^2+b^2+1}{ab-1}=\frac{2b^2+2bt+t^2+1}{b^2+bt-1} \ge a^2-b^2-1=2bt+t^2-1$$which is equivalent to $$(2t)b^3+(3t^2-3)b^2+(t^3-4t)b-2t^2 \le 0.$$When $t=0$ we see that all $b$ work, while when $t=1$ we can easily see that we must have $b=1$. There's no solutions when $t \ge 2$ for size reasons (for instance, $(2t)b^3+(3t^2-3)b^2+(t^3-4t)b-2t^2 \ge 3t^2-3-2t^2 >0$). When $t=0$ we have $a=b$, and so $\tfrac{a^2+b^2+1}{ab-1} =\tfrac{2a^2+1}{a^2-1} \in \mathbb{Z} \implies \tfrac{3}{a^2-1} \in \mathbb{Z} \implies a=b=2$. When $t=1,b=1$ we get $a=2$ which indeed works. So the only minimal pairs with $a \ge b$ are $(a,b)=(2,2),(2,1)$, which in the context of the original problem give $f(a,b)=4,7$ respectively.
This post has been edited 1 time. Last edited by VulcanForge, Jan 7, 2021, 2:57 PM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
pad
1671 posts
#29 • 2 Y
Y by samrocksnature, centslordm
WLOG $a\ge b$. Suppose $k=f(a,b)-1=\tfrac{a^2+b^2+1}{ab-1}$. Then
\[ a^2-(kb)a+(b^2+1+k) = 0. \]So if $(a,b)$ works, then $(kb-a,b)$ works. Also, if $(a,b)$ works, then $(a,ka-b)$ works by symmetry. Consider the pair $(a,b)$ with minimal $a+b$ that works. Then we must have $kb-a \ge a$, so
\begin{align*}
    kb-a \ge a &\implies k=\frac{a^2+b^2+1}{ab-1} \ge \frac{2a}{b} \\
    &\implies a^2b+b^3+b \ge 2a^2b - 2a \\
    &\implies 2a+b\ge a^2b-b^3=b(a-b)(a+b) \\ 
    &\implies 2 > b(a-b). 
\end{align*}Therefore, $(a,b)=(2,1)$ or $a=b$. In the latter case, $f(a,b)=7$, and in the latter case, $f(a,a)=3 + \frac{3}{a^2-1}$, which is an integer if and only if $a=2$, in which case $f(2,2)=7$. The answer is 3 and 7.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
mathleticguyyy
3217 posts
#30 • 1 Y
Y by centslordm
First, setting $b=1$ gives $a^2+a+1-(a+2)(a-1)=3$ must be a multiple of $a-1$, forcing $a=2,4$, both of which cases gives $f(a,1)=7$.
Setting $a=b$ similarly gives that $3a^2-3(a^2-1)=3$ is a multiple of $a^2-1$, similarly forcing $a=2$, and $f(2,2)=4$. Now, we claim that these are the only possible values.

WLOG assume $a>b>1$ from here onwards, and let $(x,y)$ be a solution to $f(x,y)=k$ such that $x+y$ is minimized. We have $x^2+xy+y^2=k(xy-1)\rightarrow x^2-(k-1)xy+y^2+k=0$; treat this as a quadratic in $x$, and with Vieta's formulas, we know that the other solution is $ky-y-x$, which must be equal to $\frac{y^2+k}{x}$. The former gives that it is an integer, and the latter gives that it is positive, and therefore another valid solution; for a contradiction to not arise, we need $\frac{y^2+k}{x}\ge x$, or $k\ge x^2-y^2$.

$x^2+xy+y^2\ge (x^2-y^2)(xy-1)$ can be rearranged to $2x+y+y^3\ge x^2y$. Now, let $\frac{x}{y}=r$; the inequality can be again rewritten as $2r+1\ge (r^2-1)y^2$, from which we can solve $r\le \sqrt{\frac{y^4+y^2+1}{y^4}}+\frac{1}{y^2}<\sqrt{\frac{y^4+2y^2+1}{y^4}}+\frac{1}{y^2}=\frac{y^2+2}{y^2}\le \frac{y+1}{y}$, which makes it impossible for $x$ to be an integer.
This post has been edited 1 time. Last edited by mathleticguyyy, Jun 17, 2021, 4:11 PM
Reason: commands
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Sprites
478 posts
#31 • 1 Y
Y by Mango247
We claim that $\boxed{f(a,b) = \frac { a^2+ab+b^2} { ab- 1} \in [4,7]}$
WLOG,assume that $a \ge b$,and let $k=f(a,b)-1=\tfrac{a^2+b^2+1}{ab-1}$.
Expanding it,\[ a^2-(kb)a+(b^2+1+k) = 0. \]So if $(a,b)$ works, then $(kb-a,b)$ works. Also, if $(a,b)$ works, then $(a,ka-b)$ works by symmetry.
By Vieta Jumping,consider the pair $(a,b)$ with minimal sum:-
\begin{align*}
kb-a \ge a &\implies k=\frac{a^2+b^2+1}{ab-1} \ge \frac{2a}{b} \\
&\implies a^2b+b^3+b \ge 2a^2b - 2a \\
&\implies 2a+b\ge a^2b-b^3=b(a-b)(a+b) \\
&\implies 2 > b(a-b).
\end{align*}Therefore, $(a,b)=(2,1)$ or $a=b$. In the former case, $f(a,b)=7$, and in the latter case, $f(a,a)=3 + \frac{3}{a^2-1}$, which is an integer if and only if $a=2$, in which case $f(2,2)=4$.$\blacksquare$
This post has been edited 2 times. Last edited by Sprites, Aug 30, 2021, 6:06 AM
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
IAmTheHazard
5005 posts
#32
Y by
The answer is $f(a,b) \in \{4,7\}$. We can check that $f(2,1)=7$ and $f(2,2)=4$. Further, if $a=b$, then
$$f(a,b)=\frac{3a^2}{a^2-1}=3+\frac{3}{a^2-1},$$so $a=2$ and $f(a,b)=4$. We can also check that if $\min\{a,b\}\leq 2$ we only have $f(a,b) \in \{4,7\}$. Now suppose that $k \neq 4,7$ is in the range of $f$, and pick $(a,b)$ such that $f(a,b)=k$, $a>b$, and $a+b$ is minimal, so $b>2$.
Treating $b$ as a constant, $f(a,b)=k$ rewrites as the following quadratic in $a$:
$$a^2-(k-1)ba+(b^2+k)=0.$$By Vieta jumping, $(\tfrac{b^2+k}{a},b)$ is also a solution, and by minimality we must have
$$\frac{b^2+k}{a}\geq a \implies k \geq a^2-b^2 \geq a^2-(a-1)^2=2a-1.$$This forces
\begin{align*}
    \frac{a^2+ab+b^2}{ab-1} &\geq 2a-1\\
    3a^2 &\geq 2a^2b-ab-2a+1\\
    3a^2 &> 2a^2b-3a^2\\
    3a^2 &> a^2b,
\end{align*}which evidently only holds for $b \leq 2$, contradiction. Thus such a $k$ does not exist, so $f(a,b) \in \{4,7\}$ as desired. $\blacksquare$
Sprites wrote:
We claim that $\boxed{f(a,b) = \frac { a^2+ab+b^2} { ab- 1} \in [4,7]}$

btw this is saying that $4 \leq f(a,b) \leq 7$ :P
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
HamstPan38825
8880 posts
#33
Y by
The answer is $f(a, b) \in \{4, 7\}$.

Fix $k = \frac{a^2+ab+b^2}{ab - 1}$. Then the equation simplifies to $$a^2+(b-kb)a + b^2+k = 0.$$This means that if $(a, b)$ yields a particular value of $k$, then $\left(\frac{b^2+k}a+b\right)$ yields this value of $k$ too. WLOG $a > b$.

Claim. If $a, b \geq 2$, $b^2+k < a^2$ unless $a=b$.

Proof. The inequality simplifies to
\begin{align*}
a^2b-a &> b^3+a+b \\
b(a+b)(a-b)& > 2a+b \\
ab+b^2 &> 2a+b
\end{align*}as $a-b > 0$. On the other hand the final display is clearly true. $\blacksquare$

This means that all values in the range of $f(a, b)$ can be generated by $f(a, a)$ or $f(\leq 2, \leq 2)$. The only such values are $4, 7$, as needed.
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
#34 • 1 Y
Y by TheHU-1729
Answer: $4, 7$.

If $\min(a, b) \le 3$, then one can check that all pairs $(a, b)$ such that $f(a, b)$ is an integer are $(4, 1), (2, 1), (11, 2), (4, 2), (2, 2)$ and we can check the case $a = b$. Let $(a, b)$ be a pair such that $f(a, b)$ is an integer and $a > b > 3$ and let $c = f(a, b)$. Then we have $a^2 + ab + b^2 = cab - c$, or equivalently $a^2 + a(b - cb) + (b^2 + c) = 0$. Let $a_1$ be a root of $x^2 + x(b - cb) + (b^2 + c) = 0$ other that $a$. Then $a_1 + a = cb - b$ and $aa_1 = b^2 + c$. Thus $a_1$ is an integer and $a_1 > 0$. We'll prove that $b  > a_1$. Assume not. Then we get $b \le a_1 = \frac{b^2 + c}{a}$, or equivalently $c \ge ab - b^2$. Therefore $a^2 + ab + b^2 \ge (ab - 1)(ab - b^2)$. By expanding, we get $a(2b + b^3) \ge a^2(b^2 - 1)$, so $2b + b^3 \ge a(b^2 - 1) \ge (b + 1)(b^2 - 1)$. Thus we get $0 \ge b^2 - 3b - 1$. Hence $b \le 3$, a contradiction. Thus we have $a_1 < b$.

Thus if we replace $(a, b) \to (a_1, b)$, then $\min(a, b)$ decreases. Therefore repeating this process until $\min(a, b) \le 3$, we obtain $c = 4$ or $7$. This completes proof. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
shendrew7
807 posts
#35
Y by
First notice the only solution for $a=b$ is $(2,2)$, so assume WLOG $a>b$. Letting $f(a,b)=k$, our equation can be rewritten as
\[a^2-(bk-b)a+(b^2+k) = 0.\]
By Vieta's, if $(a,b)$ is a valid solution, then $\left(\frac{b^2+k}{a},b\right)$ is also a valid solution. To show this procedure always leads to smaller pairs, note
\begin{align*}
\frac{b^2+k}{a} < a &\iff k < a^2-b^2 \\
&\iff \frac{a^2+ab+b^2} < a^2-b^2 \\
&\iff 2a+b < (a-b)(ab+b^2)
\end{align*}
always holds unless $b=1$, where we find the only valid values of $a$ are 2 and 4, both of which give $k=7$. Hence we stop our algorithmic decreasing only when
  • One of the values is 1, meaning the pair is $(2,1)$ or $(4,1)$, leaving $k = \boxed{7}$
  • Both values are equation, meaning the pair is $(2,2)$, leaving $k = \boxed{4}$. $\blacksquare$
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Mr.Sharkman
509 posts
#36
Y by
Solution
This post has been edited 2 times. Last edited by Mr.Sharkman, May 14, 2024, 8:32 PM
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
#37
Y by
Let $f(a,b) = \frac{a^2+ab+b^2}{ab-1} = k$, where k is an integer. We get the quadratic equation $a^2+(b-kb)a+b^2+k = 0$. Now by Vieta jumping we can generate new solutions from (a,b) to $(\frac{b^2+k}{a},b)$. Now WLOG $a \geq b$. If a = b, we need to have that $a^2 - 1 \mid 3a^2$ $\Rightarrow$ $a^2 - 1 \mid 3$ $\Rightarrow$ $a^2 = 4$, since a is a positive integer and $ab - 1 \not \equiv 0$ $\Rightarrow$ a = b = 2 and we get the solution (a,b) = (2,2) and k = 4. Now the neighboring pair $(\frac{b^2+k}{a},b)$ forces $\frac{b^2+k}{a} \geq a$ $\Rightarrow$ $k \geq a^2-b^2$. Now plugging that in the original equation for f(a,b) we get $a^2+b^2+ab \geq (ab-1)(a^2-b^2)$, which is equivalent to $2a^2+ab \geq ab(a^2-b^2)$ $\Rightarrow$ we get that $2>b(a-b)$. Since $a>b$ and a and b are positive integers the only (a,b) that satisfies this condition is (a,b) = (2,1), where k=7 $\Rightarrow$ we got that the only possible k are k=4 when (a,b) = (2,2) and k=7 when (a,b) = (2,1) $\Rightarrow$ f(a,b) = 4;7. We are ready.
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
Mathandski
774 posts
#38
Y by
Might have overdid it whoops
Attachments:
Z K Y
The post below has been deleted. Click to close.
This post has been deleted. Click here to see post.
cursed_tangent1434
661 posts
#40
Y by
We claim that the set of all integer values $f(a,b)$ can take is $\{4,7\}$ which are clearly achieved by the triples $(2,2)$ and $(1,2)$ respectively. First note that if $a=b$, it is easy to show that $a=b=2$ and hence $k=4$.

Now, working towards a contradiction assume there exists some positive integer $k = f(a,b)$ for some positive integers $a,b$ and positive integer $k \not \in \{4,7\}$ assuming WLOG that $a > b$ ($a \ne b$ as this implies $k=4$ as we noted above) and in particular $(a,b)$ is the smallest such pair (i.e, $a+b$ is minimum).

We may write the given condition as a quadratic in $X$,
\[X^2-(k-1)bX + b^2+k = 0\]of which $a$ is known to be an integral root. Consider the second root $x$. By Vieta's relations we have, $a+x=(k-1)b$ and hence $x$ is an integer but also,
\[ax = b^2+k >0\]which allows us to conclude that $x$ is in fact a positive integer. Hence, $(b,x)$ is a valid pair of solutions to the given equation. Since $(a,b)$ is the minimal pair of solutions by assumption we must have $x \ge a > b$ and hence,
\[x = \frac{b^2+k}{a} > b\]so $k > ab-b^2$. But then,
\begin{align*}
     a^2+ab+b^2 &= k(ab-1)\\
     & > b(a-b)(ab-1) \\
     a^2+ab+b^2 & > a^2b^2-ab-ab^3 + b^2 \\
     a^2 & > a^2b^2 - 2ab - ab^3 \\
     a& > ab^2-2b - b^3\\
     b(b^2+2) & > a(b^2-1) \\
     b+1 \le a & < \frac{b(b^2+2)}{b^2-1}
 \end{align*}But then,
\begin{align*}
 b^3+2b = b(b^2+2) &> (b+1)(b^2-1) = b^3 + b^2 -b -1\\
 b^2 & < 3b+1
 \end{align*}which implies $b \le 3$. Hence, if $(a,b)$ is the minimal solution such that $f(a,b)=k$ we must have $b \le 3$. However, solving the cases $b=1$, $b=2$ and $b=3$ (which turns out to have no solutions) by hand yields $k=4$ and $k=7$ only which is a very clear contradiction. Hence, there exists no pairs of positive integers $(a,b)$ for which $f(a,b) \not \in \{4,7\}$ as desired.
Z K Y
N Quick Reply
G
H
=
a