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.

Showing 1-1 of 1 results.

A219744 The number of 2 X 2 symmetric positive definite matrices whose entries are integers x,y,z satisfying x^2 + y^2 + z^2 <= n^2.

Original entry on oeis.org

0, 1, 10, 22, 49, 92, 150, 227, 328, 449, 609, 792, 1017, 1281, 1582, 1911, 2308, 2750, 3241, 3778, 4420, 5049, 5776, 6572, 7429, 8378, 9413, 10505, 11646, 12935, 14251, 15690, 17235, 18854, 20580, 22391, 24330, 26352, 28541, 30750
Offset: 1

Views

Author

W. Edwin Clark, Nov 26 2012

Keywords

Crossrefs

Cf. A219693.

Programs

  • Maple
    a:=proc(n)
    local x,y,z,count,num;
    count:=0;
    for x from 0 to n do
    for y from 0 to n do
    for z from -n to n do
    if x^2+y^2+z^2 > n^2 then next; fi;
    if x>0 and x*y > z^2 then count:=count+1; fi;
    od:
    od:
    od:
    count;
    end:
Showing 1-1 of 1 results.