login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A051139
a(n) = A000994(n+2) - A000995(n+2).
8
1, 0, 0, 1, 3, 7, 19, 64, 236, 893, 3489, 14347, 62429, 285580, 1362372, 6749337, 34683211, 184774851, 1019351071, 5813020060, 34206071992, 207391313189, 1294092695729, 8302365433863, 54713262186745, 370027343460584, 2565874205681368
OFFSET
0,5
LINKS
FORMULA
For recurrence see A000994 and A000995.
EXAMPLE
a(7) = 359 - 295 = 64.
MATHEMATICA
a4[_?Negative] = 0; a4[n_] := a4[n] = 1 + Sum[ Binomial[n, k]*a4[k-2], {k, 2, n}]; a5[_?Negative] = 0; a5[n_] := a5[n] = n + Sum[ Binomial[n, k]*a5[k-2], {k, 2, n}]; a[n_] := a4[n] - a5[n]; Table[a[n], {n, 0, 26}] (* Jean-François Alcover, Oct 11 2013 *)
PROG
(Haskell)
a051139 n = a000994 (n + 2) - a000995 (n + 2)
-- Reinhard Zumkeller, Jun 02 2013
CROSSREFS
Sequence in context: A364626 A210985 A160128 * A049423 A121825 A066237
KEYWORD
nonn,easy,eigen,nice
STATUS
approved