OFFSET
0,1
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..1660
Index entries for linear recurrences with constant coefficients, signature (10,-35,50,-24).
FORMULA
a(n) = 1 + (9*2^(2*n+2) + 9*2^(n+2) + 8*3^(n+1))/24.
From Colin Barker, Mar 08 2017: (Start)
G.f.: (5 - 37*x + 85*x^2 - 59*x^3) / ((1 - x)*(1 - 2*x)*(1 - 3*x)*(1 - 4*x)).
a(n) = (2 + 3*2^n + 2*3^n + 3*4^n)/2.
a(n) = 10*a(n-1) - 35*a(n-2) + 50*a(n-3) - 24*a(n-4) for n>3. (End)
MATHEMATICA
LinearRecurrence[{10, -35, 50, -24}, {5, 13, 40, 136}, 30] (* Harvey P. Dale, Aug 09 2023 *)
PROG
(Ruby)
def A283456(n)
(0..n).map{|i| 1 + (9 * 2 ** (2 * i + 2) + 9 * 2 ** (i + 2) + 8 * 3 ** (i + 1)) / 24}
end
(PARI) Vec((5 - 37*x + 85*x^2 - 59*x^3) / ((1 - x)*(1 - 2*x)*(1 - 3*x)*(1 - 4*x)) + O(x^30)) \\ Colin Barker, Mar 08 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Seiichi Manyama, Mar 08 2017
STATUS
approved