Multiples of 4 as sum or difference of

Kendal Day

Kendal Day

Answered question

2022-04-16

Multiples of 4 as sum or difference of 2 squares
Is it true that for any nN we can have 4n=x2+y2 or 4n=x2y2, for x,yN(0)?
I was just working out a proof and this turns out to be true from n=1 to n=20. After that I didn't try, but I would like to see if a counterexample exists for a greater value of n.

Answer & Explanation

YAMAGAMA699k

YAMAGAMA699k

Beginner2022-04-17Added 8 answers

Step 1
The form x2y2 factors as (x+y)(xy). Therefore, if you want to represent an integer N as x2y2, you can attempt to do so by choosing a factorization N=ab and solving the linear system
x+y=a
xy=b
Step 2
This system has the unique rational solution x=a+b2,y=ab2. This gives an integral solution iff a and b have the same parity. Use this to show:
A positive integer N is of the form x2y2 for x,yZ (possibly 0) iff N is odd or N is divisible by 4.
In particular, 4n is always of the form x2y2. You want a little more: that x and y are both nonzero. Clearly x cannot be zero, so you need to analyze the case y=0 and show that whenever all possible solutions to n=x2y2 have y=0, then there are nonzero X and Y such that 4n=X2+Y2.

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?