OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..675
FORMULA
a(n) = Sum_{k=0..floor(n/2)} ((k+2)^(n-2k)+k)/(k+1).
MATHEMATICA
Table[Sum[((k + 2)^(n - 2 k) + k)/(k + 1), {k, 0, Floor[n/2]}], {n, 0, 50}] (* G. C. Greubel, Oct 14 2017 *)
PROG
(PARI) for(n=0, 25, print1(sum(k=0, floor(n/2), ((k + 2)^(n - 2 k) + k)/(k + 1)), ", ")) \\ G. C. Greubel, Oct 14 2017
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Paul Barry, Oct 01 2006
STATUS
approved