OFFSET
0,4
COMMENTS
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
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..65537
J. E. Jones [Lennard-Jones] and A. E. Ingham, On the calculation of certain crystal potential constants and on the cubic crystal of least energy, Proc. Royal Soc., A 107 (1925), 636-653 (see p. 650).
FORMULA
G.f.: (Sum_{n=-oo..oo} q^((2n+1)^2))^3.
EXAMPLE
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
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Apr 25 2004
STATUS
approved