Integer Difference of Powers

A A and B B are distinct numbers such that A n B n A^n - B^n is an integer for all positive integers n . n.

Do both A A and B B have to be integers?

No Yes

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.

9 solutions

Patrick Corn
May 17, 2018

I'll just leave this here.

LOL. That is a great way to deal with this problem.

There's also the "let's get our hands dirty approach", though that motivates why one would use that technique.

Calvin Lin Staff - 3 years ago

Just do this: 5.5^2 - 1.5^2 That will get your answer.

Panagiotis Pgs' - 3 years ago

Log in to reply

Note that A = 5.5 , B = 1.5 A = 5.5, B = 1.5 doesn't satisfy the condition. It has to hold for all values of n , and not just for n = 1 , 2 n = 1, 2 .

As an example, 5. 5 5 1. 5 5 = 5025.25 5.5^5 - 1.5^5 = 5025.25 .

As it turns out, we do require that A A and B B are integers.

P.S. Good attempt at a counterexample using a denominator of 2 2 and setting A B = 4 = 2 2 A - B = 4 = 2^2 . This allows the condition to hold for more values of n n , just not all values of n n .

Calvin Lin Staff - 3 years ago
Calvin Lin Staff
May 16, 2018

Patrick's approach of using the Lifting the Exponent lemma is a great way to solve the problem. We could still proceed pretty directly, though you can see why this approach motivates using LTE.

[This is not a complete solution.]

Hint 1: First show that A , B A, B are rational. In particular, counter examples are not "complex (but not real)" nor "irrational", so if you have found such a counter example, check a few values of n n first.
Hint 2: Set common denominator, IE A = N D , b = M D A = \frac{ N}{D}, b = \frac{M}{ D } . Show that if p D p \mid D , then p N , M p \mid N, M .
Hence, conclude that a , b a,b are integers.


[These are the details. Do not read ahead if you want to solve this yourself.]

Hint 1: Since A B 0 A - B \neq 0 , thus A + B = A 2 B 2 A + B A + B = \frac{ A^2 - B^2 } { A+B} is rational. Hence, A , B = ( A + B ) ± ( A B ) 2 A, B = \frac{ (A+B) \pm (A-B) } { 2} is also rational.

Hint 2: Note that we can multiply A A and B B by any integer, and still satisfy the conditions. Hence, we may assume that p p is a prime, and multiply throughout by D p \frac{ D}{p} . Redefining notation, let A = N p , B = M p A = \frac{ N}{p} , B = \frac{ M} { p } , where p p is a prime (possibly 2).

To satisfy the conditions, p N p M p \mid N \Leftrightarrow p \mid M . If so, both terms are integers and we are done. Henceforth, suppose that p ∤ N , p ∤ M , N M p \not \mid N, p \not \mid M, N \neq M .

Let A = p k q + M p A = p^kq + \frac{M}{p} where p ∤ q p \not \mid q . Then,
A l B l = ( p k q + M p ) l ( M p ) l = ( l 1 ) ( M p ) l 1 ( p k q ) 1 + ( l 2 ) ( M p ) l 2 ( p k q ) 2 + + ( l l 1 ) ( M p ) 1 ( p k q ) l 1 + ( p k q ) l . A^l - B^l = ( p^k q + \frac{M}{p} ) ^l - (\frac{M}{p} )^l = { l \choose 1} ( \frac{M}{p} ) ^{l-1} (p^kq)^1 + { l \choose 2} ( \frac{M}{p} ) ^{l-2} (p^kq)^2 + \ldots + { l \choose l-1} ( \frac{M}{p} ) ^{1} (p^kq)^{l-1} + (p^kq)^l .

