cp's OEIS Frontend

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.

A218711 Number of nonnegative solutions to x^2 + y^2 + z^2 < n^2.

This page as a plain text file.
%I A218711 #6 Nov 05 2012 14:59:19
%S A218711 0,1,8,23,51,90,157,230,341,471,639,835,1063,1340,1671,2022,2443,2893,
%T A218711 3428,4004,4653,5359,6133,6977,7907,8886,9991,11152,12428,13724,15192,
%U A218711 16683,18358,20072,21932,23880,25941,28117,30397,32822,35376,38013,40840,43765,46880,50090,53448,56911,60583,64379
%N A218711 Number of nonnegative solutions to x^2 + y^2 + z^2 < n^2.
%F A218711 a(n) = A000604(n) - A181788(n).
%o A218711 (JavaScript)
%o A218711 for (i=0;i<50;i++) {
%o A218711 d=0;
%o A218711 for (a=0;a<=i;a++)
%o A218711 for (b=0;b<=i;b++)
%o A218711 for (c=0;c<=i;c++)
%o A218711 if (Math.pow(a,2)+Math.pow(b,2)+Math.pow(c,2)<Math.pow(i,2)) d++;
%o A218711 document.write(d+", ");
%o A218711 }
%Y A218711 Cf. A000604, A181788.
%K A218711 nonn
%O A218711 0,3
%A A218711 _Jon Perry_, Nov 04 2012