OFFSET
0,3
PROG
(JavaScript)
for (i=0; i<50; i++) {
d=0;
for (a=0; a<=i; a++)
for (b=0; b<=i; b++)
for (c=0; c<=i; c++)
if (Math.pow(a, 2)+Math.pow(b, 2)+Math.pow(c, 2)<Math.pow(i, 2)) d++;
document.write(d+", ");
}
CROSSREFS
KEYWORD
nonn
AUTHOR
Jon Perry, Nov 04 2012
STATUS
approved