OFFSET
1,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (0,0,0,2).
FORMULA
a(n) = 2a(n-4) for n > 7. - Charles R Greathouse IV, Feb 18 2013
G.f.: -x*(x+1)^2*(x^2+1)^2 / (2*x^4-1). - Colin Barker, Jul 19 2013
Sum_{n>=1} 1/a(n) = 352/105. - Amiram Eldar, Feb 18 2021
MATHEMATICA
CoefficientList[Series[-(x + 1)^2 (x^2 + 1)^2/(2 x^4 - 1), {x, 0, 50}], x] (* Vincenzo Librandi, Oct 19 2013 *)
LinearRecurrence[{0, 0, 0, 2}, {1, 2, 3, 4, 5, 6, 7}, 50] (* Harvey P. Dale, Aug 24 2019 *)
PROG
(PARI) a(n)=if(n<9, n, [4, 5, 6, 7][n%4+1]<<(n\4-1)) \\ Charles R Greathouse IV, Feb 18 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Colin Barker, Jul 19 2013
STATUS
approved