OFFSET
0,2
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..800
Index entries for linear recurrences with constant coefficients, signature (24, -163, 336, -196).
FORMULA
From R. J. Mathar, Mar 05 2010: (Start)
a(n) = sum_{d|14} d^(n-1) = 1+2^(n-1)+7^(n-1)+14^(n-1).
a(n)= 24*a(n-1) -163*a(n-2) +336*a(n-3) -196*a(n-4), n>4.
G.f: -2*x*(-2+36*x-163*x^2+168*x^3)/((x-1)*(14*x-1)*(2*x-1)*(7*x-1)).
(End)
MAPLE
A141013 := proc(n) local d; add(d^(n-1), d=numtheory[divisors](14)) ; end proc: seq(A141013(n), n=1..20) ; # R. J. Mathar, Mar 05 2010
MATHEMATICA
CoefficientList[Series[- 2 x (-2 + 36 x - 163 x^2 + 168 x^3)/((x-1) (14*x-1) (2*x-1) (7*x-1)), {x, 0, 40}], x] (* Vincenzo Librandi, Dec 12 2012 *)
PROG
(Magma) [0] cat [1+2^(n-1)+7^(n-1)+14^(n-1): n in [1..20]]; // Vincenzo Librandi, Dec 12 2012
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
R. J. Mathar, Jul 11 2008
STATUS
approved