OFFSET
1,1
COMMENTS
j sequence = A106387
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (1,2,-2,-1,1).
FORMULA
a(1)=11, a(2)=23; if n odd a(n)=a(n-1)+54*(n-1), if n even a(n)=a(n-1)+12*(n-1).
a(n) = (66*n*(n-1)-21*(2*n-1)*(-1)^n+23)/4.
G.f.: x*(11+12*x+86*x^2+12*x^3+11*x^4)/((1+x)^2*(1-x)^3).
a(n)-a(n-1)-2*a(n-2)+2*a(n-3)+a(n-4)-a(n-5) = 0 for n>5.
MATHEMATICA
LinearRecurrence[{1, 2, -2, -1, 1}, {11, 23, 131, 167, 383}, 50] (* Harvey P. Dale, Jul 26 2018 *)
PROG
(PARI) Vec((11+12*x+86*x^2+12*x^3+11*x^4)/(1+x)^2/(1-x)^3+O(x^99)) \\ Charles R Greathouse IV, Dec 28 2011
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Pierre CAMI, May 01 2005
EXTENSIONS
Formulae corrected and added by Bruno Berselli, Nov 16 2010
More terms from Colin Barker, Apr 16 2014
STATUS
approved