OFFSET
0,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..1000
Shalosh B. Ekhad and Doron Zeilberger, Automatic Solution of Richard Stanley's Amer. Math. Monthly Problem #11610 and ANY Problem of That Type, arXiv preprint arXiv:1112.6207, 2011. See subpages for rigorous derivations of g.f., recurrence, asymptotics for this sequence.
MAPLE
a:= proc(n) option remember; `if`(n<8,
[1, 3, 9, 25, 73, 209, 603, 1737][n+1],
((7*n-5)*a(n-1) -(14*n-26)*a(n-2) -(n+24)*a(n-3)
+(29*n-69)*a(n-4) -(20*n-112)*a(n-5) -(20*n-68)*a(n-6)
+(20*n-108)*a(n-7) +(12*n-60)*a(n-8))/n)
end:
seq(a(n), n=0..30); # Alois P. Heinz, Oct 30 2013
MATHEMATICA
a[n_] := a[n] = If[n<8, {1, 3, 9, 25, 73, 209, 603, 1737}[[n+1]], ((7*n-5)*a[n-1] - (14*n-26)*a[n-2] - (n+24)*a[n-3] + (29*n-69)*a[n-4] - (20*n-112)*a[n-5] - (20*n-68)*a[n-6] + (20*n-108)*a[n-7] + (12*n-60)*a[n-8])/n]; Table[a[n], {n, 0, 30}] (* Jean-François Alcover, Mar 07 2014, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Apr 07 2012
STATUS
approved