To reach a contradiction, the goal is to pick an l l such that the first term has much more powers of p p in the denominator than the subsequant terms, which means we actually have a fraction.
To achieve this, let l = p z > k + 2 l = pz > k+2 and p ∤ z p \not \mid z (the reason for these conditions will become obvious soon). Multiplying throughout by p l p^l , we obtain:
p l ( A l B l ) = ( l 1 ) M l 1 p k q + ( l 2 ) M l 2 p 2 k + 1 q 2 + ( l 3 ) M l 3 p 3 k + 2 q 3 + + ( l l 1 ) M 1 p k l k + l 1 + p k l + l q l p^l ( A^l - B^l) = { l \choose 1 } M^{l-1} p^k q + { l \choose 2} M^{l-2} p^{2k+1} q^2 + { l \choose 3 } M^{l-3} p^{3k+2} q^3 + \ldots + { l \choose l - 1 } M^{1} p^{kl -k + l -1 } + p^{kl+l} q^l

From lucas' theorem / Kummer's theorem / manual verification, we know that

  • p ( l i ) p \mid { l \choose i } for 1 i l 1 1 \leq i \leq l-1
  • p 2 ∤ ( l 1 ) = p z p^2 \not \mid { l \choose 1 } = pz

Hence, p k + 1 p ^ { k + 1 } is the highest power of p p that divides ( l 1 ) M l 1 p k q { l \choose 1 } M^{l-1} p^k q and p k + 2 p^{k+2} divides every subsequant term on the RHS. Hence p k + 2 p^{k+2} does not divide the RHS.
This contradicts the fact that p l > p k + 2 p^ l > p^{k+2} divides the LHS.


Note: When trying to find counterexamples, we see that increasing the value of k k in A B = p k q A - B = p^k q allows us to make the A n B n A^n - B^n an integer for larger values of n n . E.g. Take p = 2 , A = 5.5 , B = 4.5 p = 2, A = 5.5, B = 4.5 .
This is reflected in the solution, where the test value is set larger than k + 2 k + 2 .

Note: Michael Mendrin's solution suggests using l = p z + 1 > k l = p^z+ 1 > k . Can you complete the argument?
IE How does that change the solution from Lucas' Theorem onwards?

Note: We are very interested in calculating v p ( N n M n ) v_p (N^n - M^n) , which is where the Lifting the Exponent Lemma comes in.

Yeah and showing then rational is too easy right 🙄

Vilakshan Gupta - 3 years ago

Log in to reply

@Vilakshan Gupta Is it just me or was this sarcastic??

Aaghaz Mahajan - 3 years ago

hey.. doesn't anyone have the full proof to this? .. .okay let me digest what you've just said

Edit: Patrick Corn has provided the full proof. Now I'll compare his approach with mine to see how I can complete mine.

Michael Mendrin - 3 years ago

i made a horrible mistake. i did not read the problem properly. it is for all n. i assumed that it is true for n=1,2. unless we understand the problem there is no chance of solving it.

Srikanth Tupurani - 3 years ago

I feel like i'm missing something here, but can't A and B be sqrt(3) and sqrt(2) with n=2 and the answer still be an integer.

Enigma K - 3 years ago

Log in to reply

Well, read the question again........it says for ALL POSITIVE INTEGERS n.........you have only taken the case when n equals to 2......what if n=3 or 5.....??

Aaghaz Mahajan - 3 years ago

Log in to reply

Conjugates? (2+sqrt(2)) and (2-sqrt(2)) looks distinct enough, and the root terms for all integer powers cancels each other.

Francis Kong - 3 years ago

Log in to reply

@Francis Kong Notice that ( 2 + 2 ) 1 ( 2 2 ) 1 = 4 2 ( 2 + \sqrt{2} ) ^1 - ( 2 - \sqrt{2} ) ^ 1 = 4 \sqrt{2} is not an integer. In fact, this is never an integer, because the integer powers cancel out but not the fractional powers. For the fractional powers to cancel out, you are thinking of A n + B n A^n + B ^ n , which is this version of the problem .

If if you are using A = 2 + 2 , B = 2 2 A = \sqrt{2} + 2 , B = \sqrt{2} - 2 , then n = 2 n = 2 will not work. See Hint 1 for why we can conclude that A , B A, B must be rational.

