Well, you can make them square-free, so we have [imath] 5\, , \,2^2\cdot 5\, , \, 4\cdot 30=2^2\cdot 2\cdot 3\cdot5\, , \,10^2\cdot 10=10^2\cdot 2\cdot 5 .[/imath] Since we have rational numbers here, we can divide the square and are left with the situation [imath] 5\, , \,30\, , \,10. [/imath] Since [imath] 5=1^2+2^2 [/imath] we are left with the demand to write [imath] 6 [/imath] and [imath] 2 [/imath] as square of primes.
[imath] 2=1^2+1^2 [/imath] so [imath] 20=2^2(1^2+2^2) [/imath] and [imath] 1000= 10^2(1^2+1^2)(1^2+2^2)[/imath] which is again of the form [imath] a^2+b^2 [/imath] by the statement we spoke about. Hence, [imath] 5,20,1000 [/imath] can be written as such.
Remains to prove, that [imath] 120=2^2(1^2+2^2)(1^2+1^2)\cdot 3 [/imath] can not. Again, we may divide the equation by [imath] 2^2(1^2+2^2)(1^2+1^2) [/imath] because we have rational numbers. That leaves us with the question of whether [imath] 3=x^2+y^2 [/imath] is solvable over the rational numbers or not.
But this can be done by looking at the remainders by a division by [imath] 3. [/imath] Say
[math] 3=\dfrac{p^2}{q^2}+\dfrac{r^2}{s^2}\Longrightarrow 3\,q^2s^2=p^2+r^2\Longrightarrow 3\,|\,p^2+r^2[/math]Square integers are either divisible by [imath] 3 [/imath] or have a remainder [imath] 1. [/imath] Since [imath] 1+1=2\not\equiv 0\pmod{3} [/imath] and [imath] 1+0=1\not\equiv 0\pmod{3} ,[/imath] we have [imath] 3\,|\,p [/imath] and [imath] 3\,|\,r. [/imath] This leaves us with an even number of threes on the right and an odd number of threes on the left which is impossible. Hence [imath] 3 [/imath] cannot be written as a sum of squares (which also follows from Fermat's statement) and therefore [imath] 120 [/imath] cannot be written as a sum of square rational numbers either.
what you write here is very nice but i want a rule or theorem to follow
i'll rewrite the Jacobi theorem and i'll enhance it
Jacobi's two-square theorem
Two-square theorem --- Denote the number of divisors of \(\displaystyle n\) as \(\displaystyle d(n)\), and write \(\displaystyle d_a(n)\) for the number of those divisors with \(\displaystyle d \equiv a \ mod \ 4\). Let \(\displaystyle n = 2^f p_1^{r_1} p_2^{r_2}\cdots q_1^{s_1}q_2^{s_2}\cdots\) where \(\displaystyle p_i \equiv 1 \ mod \ 4\), \(\displaystyle q_i \equiv 3 \ mod \ 4\).
Let \(\displaystyle r_2(n)\) be the number of ways \(\displaystyle n\) can be represented as the sum of two squares.
Then \(\displaystyle r_2(n) = 0\) if any of the exponents \(\displaystyle s_j\) are odd. If all \(\displaystyle s_j\) are even then
\(\displaystyle r_2(n) = 4d(p_1^{r_1}p_2^{r_2}\cdots) = 4(d_1(n) - d_3(n)) = (r_1 + 1) \cdots (r_k + 1)\)
i think i understand the theorem now. i'll use it to solve the numbers \(\displaystyle 5,20,120,1000\). if i make mistake stop me.
case 1
i ignore the even prime i think
1- this theorem say if the odd primes is congruent to \(\displaystyle 3\) modulo \(\displaystyle 4\), check the power, if any is odd, stop, there is no sum
2- this theorem say if the odd primes is congruent to \(\displaystyle 3\) modulo \(\displaystyle 4\), check the power, if all is even, there is sum
if second condition satisfy
***
take power of odd primes is congruent to \(\displaystyle 1\) modulo \(\displaystyle 4\) and \(\displaystyle r_2(n) = 4(r_1 + 1) \cdots (r_k + 1)\)
case 2
what happen if there's no odd primes at all?
\(\displaystyle 5 = 2^05^1\)
there's no odd primes is congruent to \(\displaystyle 3\) modulo \(\displaystyle 4\), i'm guess in this case we just continue from the three stars***
so \(\displaystyle r_2(5) = 4(1 + 1) = 4(2) = 8\)
this mean there's eight way to write \(\displaystyle 5\) with square sum. the answer don't make sense and i can't poof it
\(\displaystyle 20 = 2^25^1\)
there's no odd primes is congruent to \(\displaystyle 3\) modulo \(\displaystyle 4\), i'm guess in this case we just continue from the three stars***
so \(\displaystyle r_2(20) = 4(1 + 1) = 4(2) = 8\)
\(\displaystyle 120 = 2^33^15^1\)
there's odd primes is congruent to \(\displaystyle 3\) modulo \(\displaystyle 4\) with odd power
so there's no sum
\(\displaystyle 1000 = 2^35^3\)
there's no odd primes is congruent to \(\displaystyle 3\) modulo \(\displaystyle 4\), i'm guess in this case we just continue from the three stars***
so \(\displaystyle r_2(1000) = 4(3 + 1) = 4(4) = 16\)
i'm not sure what happen if there's two odd primes is congruent to \(\displaystyle 1\) modulo \(\displaystyle 4\)
\(\displaystyle 47385000 = 2^35^413^13^6\)
\(\displaystyle 2^3:\) i ignore even primes
\(\displaystyle 3^6: \) all odd primes is congruent to \(\displaystyle 3\) modulo \(\displaystyle 4\) have even power
\(\displaystyle 5\) and \(\displaystyle 13\) is odd primes is congruent to \(\displaystyle 1\) modulo \(\displaystyle 4\)
so \(\displaystyle r_2(47385000) = 4(4 + 1)(1 + 1) = 4(5)(2) = 4(10) = 40\)
this mean there's forty way to write \(\displaystyle 47385000\) with square sum
is my analize correct?