Let $\mathbb{N}=\{1,2,3,...\}$ be the set of natural numbers. (We assume that the zero does not belong to $\mathbb{N})$.
Suppose we have the following equation: $$x^2+y^2=z_0^2$$ where $z_0 \in \mathbb{N}$ is given.
We are interested in finding the number of the solutions $(x_0,y_0)$ for the equation above such that $(x_0,y_0) \in \mathbb{N} \times \mathbb{N}$.
Two points should be taken into consideration:
- The equation may have no solution (for instance, take $z_0=1$).
- If $(a,b) \in \mathbb{N} \times \mathbb{N}$ is a solution then $(b,a) \in \mathbb{N} \times \mathbb{N}$ is obviously a solution too. Therefore, we can consider $(a,b)$ and $(b,a)$ as the same solution.
Are there articles, books, ideas or anything else about this idea?
There is a fairly simple expression for all representations $x^2 + y^2 = n$ when we can factor$n.$ If $n$ is a square, there are exactly four of these with a $0.$ For you, $n$ is never twice a square, so getting $1 \leq x < y$ comes from counting the nonzero representations and dividing that by $8$
This book may be read online, probably downloaded