Calvin Lin Staff - 3 years ago

How about A = (cos(2 pi)+i sin(2 pi)) B = (cos(2 pi)-i sin(2 pi)) A and B are distinct "numbers", so no restriction on being complex?

Vitrioil V - 3 years ago

Log in to reply

@Vitrioil V Check your A and B.....they are both integers.....!!!

Aaghaz Mahajan - 3 years ago

In your example, A = 1 , B = 1 A = 1, B = 1 are not distinct "numbers".

In addition, See Hint 1 which shows that A , B A, B are rational (which is a subset of the reals).

Note: We could make A n B n A^ n - B^n a Gaussian integer and ask if A , B A,B must necessarily be Gaussian integers too.
I have not thought this through.

Calvin Lin Staff - 3 years ago

Log in to reply

For Gaussian integers, it's easy to see (by De Moivre) that z z and z \overline{z} satisfy the given condition, where a r g ( z ) = n π arg(z)=n\pi , i.e. indeed solutions over Gaussian integers are also INTEGERS!!

Mihir Mallick - 3 years ago

Log in to reply

@Mihir Mallick Yes, similar to the original problem, it is clear that any pair of Gaussian integers will satisfy the condition because their operations are a closed set. The point of the problem is to ask "Are there any other solutions? Could we not do something funky?". For example, the A n + B n A^n + B^n case allows for some flexibility .

I've edited my comment to reflect this.

Calvin Lin Staff - 3 years ago

What about Binet's formula? f n = φ n ψ n 5 f_n=\frac{\varphi^{n}-\psi^{n}}{\sqrt{5}} (here φ = 1 + 5 2 ; ψ = 1 5 2 \varphi=\frac{1+\sqrt{5}}{2} ; \psi=\frac{1-\sqrt{5}}{2} )

After raising 5 \sqrt{5} to n t h n^{th} power, can't we write f n f_n in the form A n B n A^n-B^n where A A and B B are irrational?

Mihir Mallick - 3 years ago

Log in to reply

You have to have the same a , b a,b for all powers n n . That 5 \sqrt{5} ruins it.

Michael Mendrin - 3 years ago

Log in to reply

Oh, ok, got your point!

Mihir Mallick - 3 years ago

Log in to reply

@Mihir Mallick Besides, it's easy to show that a , b a,b have to be at least rational numbers. The difficulty is proving that they must be integers.

Michael Mendrin - 3 years ago

This is a great argument! However the last part can be somewhat simplified and carried out without reference to Kummer's theorem.

I will be writing up the full solution when I get home in a week or so, but I can't publish it except by sending a digital photo of my computer screen. Is there a way I can publish a photo here from my phone?

Will Heierman - 3 years ago

Log in to reply

Yes, but not easily. We use markdown to display images, so you just need to upload the photo (to another image site).

(Especially if that sounds foreign to you,) A much easier approach would be to use the desktop version of the site, where you have a formatting toolbar that allows you to upload photos stored on your computer by clicking the third button from the left.

Alternatively, email the digital photo to me and I will upload it.


Right, there isn't a need to appeal to Kummer's theory, the 2 facts were all that I needed, and this could be shown directly / "is well-known". Manual verification is the easiest, though Lucas/Kummer's theory provides a clean presentation of the ideas.

Calvin Lin Staff - 3 years ago

Wouldn't it be easier to use binomial expansion?

Peter Byers - 2 years, 12 months ago

Log in to reply

Can you clarify what you mean? That's what I used in expanding out A l = ( p k q + M p ) l A^l = ( p^k q + \frac{M}{p} ) ^ l . Were you thinking of using it in another way?

Calvin Lin Staff - 2 years, 12 months ago
Tirth Patel
May 16, 2018

NOTE : There is a mistake in the solution. See if you can figure it out!


From Calvin's hint, we know that A and B are rationals.

Let A = a b A = \frac{a}{b} and B = c d B = \frac{c}{d} where ( a , b ) (a , b) and ( c , d ) (c,d) are coprime

