OFFSET
1,1
LINKS
Robert Israel, Table of n, a(n) for n = 1..3305
Eric Weisstein's World of Mathematics, Clique
Eric Weisstein's World of Mathematics, Queen Graph
Index entries for linear recurrences with constant coefficients, signature (6, -11, 0, 21, -18, -5, 12, -4).
FORMULA
a(n) = 3*2^(n + 1) + n*((-1)^(n + 1) + 2^(n + 2) + n*(9*n - 26) - 2)/2 - 5.
a(n) = 6*a(n-1) - 11*a(n-2) + 21*a(n-4) - 18*a(n-5) - 5*a(n-6) + 12*a(n-7) - 4*a(n-8).
G.f.: x*(2 + 4*x + 20*x^2 - 95*x^3 - 24*x^4 + 113*x^5 + 92*x^6 - 4*x^7)/((-1 + x)^4*(-1 + x + 2*x^2)^2).
MAPLE
f:=n-> 3*2^(n + 1) + n*((-1)^(n + 1) + 2^(n + 2) + n*(9*n - 26) - 2)/2 - 5:
map(f, [$1..40]); # Robert Israel, Nov 30 2017
MATHEMATICA
Table[3 2^(n + 1) + n ((-1)^(n + 1) + 2^(n + 2) + n (9 n - 26) - 2)/2 - 5, {n, 20}]
LinearRecurrence[{6, -11, 0, 21, -18, -5, 12, -4}, {2, 16, 94, 293,
742, 1642, 3458, 7087}, 20]
CoefficientList[Series[(2 + 4 x + 20 x^2 - 95 x^3 - 24 x^4 + 113 x^5 + 92 x^6 - 4 x^7)/((-1 + x)^4 (-1 + x + 2 x^2)^2), {x, 0, 20}], x]
CROSSREFS
KEYWORD
nonn
AUTHOR
Eric W. Weisstein, Nov 29 2017
STATUS
approved