OFFSET
1,2
COMMENTS
Essentially A052530, each term besides the first repeated. - R. J. Mathar, Jul 21 2009
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (0,4,0,-1).
FORMULA
From Colin Barker, Feb 21 2013: (Start)
a(n) = 4*a(n-2) - a(n-4).
G.f.: 2*x^2*(x+1) / (x^4-4*x^2+1). (End)
EXAMPLE
Pairs are (8,30) with (8^2 + 30^2)/(8*30 + 1) = 4, or (30,112) with (30^2 + 112^2)/(30*112 + 1) = 4.
MATHEMATICA
CoefficientList[Series[2 x (x + 1) / (x^4 - 4 x^2 + 1), {x, 0, 40}], x] (* Vincenzo Librandi, May 14 2013 *)
PROG
(PARI) x='x+O('x^66); concat([0], Vec(2*x^2*(x+1)/(x^4-4*x^2+1))) \\ Joerg Arndt, May 15 2013
CROSSREFS
KEYWORD
nonn,less,easy
AUTHOR
Vincenzo Librandi, Jul 19 2009
STATUS
approved