Hence, a n b n c n d n = ( a d ) n ( b c ) n ( b d ) n \frac{a^n}{b^n} - \frac{c^n}{d^n} = \frac{(ad)^n - (bc)^n}{(bd)^n}

\Rightarrow ( a d ) n ( b c ) n 0 ( mod (ad)^n - (bc)^n \equiv 0 \text{ } ( \text{mod} ( b d ) n ) (bd)^n )

\Rightarrow ( a d ) n ( b c ) n ( mod (ad)^n \equiv (bc)^n \text{ } ( \text{mod} ( b d ) n ) (bd)^n)

\Rightarrow a d ± b c ( mod ad \equiv \pm bc \text{ } ( \text{mod} b d ) bd)

This is only possible when a b = c d \frac{a}{b} = \frac{c}{d} \Rightarrow A = B A = B

Hence, A and B must be integers \boxed{ \text{ A and B must be integers}} \blacksquare

Moderator note:

The mistake is in the line:

( a d ) n ( b c ) n ( m o d ( b d ) n ) a d ± b c ( m o d b d ) . (ad)^n \equiv (bc)^n \pmod{(bd)^n} \Rightarrow ad \equiv \pm bc \pmod{bd}.

Can you find a counterexample to this statement?

Be careful, that's not how modular arithmetic works. You cannot take roots just like that, in part because there are multiple roots, so all that we have is an equality of multi-valued functions (meaning some value in one set is equal to some value in the other set)

As an explicit example, 1 5 2 1 2 ( m o d 4 2 ) 15^2 \equiv 1^2 \pmod {4^2} , but 15 ≢ 1 ( m o d 4 ) 15 \not \equiv 1 \pmod {4} . In this case, the root of 1 ( m o d 16 ) 1 \pmod{16} is ± 1 , ± 7 ( m o d 16 ) \pm 1 , \pm 7 \pmod{16} , which is how I came up with the counter example.

This part of the proof requires a bit of work to push through.

Calvin Lin Staff - 3 years ago

Log in to reply

Thanks! I guess that a d ± b c ad \equiv \pm bc (mod \text{(mod} b d ) bd)

But as the ( a , b ) and ( c , d ) (a,b) \text{and} (c,d) are co-primes, the overall result would be the same. I am not sure but would think over it.

Tirth Patel - 3 years ago

Log in to reply

No, not quite. Maybe in the case of n = 2 n = 2 because those are 2 square roots, but not always.

Calvin Lin Staff - 3 years ago

Log in to reply

@Calvin Lin Thank you, sir to figure out my mistake! Will think of another solution. Till then, I am deleting this answer.

Tirth Patel - 3 years ago

Log in to reply

@Tirth Patel Oh, please leave this up for now. You can just add a note to the top saying that this is incorrect, and invite people to determine the mistake.

It's a slight subtlety that most people would not recognize.

Calvin Lin Staff - 3 years ago

Log in to reply

@Calvin Lin Okay, Sure!

Tirth Patel - 3 years ago

@Tirth Patel So the "push through" part is claiming that if x n y n ( m o d z n ) x^n \equiv y^n \pmod{z^n} for all n n , then we must have x y ( m o d z ) x \equiv y \pmod{z} . Even though for a fixed n n , there are multiple possible roots, it does seem very likely that the only root across all possible n n is 1, namely x = y x = y .

However, that takes a bit of work to properly formulate. Basically, what you want to show is that if k m z k \neq mz , then there exists some n n such that ( x + k ) n x n ( m o d z n ) ( x + k ) ^n \neq x^n \pmod {z^n} . Looking at values of n n near multiples of z z might prove fruitful.

Calvin Lin Staff - 3 years ago

Also, this proves only that A , B ∉ Q A, B \not\in \mathbb{Q} . Am I wrong?

Brian Riccardi - 3 years ago

You should probably also specify that b , d 1 b,d\neq 1 .

Jordan Cahn - 3 years ago

