OFFSET
0,16
COMMENTS
The number of matrices with entries in Z to G^2=G+1 not of the form gI or g'I (g, the golden number and g'=1-g are the solutions to x^2=x+1), hence of the form (1+p q-B | q+B 1-p) with p^2+q^2=5+B^2 is given by 8a(n) for n!=1 and by 4a(1)=4 for n=1.
EXAMPLE
a(0)=1 because 5+0^2=5=1^2+2^2. a(15)=2 because 5+30^2=905=8^2+29^2=11^2+28^2.
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Michele Dondi (blazar(AT)lcm.mi.infn.it), Mar 24 2005
STATUS
approved