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.

A211647 Number of ordered triples (w,x,y) with all terms in {1,...,n} and w^2+x^2+y^2<=3n.

Original entry on oeis.org

0, 1, 4, 7, 11, 17, 23, 32, 38, 48, 60, 66, 78, 87, 102, 114, 121, 139, 157, 169, 178, 196, 214, 232, 241, 263, 284, 296, 314, 329, 359, 371, 386, 410, 434, 452, 471, 495, 516, 540, 555, 582, 612, 630, 651, 678, 702, 729, 738, 772, 805, 829, 853, 871
Offset: 0

Views

Author

Clark Kimberling, Apr 18 2012

Keywords

Comments

For a guide to related sequences, see A211422.

Crossrefs

Cf. A211422.

Programs

  • Mathematica
    t = Compile[{{n, _Integer}}, Module[{s = 0},
        (Do[If[w^2 + x^2 + y^2 <= 3 n, s = s + 1],
            {w, 1, #}, {x, 1, #}, {y, 1, #}] &[n]; s)]];
    Map[t[#] &, Range[0, 80]]  (* A211647 *)
    (* Peter J. C. Moses, Apr 13 2012 *)