Your proof shows that whenever A&B are rationals,they have to be integers.But you have overlooked the possibility of A&B being irrationals.

sap 007 - 3 years ago

Log in to reply

Note that the first sentence is not true. The proof does assume that A and B are rationals, but it doesn't successfully show that they are integers. Given that assumption, can you spot the error?

Calvin Lin Staff - 3 years ago

Log in to reply

Yes sir,the mistake is on taking roots of the integers in the mod statement,as you have already pointed out.

sap 007 - 3 years ago

What about if a or b is 0?

Ramesh Kumar - 3 years ago
Michael Mendrin
May 16, 2018

proof under construction

If the following are integers x , y x,y

a b = x a-b=x
a 2 b 2 = y a^2-b^2=y

then we can deduce that

a = 1 2 x ( x 2 + y ) a=\dfrac{1}{2x}(x^2+y)
b = 1 2 x ( x 2 + y ) b=\dfrac{1}{2x}(-x^2+y)

which, if plugged into 2 n 1 ( a n b n ) 2^{n-1} (a^n-b^n) , an integer, has the following term which must be an integer for n > 2 n>2 (Warning: hand waving here! Involves induction)

n y n 1 x n 2 \dfrac{ny^{n-1}}{x^{n-2}}

Muliplying all these terms results in the following product, which must also be an integer

1 2 n ! y 1 2 ( n 2 n 2 ) x 1 2 ( n 2 3 n 2 ) \frac{1}{2}n!\dfrac{y^{ \frac{1}{2}(n^2-n-2) }}{x^{ \frac{1}{2}(n^2-3n-2) }}

where n n is unbounded.

Which means that if x , y x,y are finite integers, y y is an integer multiple of x x , say, y = z x y=zx . Then we revise a , b a, b

a = 1 2 ( x + z ) a=\dfrac{1}{2}(x+z)
b = 1 2 ( x + z ) b=\dfrac{1}{2}(-x+z)

(Warning: more hand waving follows, need to show details)

Now, if both x , z x, z are either even or odd, then a , b a,b are integers. We will examine what happens if x , z x,z are of different parity. We can revise a , b a,b in this form, where p , q p, q are integers

a = 1 2 ( 2 p + 1 + 2 q ) a=\dfrac{1}{2}(2p+1+2q)
b = 1 2 ( 2 p 1 + 2 q ) b=\dfrac{1}{2}(-2p-1+2q)

Then when these are plugged into 2 ( n 2 ) ( a n b n ) 2^{(n-2)}\left( a^n-b^n \right) for arbitrary odd n n , the result is always half integer. So, we can revise a , b a,b once more

a = 1 2 ( 2 p + 2 q + 1 ) a=\dfrac{1}{2}(2p+2q+1)
b = 1 2 ( 2 p + 2 q + 1 ) b=\dfrac{1}{2}(-2p+2q+1)

Then when these are plugged into 2 ( 2 n n 3 ) ( a ( 2 n + 1 ) b ( 2 n + 1 ) ) 2^{(2^n-n-3)}\left( a^{(2^n+1)}-b^{(2^n+1)} \right) (notice the powers of 2) for arbitrary n n all the terms are integers except for the first which is of the form ( 2 n + 1 ) p 2 n + 1 \dfrac{(2^n+1)p}{2^{n+1}}

which means that p p is divisible by 2 n + 1 2^{n+1} , where n n is unbounded. Therefore, a , b a,b must both be integers, if finite.

Okay, so maybe this is easier to prove using modulo methods.

[Solution has been edited so this comment may not make sense.]

Can you check your "last term in the form"? I believe x n 1 x^{n-1} should be in the denominator.

FWIW When I tried this problem in the past, playing with (just) x x and y y wasn't all that helpful. I don't know for certain if that's going down the wrong path, but it didn't lead me far.

Calvin Lin Staff - 3 years ago

Log in to reply

Fixed, thank you. Hope it reads more coherently now.

Michael Mendrin - 3 years ago

