Stay ahead of learning milestones! Enroll in a class over the summer!

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
IMO Genre Predictions
ohiorizzler1434   68
N 5 minutes ago by Koko11
Everybody, with IMO upcoming, what are you predictions for the problem genres?


Personally I predict: predict
68 replies
ohiorizzler1434
May 3, 2025
Koko11
5 minutes ago
Gcd(m,n) and Lcm(m,n)&F.E.
Jackson0423   1
N 12 minutes ago by WallyWalrus
Source: 2012 KMO Second Round

Find all functions \( f : \mathbb{N} \to \mathbb{N} \) such that for all positive integers \( m, n \),
\[
f(mn) = \mathrm{lcm}(m, n) \cdot \gcd(f(m), f(n)),
\]where \( \mathrm{lcm}(m, n) \) and \( \gcd(m, n) \) denote the least common multiple and the greatest common divisor of \( m \) and \( n \), respectively.
1 reply
Jackson0423
May 13, 2025
WallyWalrus
12 minutes ago
Trigonometric Product
Henryfamz   3
N 27 minutes ago by Aiden-1089
Compute $$\prod_{n=1}^{45}\sin(2n-1)$$
3 replies
Henryfamz
May 13, 2025
Aiden-1089
27 minutes ago
"Eulerian" closed walk with of length less than v+e
Miquel-point   0
43 minutes ago
Source: IMAR 2019 P4
Show that a connected graph $G=(V, E)$ has a closed walk of length at most $|V|+|E|-1$ passing through each edge of $G$ at least once.

Proposed by Radu Bumbăcea
0 replies
Miquel-point
43 minutes ago
0 replies
A little problem
TNKT   3
N an hour ago by Pengu14
Source: Tran Ngoc Khuong Trang
Problem. Let a,b,c be three positive real numbers with a+b+c=3. Prove that \color{blue}{\frac{1}{4a^{2}+9}+\frac{1}{4b^{2}+9}+\frac{1}{4c^{2}+9}\le \frac{3}{abc+12}.}
When does equality hold?
P/s: Could someone please convert it to latex help me? Thank you!
See also MSE: https://math.stackexchange.com/questions/5065499/prove-that-frac14a29-frac14b29-frac14c29-le-frac3
3 replies
TNKT
Yesterday at 1:17 PM
Pengu14
an hour ago
f(x + f(y)) is equal to x + f(y) or f(f(x)) + y
parmenides51   5
N an hour ago by EpicBird08
Source: Hong Kong TST - HKTST 2024 2.4
Find all functions $f:\mathbb{R}\rightarrow\mathbb{R}$ satisfying the following condition: for any real numbers $x$ and $y$, the number $f(x + f(y))$ is equal to $x + f(y)$ or $f(f(x)) + y$
5 replies
parmenides51
Jul 20, 2024
EpicBird08
an hour ago
The sequence does not contain numbers of the form 2^n - 1
Amir Hossein   9
N 2 hours ago by Fibonacci_11235
Prove that the sequence $5, 12, 19, 26, 33,\cdots $ contains no term of the form $2^n -1.$
9 replies
Amir Hossein
Sep 2, 2010
Fibonacci_11235
2 hours ago
D1024 : Can you do that?
Dattier   6
N 2 hours ago by Phorphyrion
Source: les dattes à Dattier
Let $x_{n+1}=x_n^2+1$ and $x_0=1$.

Can you calculate $\left(\sum\limits_{i=1}^{2^{2025}} x_i\right) \mod 10^{30}$?
6 replies
Dattier
Apr 29, 2025
Phorphyrion
2 hours ago
inequalities
Ducksohappi   1
N 2 hours ago by Nguyenhuyen_AG
let a,b,c be non-negative numbers such that ab+bc+ca>0. Prove:
$ \sum_{cyc} \frac{b+c}{2a^2+bc}\ge \frac{6}{a+b+c}$
P/s: I have analysed:$ S_a=\frac{b^2+c^2+3bc-ab-ac}{(2b^2+ac)(2c^2+2ab)}$, similarly to $S_b, S_c$, by SOS
1 reply
Ducksohappi
5 hours ago
Nguyenhuyen_AG
2 hours ago
Two lengths are equal
62861   30
N 2 hours ago by Ilikeminecraft
Source: IMO 2015 Shortlist, G5
Let $ABC$ be a triangle with $CA \neq CB$. Let $D$, $F$, and $G$ be the midpoints of the sides $AB$, $AC$, and $BC$ respectively. A circle $\Gamma$ passing through $C$ and tangent to $AB$ at $D$ meets the segments $AF$ and $BG$ at $H$ and $I$, respectively. The points $H'$ and $I'$ are symmetric to $H$ and $I$ about $F$ and $G$, respectively. The line $H'I'$ meets $CD$ and $FG$ at $Q$ and $M$, respectively. The line $CM$ meets $\Gamma$ again at $P$. Prove that $CQ = QP$.

Proposed by El Salvador
30 replies
62861
Jul 7, 2016
Ilikeminecraft
2 hours ago
Geometry with altitudes and the nine point centre
Adywastaken   4
N 3 hours ago by Miquel-point
Source: KoMaL B5333
The foot of the altitude from vertex $A$ of acute triangle $ABC$ is $T_A$. The ray drawn from $A$ through the circumcenter $O$ intersects $BC$ at $R_A$. Let the midpoint of $AR_A$ be $F_A$. Define $T_B$, $R_B$, $F_B$, $T_C$, $R_C$, $F_C$ similarly. Prove that $T_AF_A$, $T_BF_B$, $T_CF_C$ are concurrent.
4 replies
Adywastaken
May 14, 2025
Miquel-point
3 hours ago
Find all p(x) such that p(p) is a power of 2
truongphatt2668   4
N 4 hours ago by Laan
Source: ???
Find all polynomial $P(x) \in \mathbb{R}[x]$ such that:
$$P(p_i) = 2^{a_i}$$with $p_i$ is an $i$ th prime and $a_i$ is an arbitrary positive integer.
4 replies
truongphatt2668
Yesterday at 1:05 PM
Laan
4 hours ago
Easy combinatorics
GreekIdiot   0
4 hours ago
Source: own, inspired by another problem
You are given a $5 \times 5$ grid with each cell colored with an integer from $0$ to $15$. Two players take turns. On a turn, a player may increase any one cell’s value by a power of 2 (i.e., add 1, 2, 4, or 8 mod 16). The first player wins if, after their move, the sum of each row and the sum of each column is congruent to 0 modulo 16. Prove whether or not Player 1 has a forced win strategy from any starting configuration.
0 replies
GreekIdiot
4 hours ago
0 replies
Concurrency in Parallelogram
amuthup   91
N 4 hours ago by Rayvhs
Source: 2021 ISL G1
Let $ABCD$ be a parallelogram with $AC=BC.$ A point $P$ is chosen on the extension of ray $AB$ past $B.$ The circumcircle of $ACD$ meets the segment $PD$ again at $Q.$ The circumcircle of triangle $APQ$ meets the segment $PC$ at $R.$ Prove that lines $CD,AQ,BR$ are concurrent.
91 replies
amuthup
Jul 12, 2022
Rayvhs
4 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
6877 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
250 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
5001 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
8866 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
796 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
500 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
759 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
635 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