Search: id:A016725 Results 1-1 of 1 results found. %I A016725 %S A016725 1,6,6,30,6,30,30,54,6,102,30,78,30,78,54,150,6,102,102,126,30,270,78, %T A016725 150,30,150,78,318,54,174,150,198,6,390,102,270,102,222,126,390,30,246, %U A016725 270,270,78,510,150,294,30,390,150,510,78,318,318,390,54,630,174,366 %N A016725 Number of integer solutions to x^2+y^2+z^2 = n^2, allowing zeros and distinguishing signs and order. %H A016725 Michael Gilleland, Some Self-Similar Integer Sequences %H A016725 Eric Weisstein's World of Mathematics, Sum of Squares Function %p A016725 for n from 0 to 60 do s:=0: for x from -n to n do for y from -n to n do for z from -n to n do if (x^2+y^2+z^2) = n^2 then s:=s+1 fi od od od: printf("%d, ",s) od: %Y A016725 Cf. A005875. %Y A016725 Sequence in context: A077193 A056482 A123874 this_sequence A151779 A066714 A054436 %Y A016725 Adjacent sequences: A016722 A016723 A016724 this_sequence A016726 A016727 A016728 %K A016725 nonn %O A016725 0,2 %A A016725 csvcjld(AT)nomvst.lsumc.edu %E A016725 Revised description and Maple program from C. Ronaldo (aga_new_ac(AT)hotmail.com), Dec 13 2004 Search completed in 0.001 seconds