Log in to reply

Note: Looking at the last term is insufficient. For example, if we set y = 2 x y = 2x , then the last term is an integer. But with a , b = 1 ± x 2 a,b = 1\pm \frac{x}{2} , for odd x x and n 3 n \geq 3 (for safety), we still get a non-integer. This is because of the excess 1 2 k \frac{1}{2^k} flying around.

Calvin Lin Staff - 3 years ago

Log in to reply

@Calvin Lin I was only considering eliminating odd primes, leaving 2 as the special case. I've fixed the wording on that too. Proof is still under construction, but it appears that Patrick Corn has provided the full proof. I'll see if there's another way to deal with 2 n 2^n in the denominator.

...Okay, looks like this proof isn't going anywhere, because of complications with that prime number 2.

Michael Mendrin - 3 years ago

[Solution has been edited so this comment may not make sense.]

Sorry to continually burst your bubble.

I disagree with

we can see that because the following is an integer
y 6 x 4 60 y + y 6 x 4 5 y 3 x 4 \dfrac { { y }^{ 6 } }{ { x }^{ 4 } } 60y+\dfrac { { y }^{ 6 } }{ { x }^{ 4 } } \dfrac { { 5y }^{ 3 } }{ { x }^{ 4 } }
we know that the following must be an integer
5 y 3 x 4 \dfrac { { 5y }^{ 3 } }{ { x }^{ 4 } }

because an integer divided by an integer need not be an integer. As an obvious counterexample, take x = 2 , y = 2 x = 2, y = 2 .

Calvin Lin Staff - 3 years ago

Log in to reply

..right.. okay back to the drawing board.

Michael Mendrin - 3 years ago

Assuming that the first handwaving step is true, you don't have to multiply all of the terms to get that y = z x y = zx .
Suppose that for some prime p p and integer k 1 k\geq 1 , p k x p^k \mid x and p k ∤ y p^k \not \mid y , then taking n = k p + 1 n = kp+1 gives a non-integer.

(Redefining notation) The case of a = p 2 , b = q 2 a = \frac{p}{2}, b = \frac{q}{2} for odd p , q p, q is essentially the crux of the problem. Taking 2 n + 1 2^n+1 as the power results in the first term having not enough powers of 2.
IE With reference to my solution, taking l = p n + 1 > k l = p^n + 1 > k makes ( l 1 ) { l \choose 1 } have no powers of p p , while the rest of the binomial coefficients have a lot of powers of p p . Though, it can be tricky to ensure that you have enough powers of p p .

Calvin Lin Staff - 3 years ago

Log in to reply

okay let me think this through.. and meanwhile I'm still working on another proof elsewhere...

Michael Mendrin - 3 years ago

Log in to reply

I'm now looking at Patrick Corn's complete proof and your suggestions to see how I can follow through with my approach.

I keep thinking, "there's gotta be an easier way to show this"

Michael Mendrin - 3 years ago

Let's say that we have a fraction y 9 x 8 \dfrac{y^9}{x^8} , and they share a prime number p p in common. then y y could be of the form y p 8 y' p^8 while x x is of the form x p 9 x' p^9 , so that y x \dfrac{y}{x} wouldn't eliminate that prime number p p and still be a fraction. Otherwise, I could have resolved this with very low powers n n . i.e., non-integer a , b a,b solutions could conceivably exist for n < k n<k for some finite integer k k . In fact, maybe I should try to find some examples.

Let me think about your comments.

Michael Mendrin - 3 years ago
Pierre Poirier
Jun 5, 2018

If we take √2 and √3, (√3)^2 - (√2)^2 = 1 and √2 and √3 are not integers...

Note that the condition has to be true for all positive integers n , not just for "even integers n".

In particular, with n = 3 n = 3 , 3 3 2 3 \sqrt{3} ^3 - \sqrt{2} ^3 is not an integer.

Calvin Lin Staff - 3 years ago

Log in to reply

also not integer for n = 1

