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.

A219736 The number of 2 X 2 matrices with all eigenvalues real and whose entries are integers with absolute value at most n.

Original entry on oeis.org

67, 477, 1759, 4729, 10395, 20141, 35423, 58225, 90579, 134813, 193503, 269785, 366267, 486925, 635199, 815105, 1030371, 1286221, 1586447, 1937033, 2342379, 2808221, 3340239, 3945361, 4628467, 5396781, 6257039, 7216457, 8281579, 9461805, 10762495, 12193873
Offset: 1

Views

Author

W. Edwin Clark, Nov 26 2012

Keywords

Crossrefs

Programs

  • Maple
    a:=proc(n)
    local x,y,z,w,Eig,count;
    count:=0;
    for x from -n to n do
    for y from -n to n do
    for z from -n to n do
    for w from -n to n do
    Eig:=LinearAlgebra:-Eigenvalues(Matrix([[x,y],[z,w]]));
    if Im(Eig[1]) = 0  then count:=count+1; fi;
    od:
    od:
    od:
    od:
    count;
    end:

Formula

a(n) = (2*n+1)^4 - A207259(n).

Extensions

a(16)-a(32) from Hiroaki Yamanouchi, Oct 03 2014