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 A085121 #27 Jul 25 2023 07:34:47 %S A085121 0,0,0,8,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,32,0,0,0,0,0, %T A085121 0,0,48,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,72,0,0,0,0,0, %U A085121 0,0,24,0,0,0,0,0,0,0,56,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,72 %N A085121 Number of ways of writing n as the sum of three odd squares. %C A085121 Number of ways of writing n as the sum of the squares of three odd numbers (see example). Equals 8*A008437 because each summand can be the square of either a positive or negative odd number, and there are three summands, thus 2^3 = 8. - _Antti Karttunen_ & _Michel Marcus_, Jul 23 2018 %H A085121 Antti Karttunen, <a href="/A085121/b085121.txt">Table of n, a(n) for n = 0..65537</a> %H A085121 J. E. Jones [Lennard-Jones] and A. E. Ingham, <a href="https://doi.org/10.1098/rspa.1925.0047">On the calculation of certain crystal potential constants and on the cubic crystal of least energy</a>, Proc. Royal Soc., A 107 (1925), 636-653 (see p. 650). %F A085121 G.f.: (Sum_{n=-oo..oo} q^((2n+1)^2))^3. %e A085121 a(3) = 8 because 3 = (+1)^2 + (+1)^2 + (+1)^2 = (-1)^2 + (+1)^2 + (+1)^2 = (+1)^2 + (-1)^2 + (+1)^2 = (+1)^2 + (+1)^2 + (-1)^2 = (-1)^2 + (-1)^2 + (+1)^2 = (-1)^2 + (+1)^2 + (-1)^2 = (+1)^2 + (-1)^2 + (-1)^2 = (-1)^2 + (-1)^2 + (-1)^2. - _Antti Karttunen_, Jul 23 2018 %o A085121 (PARI) %o A085121 A008442(n) = if( n<1 || n%4!=1, 0, sumdiv(n, d, (d%4==1) - (d%4==3))); \\ From A008442. %o A085121 A290081(n) = if(n%2,0,A008442(n/2)); %o A085121 A008437(n) = if((n<3)||!(n%2),0,my(s=0, k = sqrtint(n)); k -= ((1+k)%2); while(k>=1, s += A290081(n-(k*k)); k -= 2); (s)); %o A085121 A085121(n) = 8*A008437(n); \\ _Antti Karttunen_, Jul 22 2018 %Y A085121 Cf. A005875, A008437. The nonzero coefficients give A005878. %K A085121 nonn %O A085121 0,4 %A A085121 _N. J. A. Sloane_, Apr 25 2004