Abdelhamid Saadi - 3 years ago
Dong kwan Yoo
Jun 5, 2018

sorry, i can't use latex well...

Zane Taylor
Jun 11, 2018

Let A = B x A = Bx .

( B x ) n B n (Bx)^{n} - B^{n}

B n x n B n B^{n}x^{n} - B^{n}

B n ( x n 1 ) B^{n}(x^{n} - 1)

This value must be an integer for every positive integer n n .

Say B B is 1 3 \frac{1}{3} , 4 3 \frac{4}{3} , or any other non-integer fraction with denominator 3 3 . Given that for a certain value of n n , the above expression is an integer, as n n increases by 1 1 , the denominator of B n B^{n} is multiplied by 3 3 , so ( x n 1 ) (x^{n} - 1) must be multiplied by a multiple of 3 3 to cancel the fraction and keep the expression as an integer.

Generalizing, given that for a certain value of n n , the above expression is an integer, as n n increases by 1 1 , the denominator of B n B^{n} is multiplied by 1 B \frac{1}{B} , so ( x n 1 ) (x^{n} - 1) must be multiplied by a multiple of 1 B \frac{1}{B} to cancel the fraction and keep the expression as an integer. With this information, an equation representing this relationship can be created, where C C can be any positive integer, so that C 1 B C\frac{1}{B} represents any multiple of 1 B \frac{1}{B}

C 1 B ( x n 1 ) = x n + 1 1 C\dfrac{1}{B}(x^{n} - 1) = x^{n + 1} - 1

C B = x n + 1 1 x n 1 \dfrac{C}{B} = \dfrac{x^{n + 1} - 1}{x^{n} - 1}

B C = x n 1 x n + 1 1 \dfrac{B}{C} = \dfrac{x^{n} - 1}{x^{n + 1} - 1}

B = C x n 1 x n + 1 1 B = C\dfrac{x^{n} - 1}{x^{n + 1} - 1}

However, this would imply that B B depends on which value of n n is chosen! This is a contradiction because B B is constant. The only values of x x which would keep n n from having any affect on B B are x = 0 , 1 x = 0, 1 . If x = 0 x = 0 , A = B 0 = 0 A = B \cdot 0 = 0 , an integer. If x = 1 x = 1 , A = B 1 = B A = B \cdot 1 = B , which is not possible since A A and B B are distinct.

Therefore, A A and B B must be integers.

Hm, it's not clear to me what you're doing here.

Note that
1. You would want to set C n = A n + 1 B n + 1 A n B n C_n = \frac{ A^{n+1} - B^ { n+1} } { A ^n - B^n } , which is why this value can depend on n n .
2. The ratio A n + 1 B n + 1 A n B n \frac{ A^{n+1} - B^ { n+1} } { A ^n - B^n } need not be an integer. In fact, even for integers A , B A, B ), it is often not an integer.
3. x x need not be an integer, even if A , B A, B are integers. You need to be careful with tracking how the primes cancel out.


It might help me to understand if you go through your proof with A = 5 , B = 3 A = 5, B = 3 , and explain how we do not arrive at the conclusion that "x = 0, 1 ".

Calvin Lin Staff - 3 years ago
Brandon Johnson
Jun 5, 2018

Let's prove this by contradiction, so let A n B n Z A^n-B^n \in \mathbb{Z} and A B ∉ Z A \bigwedge B \not\in \mathbb{Z} for all n Z + n \in \mathbb{Z}^+ .

Then for n = 1 n=1 , A B Z A-B \in \mathbb{Z} .

And for n = 2 n=2 , A 2 B 2 = ( A B ) ( A + B ) Z A^2-B^2 = (A-B)(A+B) \in \mathbb{Z} which implies A + B Z A+B \in \mathbb{Z} .

