OFFSET
0,4
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,102,0,-1).
FORMULA
a(n) = 102*a(n-2)-a(n-4). G.f.: x*(1+x-x^2)/((x^2+10*x-1)*(x^2-10*x-1)). - R. J. Mathar, Jul 14 2009
MAPLE
a:= proc(n) a(n):= `if`(n<2, n, a(n-1)*(1+99*(n mod 2))+a(n-2)) end:
seq(a(n), n=0..22); # Alois P. Heinz, Jan 20 2025
MATHEMATICA
LinearRecurrence[{0, 102, 0, -1}, {1, 1, 101, 102}, 20] (* Harvey P. Dale, May 08 2020 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mark Dols, Jul 10 2009
EXTENSIONS
More terms from R. J. Mathar, Jul 14 2009
STATUS
approved