OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..200
L. J. Gerstein, Pythagorean triples and inner products, Math. Mag., 78 (2005), 205-213.
Index entries for linear recurrences with constant coefficients, signature (7,-7,1).
FORMULA
a(n) = (-2+(3-2*sqrt(2))^n+(3+2*sqrt(2))^n)/4.
a(n) = 7*a(n-1)-7*a(n-2)+a(n-3).
G.f.: -x*(x+1) / ((x-1)*(x^2-6*x+1)).
a(n)^2 + (a(n)+1)^2 = A001542(n)^2 + 1^2. - Hermann Stamm-Wilbrandt, Jul 27 2014
MATHEMATICA
LinearRecurrence[{7, -7, 1}, {1, 8, 49}, 30] (* Harvey P. Dale, Oct 27 2013 *)
CoefficientList[Series[-(x + 1)/((x - 1) (x^2 - 6 x + 1)), {x, 0, 30}], x] (* Vincenzo Librandi, Jul 28 2014 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
N. J. A. Sloane, Mar 14 2006
EXTENSIONS
Corrected and edited by Colin Barker, Jul 31 2013
STATUS
approved