And while we are at it (we'll need it later), for n = 4 n=4 , A 4 B 4 = ( A B ) ( A + B ) ( A 2 + B 2 ) Z A^4-B^4=(A-B)(A+B)(A^2+B^2) \in \mathbb{Z} which implies A 2 + B 2 Z A^2+B^2 \in \mathbb{Z} .

Hence, we can let A B = n 1 A-B = n_1 and A + B = n 2 A+B = n_2 with n 1 , n 2 Z n_1, n_2 \in \mathbb{Z} . Solving for B B , we can graph A A vs B B for various n 1 n_1 and n 2 n_2 .

Here the blue lines are B = A n 1 B=A-n_1 and the green lines are B = A + n 2 B=-A+n_2 . It becomes immediately obvious using this representation that both A A and B B are half integer multiples. Further, via our assumption that A A or B B is not an integer, both must be non-integer in order that A + B Z A+B \in \mathbb{Z} .

Hence, let A = m a + 1 / 2 A = m_a + 1/2 and B = m b + 1 / 2 B = m_b + 1/2 with m a , m b Z m_a, m_b \in \mathbb{Z} . Then A 2 + B 2 = ( m a + 1 / 2 ) 2 + ( m b + 1 / 2 ) 2 = m a 2 + m a + m b 2 + m b + 1 / 2 ∉ Z A^2 + B^2 = (m_a + 1/2)^2 + (m_b + 1/2)^2 = {m_a}^2 + m_a + {m_b}^2 + m_b + 1/2 \not\in \mathbb{Z} , and we have a contradition.

Therefore, both A A and B B must be integers.

In the third line, you're making a very common misconception. Can you spot it?

Hint: 1 = 2 × 1 2 1 = 2 \times \frac{1}{2} .


We do need to use the condition for all positive integers n .
As an explicit counter-example, since all that you used is A B , A 2 B 2 , A 4 B 4 A - B , A ^2 - B^2, A^4 - B^4 are integers, note that this is satisfied by A = 5.5 , B = 1.5 A = 5.5, B = 1.5 , but A A and B B are not integers.

Calvin Lin Staff - 3 years ago

Log in to reply

Ah yes. Quite the mistake I have made! I don't see an easy way to reconcile this mistake. Is there a way to extend the method outlined here, or is this method truly irreconcilable (method meaning a way to show that ( A + B ) , ( A 2 + B 2 ) Z (A+B), (A^2+B^2) \in \mathbb{Z} given the assumptions)?

Brandon Johnson - 3 years ago

Log in to reply

Ah, no then. :) Thanks Calvin!

Brandon Johnson - 3 years ago

AFAIK, no.

Note that if the condition is " A n + B n A^n + B^n are integers for all positive integers n" (But not that A n B n A^n - B^n are integers), then it's possible that A , B A,B are not integers. This means that somehow we have "lost information" in going from A n B n A^n - B^n to A n + B n A^n + B^n . See this problem for more details .

Calvin Lin Staff - 3 years ago
Maryam Bagheri
Jun 4, 2018

just suppose that n=1or2 for simplicity, then A=0.5 and B=0.25 ... but the answer isn't integer ... right?

Note that the condition must hold true for all values of n .

A = 0.5 , B = 0.25 A = 0.5, B = 0.25 doesn't satisfy the condition. In particular, 0. 5 1 0.2 5 1 = 0.25 0.5 ^ 1 - 0.25 ^ 1 = 0.25 is not an integer.

Calvin Lin Staff - 3 years ago

I don´t understand. Just suppose that n=1 for simplicity, then A=2.5 and B=1.5 ... but the answer is integer ... right?

Log in to reply

The condition must hold true for all positive integers n . You cannot simply choose 1 value of n n and test a value of A,B. In your counterexample, 2. 5 3 1. 5 3 = 12.25 2.5^3 - 1.5^3 = 12.25 is not an integer.

As an example, there is no integer C C such that C 2 n \frac{C}{2^n} is an integer for all positive integers n n . However, if we fixed a value of n n , then clearly such an integer exists.

Calvin Lin Staff - 3 years ago

1 pending report

Vote up reports you agree with

×

Problem Loading...

Note Loading...

Set Loading...