This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A025358 #31 Feb 16 2025 08:32:35 %S A025358 31,34,36,37,39,43,45,47,49,50,54,57,61,68,69,71,74,77,81,83,86,94, %T A025358 107,113,116,131,136,144,149,200,216,272,296,344,376,464,544,576,800, %U A025358 864,1088,1184,1376,1504,1856,2176,2304,3200,3456,4352,4736,5504,6016,7424 %N A025358 Numbers that are the sum of 4 nonzero squares in exactly 2 ways. %C A025358 Conjecture: the even members of this sequence are all numbers of the form %C A025358 k*4^m for k in [9,17,29], m>= 1, or k*4^m for k in [34, 50, 54, 74, 86, 94], m>=0. - _Robert Israel_, Nov 03 2017 %H A025358 Alois P. Heinz, <a href="/A025358/b025358.txt">Table of n, a(n) for n = 1..77</a> (first 71 terms from Robert Price) %H A025358 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/SquareNumber.html">Square Number</a> %H A025358 <a href="/index/Su#ssq">Index entries for sequences related to sums of squares</a> %F A025358 {n: A025428(n) = 2}. - _R. J. Mathar_, Jun 15 2018 %p A025358 N:= 10000: # to get all terms <= N %p A025358 T:= Vector(N): %p A025358 for a from 1 to floor(sqrt(N/4)) do %p A025358 for b from a to floor(sqrt((N-a^2)/3)) do %p A025358 for c from b to floor(sqrt((N-a^2-b^2)/2)) do %p A025358 for d from c to floor(sqrt(N-a^2-b^2-c^2)) do %p A025358 m:= a^2+b^2+c^2+d^2; %p A025358 T[m]:= T[m]+1; %p A025358 od od od od: %p A025358 select(i -> T[i] = 2, [$1..N]); # _Robert Israel_, Nov 03 2017 %t A025358 M = 1000; %t A025358 Clear[T]; T[_] = 0; %t A025358 For[a = 1, a <= Floor[Sqrt[M/4]], a++, %t A025358 For[b = a, b <= Floor[Sqrt[(M - a^2)/3]], b++, %t A025358 For[c = b, c <= Floor[Sqrt[(M - a^2 - b^2)/2]], c++, %t A025358 For[d = c, d <= Floor[Sqrt[M - a^2 - b^2 - c^2]], d++, %t A025358 m = a^2 + b^2 + c^2 + d^2; %t A025358 T[m] = T[m] + 1; %t A025358 ]]]]; %t A025358 Select[Range[M], T[#] == 2&] (* _Jean-François Alcover_, Mar 22 2019, after _Robert Israel_ *) %Y A025358 Cf. A025367 (at least 2 ways). %K A025358 nonn %O A025358 1,1 %A A025358 _David W. Wilson_