# Given integers n,b what (all) the integer solutions for $a_1^2+a_2^2+…+a_n^2 = b.C^2$ ??

Given integers b,n, what are integer C,$$a_i$$ who solves $$a_1^2+a_2^2+....+a_n^2 = b.C^2$$ ??

Example for n=4 , b=7-> $$a_1^2+a_2^2+a_3^2+a_4^2 = 7C^2$$

or

for n=3, b=1 -> $$a_1^2+a_2^2+a_3^2 = C^2$$

Please if any reference, book, author I will appreciate thanks

Every positive integer is the sum of four squares, in particular there exist $$a_1,a_2,a_3,a_4$$ with $$a_1^2+\cdots +a_4^2=7C^2$$ for every $$C$$. For two squares and three squares there are well-known theorems as well:
Show that an integer of the form $$8k + 7$$ cannot be written as the sum of three squares.
• Currently I know all b are in the form b = $x_1^2+x_2^2..+..x_n^2$ and until I notice or there infinite solutions for every case or no solutions.at all. I don´t know if last statement is true, that´s to say exists some solution for b not being in the form of sum of squares. – Miguel Velilla Sep 23 '18 at 16:24
• I mean for example to solve $x_1^2+x_2^2=7.c^2$ , since 7 can not be sum of two squares then I suppose there is no solution for this case. – Miguel Velilla Sep 23 '18 at 16:27
• It shows that $x_1^2+x_2^2=7c^2$ has no integer solution. We can also see this directly, see here. – Dietrich Burde Sep 23 '18 at 19:02
• I got to solve now more complete forms t1a1^2+...+tnan^2=b.c^2 by using parametric forms Example for n=5, b=6 this sequence $1.a_1^2+2.a_2^2+3.a_3^2+4.a_4^2+5.a_5^2 = 6.C^2$ one solution (among infinite other) is $1.77^2+2.61^2+3.67^2+4.(2)^2+5.(4)^2=6.67^2$ I am writing development for this method soon will post here – Miguel Velilla Sep 23 '18 at 21:36