I have a function defined by $f=(2c-1)^2-2b^2$. I want to express this in the form of a linear diophantine equation. I tried $f_1=8m\pm 1$ for some $m$, but it unfortunately does not work since for example $f=65$ never occurs for any value of $b$ or $c$. So, the question is can such a linear diophantine relation be written?
2026-03-25 07:48:57.1774424937
Expressing difference of squares as diophantine equation
156 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
Well, you have forced the represented numbers to be odd, indeed $\pm 1 \pmod 8 \; .$
So that is it, an odd number is represented if and only if all prime factors $q \equiv \pm 3 \pmod 8$ occur with even exponents. Indeed, if there are any such $q,$ we must have $q | b$ and $q| (2c-1).$ In your example, $65 = 5 \cdot 13,$ each with odd exponent $1,$ each $5 \pmod 8.$
In particular, any odd number, all of whose factors are $\pm 1 \pmod 8 \; ,$ can be expressed this way
Why not: here are the primes $p = u^2 - 2 v^2$ up to 1000. The prime $2$ is included here by the program, although your polynomial cannot actually represent any even number.
A good book for self study of number theory, currently on sale at about $42 I guess shipping also costs.