A171068 G.f. -x*(x-1)*(1+x)/(1-x-11*x^2-x^3+x^4).
0, 1, 1, 11, 23, 144, 407, 2003, 6601, 28897, 103104, 425569, 1582009, 6337475, 24062039, 94930704, 364368599, 1426330907, 5505254161, 21464332033, 83084090112, 323270665729, 1253154734833, 4870751815931, 18895640474711
Offset: 0
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..1000
- Hugh Williams, R. K. Guy, Some fourth-order linear divisibility sequences, Intl. J. Number Theory vol. 7 (5) (2011) 1255-1277
- Index entries for linear recurrences with constant coefficients, signature (1,11,1,-1).
Crossrefs
Programs
-
Magma
I:=[0, 1, 1, 11]; [n le 4 select I[n] else Self(n-1) + 11*Self(n-2) + Self(n-3) - Self(n-4): n in [1..30]]; // Vincenzo Librandi, Dec 19 2012
-
Mathematica
CoefficientList[Series[-x*(x - 1)*(1 + x)/(1 - x - 11*x^2 - x^3 + x^4), {x, 0, 40}], x] (* Vincenzo Librandi, Dec 19 2012 *)
Formula
a(n)= +a(n-1) +11*a(n-2) +a(n-3) -a(n-4).
Comments