What is the largest integer n ≤ 1 0 0 0 , such that there exist 2 non-negative integers ( a , b ) satisfying
n = a b − 1 a 2 + b 2 ?
Hint : ( a , b ) = ( 0 , 0 ) gives us 0 × 0 − 1 0 2 + 0 2 = 0 , so the answer is at least 0 .
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
This is great! Could you add it to the wiki page Vieta Root Jumping ? It was included as the last example, with a solution pending.
I like your observations!
Why would the minimum value of b provide the maximum value for n?
Log in to reply
That's not what I'm saying. What I proved is that, if the value of b is at least 3, then it's always possible to find a smaller one (for the same value of n ). Therefore, it's possible to keep reducing until we get a pair ( a , b ) where 0 ≤ b ≤ 2 for the same value of n . Therefore, we only need to check the cases where 0 ≤ b ≤ 2 .
It's seems, moreover, that n=5 is the only possible integer solution of this equation, for any a,b. So that terms as "minor then" or "maximum" are irrilevant.
BUT, Ido not know why.....
First, for the equation you assumed let /('a'/) be a root. Then you worked out the other root as b 2 + n / a an later stated b , b 2 + n / a as the two integer solution.
Can you also elaborate how 'b' greater than 3 implies that it could be reduced to a lower value for same 'n'. I'm new to this concept.
Log in to reply
Oh yes. Suppose you start with a pair of integers ( a , b ) which are a solution to the equation. Perhaps I should have mentioned that a cannot equal b , because that would imply the following: n = a 2 − 1 2 a 2 = 2 + a 2 − 1 2 which would make n not an integer.
Hence either a > b or b > a , and since order doesn't matter, we can assume that a > b .
Now, in my first lemma, I showed that ( b , a b 2 + n ) is also a solution to the same equation. And in my second lemma, I showed that if b ≥ 3 then a b 2 + n is strictly less than b . So, whenever b is at least 3, this new solution that we get in the first lemma has a lower second value. So, instead of considering all possible values of b we just need to consider b = 0 , 1 or 2 .
Great proof! If I'm not mistaken, we still need to show there is no solution if we let 3 ≤ b = a . The Vièta-Root-Jumping part only applies to 3 ≤ b < a and (sadly) cannot be extended to b = a . Afterwards, this case is never considered.
For a (slightly) different approach, hopefully covering all cases, see my solution below.
Begin by moving everything on one side of the equation
a 2 − n a b + n + b 2
Use the quadratic equation to solve for a.
a = 2 n b ± n 2 b 2 − 4 n − 4 b 2
Now we need to check integer solutions for the radical.
Note: if the first term of a square root of a second degree polynomial is a perfect square, then the sum of other terms must be a difference of squares.
Thus we can set our radical equal to ( n a b + p ) .
( n a b + p ) 2 = n 2 a 2 b 2 − 4 n − 4 b 2
2 n a b p + p 2 = − 4 n − 4 b
n = 2 a b p + 4 − ( p 2 + 4 b )
We will use induction to find cases from here
for n to be an integer, p must be even.
since a,b are positive, to maximize n; p must be negative
to maximize (a,b), |p| must be minimized.
to maximize n; b must be maximized
to maximize b; a must be minimized
Thus plugging in p=-2, a=1 we get
n = − 4 ( b − 1 ) − 4 ( b 2 + 1 )
n = b − 1 b 2 + 1
This obviously doesn't have any solutions for b>3 since b 2 + 1 ≡ 2 ( m o d b − 1 )
EDIT (Thanks to Sir Calvin):
The proof for this comes from the partial fraction decomposition of the expression above to n = b + 1 + b − 1 2 , for which the last term is a non-integer for b>3.
Thus plugging in a and b into our original equation, n = 5
At the last step, do the typical partial fractions expression to get
n = b + 1 + b − 1 2
And it becomes clear that b − 1 ∣ 2 , and the result follows.
Shouldn't it be a = 2 n b ± n 2 b 2 − 4 n − 4 b 2 ?
Log in to reply
Thank you, it is now.
Log in to reply
I think you still need to delete away two more a 2 's and four a 's.
How about (a, b) of {(1538, 7369), (4729, 22658), (7369, 35307), (3883449, 18606722) and etc?} The only thing is n is not available with value other than 5. n = (b^2 + 1)/ (b - 1) seem to explain logically, I feel you haven't explained properly by every step you implied. (1, 2), (1, 3), (2, 9) and (3, 14) for example can be (b, a) instead of (a, b), while they can be true to your equation occasionally only when the right b is meant.
In the line with the (Na+p)^2, on the right side, why is there a a^2 term? Can u also clarify the statement after the word "note"? Thanks!!!
[This is not a complete solution]
The case when a b = 0 is easily dealt with, and we have n ≤ 0 .
If a and b are positive integers such that a b − 1 a 2 + b 2 = k is an integer, then k = 5 .
If you can prove this, I would appreciate if you can add your solution to the Vieta Root Jumping Wiki page.
Sir @Calvin Lin please tell me an appropriate proof for this without calculus and all ,as I'm just 15(not 19)
Log in to reply
Note that not all mathematical statements can be proofed using "solutions appropriate for 15 year olds". This is especially true in Number Theory, with Fermat's Last Theorem being a classic example.
Trevor's solution doesn't use calculus, and only uses elementary Number Theory approaches.
As mentioned, there is a solution which uses Vieta Root Jumping. Read the wiki article to understand more.
EYYYYYYYYYY me too, I'm 15 but my profile says 19 😂.
Log in to reply
@Trevor Arashiro @Mehul Chaturvedi I have updated your ages to 15.
Hey brother please suggest me some book for NUMBER THEORY (actually I'm quite weak at it)
Notice the symmetry: If ( a , b ) is a solution to any given n , so is ( b , a ) . We only need to consider 0 ≤ a ≤ b
Check some special cases with partial fraction decomposition (PFD). We must ignore a = b = 1 , or we would divide by zero: 0 1 2 2 = a ≤ b : = a < b : ≤ a = b : ≤ a = b − 1 : n n n n = − b 2 ∈ ! Z = b − 1 b 2 + 1 = b + 1 + b − 1 2 ∈ ! Z = a 2 − 1 2 a 2 = 2 + a 2 − 1 2 ∈ Z = a ( a + 1 ) − 1 a 2 + ( a + 1 ) 2 = 2 + a ( a + 1 ) − 1 3 ∈ Z ⇒ ⇒ b b ≥ 0 , ∈ { 2 ; 3 } , n n ≤ 0 = 5 In the last two cases, the denominator of the remainder is greater than the numerator and cannot generate an integer. The only remaining case we still need to check is 2 ≤ a ≤ b − 2
Claim: Let 2 ≤ a ≤ b − 2 . If ( a , b ) is a solution to any given n , so is ( a ′ , b ′ ) : = ( n a − b , a ) with 0 < a ′ < a . Proof: If ( a , b ) is such a solution, then n > 0 . We can write b as a root of a polynomial P ( x ) : n = a b − 1 a 2 + b 2 ∈ Z ⇒ 0 = a 2 + b 2 − n ( a b − 1 ) = b 2 − n a b + a 2 + n = : P ( b ) With Vieta Root Jumping , we can find a second root b ∗ of P ( x ) : b ∗ + b = n a ⇒ a ′ = b ∗ = n a − b ∈ Z , a ′ = b ∗ = b a 2 + n > 0 + 0 = 0 The other inequality a ′ < a is a bit harder to prove. Insert the definition of n into a ′ and get a ′ = a b − 1 a 2 + b 2 ⋅ a − b = a b − 1 a 3 + b ( ∗ ) ≤ a ( a + 2 ) − 1 a 3 + ( a + 2 ) PFD = a − 2 + a ( a + 2 ) − 1 6 a ( ∗ ∗ ) ≤ a − 2 + 7 1 2 < a In ( ∗ ) , we use that the expression is decreasing in b ≥ a + 2 and a ≥ 2 . In ( ∗ ∗ ) the remainder is decreasing in a ≥ 2 ■
Rem.: We even showed that n ∈ { 0 ; 5 } are the only non-negative solutions to the problem! Both fundamental solutions with a = 1 and b ∈ { 2 ; 3 } generate a countable sequence of solutions with n = 5 . That was fun :)
Every number can be of the form 3k,3k+1,3k+2.
So using this we can find maximum value of n to be 5.
Sorry this is a wrong way to get answer.
The reason why I am not deleting this solution is there may be some one who thought the same like me so this may be helpful.😁
Can you elaborate further? How does this lead you to conclude that the largest integer value of n is 5?
Note that there is no maximum (non-integer) value of n. For example, with b = 1 , we have n = a − 1 a 2 + 1 = a + 1 + a − 1 2 , which has no maximum.
As n is also integer we can get that directly , plz substitute a,b as 3k,3k+1,3k+2.(a,b differ in k) and you will notice that the latest integral value of n to be equal to 5.
Log in to reply
Can you be explicit about what you're substituting for a and then for b? Why must "a,b differ in k".
For example, note that a = 9 , b = 2 leads to an integer n = 5 . What does this correspond to in "plz substitute a,b as 3k,3k+1,3k+2.(a,b differ in k)"?
every square number will be of the form 3k or 3k+1, so sum of two squares can be of the form 3m,3m+1,3m+2
Case 1
Both are of the form 3k+1 ,
So ab-1 is of the form 3n
So we get (3k'+2)/3n to be equal a 2 + b 2 /ab-1 that can never be an integer .
Case 2
One of the form 3k , 3k+1
So ab-1 is again of the form 3n+2,
And a 2 + b 2 is of the form 3k'+1 which again does not give an integer
Since 3k'+1/3n+2 ≠ integer .
Case 3
Both of the form 3k,3k
We get ab-1 of the form 3n+2
And a²+b² is of the form 3k".
Like this you continue the process to get an integer value.
Log in to reply
When you say "both are of the form 3k+1", are you setting a = 3 k + 1 and b = 3 k + 1 ? If so, does that make sense to you that we're allowed to do so?
I'm not sure how you concluded that "ab-1 is of the form 3n". I agree that " a 2 + b 2 is of the form 3k+2 (for some k). However, why does that imply that ab-1 must be a multiple of 3? In fact, it tells us that ab-1 cannot be a multiple of 3.
Can you use the example of a = 9 , b = 2 to walk me through your calculations? E.g. set a = 3 × 3 + 0 , b = 3 × 0 + 2 , then what happens?
Ah ic. Thanks for explaining the step that you want to show " a^2+b^2 / ab-1 can never be an integer". Previously, I was working under the condition in the problem that it had to be an integer, which is why we have ab-1 divides 3K+2.
This is why it is important to be clear about what you are doing, and what you want to show. Despite technological advances, not everyone is a mind reader.
Case 2: It is not a true statement that "3k'+1 / 3n+2 is never an integer". For example, take k=5, n = 2 (your notation of n, not the problems notation). We have 16 / 8 = 2.
In particular, this is what happened with
a
=
9
,
b
=
2
, where
a
2
=
3
k
,
b
2
=
3
k
+
1
. and we get an integer. This is why I ask you to "use this example to walk me through your calculation"
Case 3: I'm not sure what you mean by "Like this you continue the process to get an integer value".
Finally, how do you conclude that the maximum value of n is 5? I do not see 5 appear anywhere, nor do I see the justification that it is the largest.
Log in to reply
Oh, I understood what mistake I have done
Thank you so much for discussion sir , @Calvin Lin
@Calvin Lin , Consider a=3k+1, b=3l+1,
So ab = (3k+1)(3l+1) = 9kl + 3l + 3k +1 ,
So clearly we see that ab-1 is multiple of 3.
3 tries available despite incorrect answer. Searched up to 3 millions for n up to 1000 and 30 millions for n up to 100 via another modified parameters. Found that (n^2 - 4) b^2 and 4 n are to split after a formation for n = 5; such split makes possibility of formation of perfect square getting further; though, I consider my answer as a guess. There are many pairs of (a, b) along for n = 5 found by initial routine before the modification as follows. By rule of beauty, the most possible situation for search beyond 3 millions for n up to 1000 would not produce other wanted finding.
PROGRAM Largest_Integer;
USES CRT;
VAR
a, b, d, n, p: EXTENDED;
BEGIN
CLRSCR;
n:=1000.0;
REPEAT
b:=2.0;
REPEAT
p:=b*n;
d:=p*p-4.0*(b*b+n);
IF d>=0 THEN
BEGIN
a:=0.5*(p+SQRT(d));
IF (FRAC(a)=0.0) AND (n<>5.0) THEN
BEGIN
WRITELN('Finished.');
WRITELN(n:1:0, ' ', a:1:6, ' ', b:1:0);
WRITE((a*a+b*b)/(a*b-1.0):1:18);
READLN;
EXIT
END
END;
IF b=2999999.0 THEN
WRITELN(n:1:0, ' ', a:1:6, ' ', b:1:0);
b:=b+1.0
UNTIL b=3000000.0;
n:=n-1.0
UNTIL n=2
END.
Note that this does not constitute a proof by exhaustion.
Log in to reply
Not a proof. However, many questions involving attempt to find for valid possibility to infinity can be indicated by certain extremes to the limit via computing search. Ancient tradition is conceptually good while modern approach can be fast and general when intuitive mind has been developed.
Consider the quadratic equation, x^2 - nbx + b^2 + n = 0. We know that one solution is a, and the other is c:= (b^2 + n)/a. From the equation on the problem, we let a = 1. So that n = (1+b^2)/(b-1) = (2+ b^2 - 1)/(b-1). Since b is a positive integer, then b-1 is also a positive integer. Since b^2 -1 is always divisible by b-1, and n is integer, then 2 must be divisible by b-1. From this we have b= 2 or b= 3. Since a=1 and b=2 then n=5. And since a=1 and b=3, we also have n=5. So the maximum of n is 5.
W e m a y u s e i n d u c t i o n a s f o l l w s 1 ) l e t a = 1 b = 3 T h e r e f o r e n = 5 2 ) l e t a = 2 b = 9 t h e r e f o r e n = 5 . . . . m e a n s b w e v e r y 1 0 n o s l i k e 1 − 1 0 , 1 1 − 2 0 . . . . . 9 9 1 − 1 0 0 0 i t s w i l l g i v e o n e v a l u e a s " ′ 5 " " ( I k n o w i t s j u s t t h e t r i o c k w e c a n u s e i n M C Q s ) n e v e r i n c l u d e t h i s i n p r o o f s
I do not see how you used induction. Can you explain your steps further?
The issue is that you do not know why no higher number other than 5 cannot be achieved.
Log in to reply
Yes its the highest integral value actually i saved some steps by not substituting the values which would give non integral solutions
Log in to reply
i just put the values from 1-20 and surprisingly got 5 only both the times b/w 1-10 and 11-20 (and by the way these are some basic observations)
Log in to reply
@Mehul Chaturvedi – Right. So the concern is that there could be other bigger values, like a = 1 2 3 4 5 6 7 8 9 and b = 9 8 7 6 5 4 3 2 1 which give a different value of n .
Log in to reply
@Calvin Lin – By the way in simple one step induction we do not put values from 0-10000000000...... and actually for a=123456789... b=987654321.. it would give us a non integral value
WE OBSERVE THAT b/w every ten nos starting from 1-10 we would always get max. integral value as 5
Problem Loading...
Note Loading...
Set Loading...
Lemma 1:
Suppose a certain pair of integers ( a , b ) is a solution to the equation n = a b − 1 a 2 + b 2 . Then I say the pair ( b , a b 2 + n ) is also an integer solution.
Proof:
Consider the equation x 2 − n b x + ( b 2 + n ) = 0 . By assumption, a is one of the roots. Therefore, by Vieta's formulas, the other root is a b 2 + n . By substituting the formula for n , this equals a ( a b − 1 ) a 2 + a b 3 . We already know that the numerator is divisible by a b − 1 (since n is an integer), and it's clearly also divisible by a . Since g c d ( a , a b − 1 ) = 1 , then the numerator is also divisible by a ( a b − 1 ) . Hence the new root is an integer. Hence, ( b , a b 2 + n ) is also an integer solution. to the equation,
Lemma 2:
If a > b ≥ 3 , then a b 2 + n < b .
Proof:
Since b ≥ 3 , then b 2 − 1 2 b < 1 . Therefore, b 2 − 1 b 3 + b = b + b 2 − 1 2 b < b + 1 ≤ a b 3 + b < a b 2 − a a + b 3 < a b 2 − b a b − 1 a + b 3 < b a b 2 + n < b Hence a b 2 + n < b .
Now, let ( a , b ) be the solution to n = a b − 1 a 2 + b 2 such that the value of b is minimized (but nonnegative). Then, by Lemmas 1 and 2, we must have 0 ≤ b ≤ 2 , otherwise it is possible to get a smaller value of b .
If b = 0 , then n = − a 2 ≤ 0 .
If b = 1 , then n = a − 1 a 2 + 1 = a + 1 + a − 1 2 . Then a = 0 , 2 , 3 and therefore n = − 1 , 5 , 5 respectively.
If b = 2 , then we have n = 2 a − 1 a 2 + 4 . Thus 4 n = 2 a − 1 4 a 2 + 1 6 = 2 a + 1 + 2 a − 1 1 7 . Hence, 2 a − 1 is a factor of 17. Therefore a = 1 , 9 , and therefore n = 5 .
Therefore, the maximum possible value of n in any of these cases is 5 (and we don't even need the restriction that n ≤ 1 0 0 0 ). Hence the answer is 5 .