OFFSET
1,1
COMMENTS
Generalization of A115339.
LINKS
Colin Barker, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (0,1,0,1).
FORMULA
G.f.: -x*(91*x^3-91*x^2+10*x+101) / (x^4+x^2-1). Colin Barker, Oct 03 2015
MATHEMATICA
LinearRecurrence[{0, 1, 0, 1}, {101, 10, 10, 101}, 50] (* Paolo Xausa, Jan 04 2024 *)
PROG
(PARI) Vec(-x*(91*x^3-91*x^2+10*x+101)/(x^4+x^2-1) + O(x^100)) \\ Colin Barker, Oct 03 2015
(PARI) a(n) = if(n==1||n==4, 101, if(n==2||n==3, 10, a(n-2)+a(n-4))); \\ Altug Alkan, Oct 03 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mark Dols, Aug 18 2010
STATUS
approved