OFFSET
1,2
COMMENTS
Discriminant = 9.
LINKS
Ray Chandler, Table of n, a(n) for n = 1..10000
N. J. A. Sloane et al., Binary Quadratic Forms and OEIS (Index to related sequences, programs, references)
FORMULA
Conjectures from Colin Barker, Oct 31 2016: (Start)
a(n) = a(n-1)+a(n-11)-a(n-12) for n>12.
G.f.: (1 +2*x)*(1 +x +x^2)*(1 +x^3 +x^7) / ((1 -x)^2*(1 +x +x^2 +x^3 +x^4 +x^5 +x^6 +x^7 +x^8 +x^9 +x^10)).
(End)
MATHEMATICA
Reap[For[n = 1, n < 1000, n++, r = Reduce[x^2 + x y - 2 y^2 == n, {x, y}, Integers]; If[r =!= False, If[AnyTrue[{x, y} /. {ToRules[r /. C[1] -> 0]}, CoprimeQ @@ # &], Sow[n]]]]][[2, 1]] (* Jean-François Alcover, Oct 31 2016 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Peter Luschny, Jul 04 2014
STATUS
approved