OFFSET
0,3
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..200
FORMULA
a(n) = Sum_{k=0..n} (k!/2) * (Stirling2(n, k) + Stirling2(ceiling(n/2), k)).
EXAMPLE
a(3) = 8 because there are the following arrays up to reversal:
111,
112, 121, 122, 212,
123, 132, 213.
PROG
(PARI) a(n) = {sum(k=0, n, k! * (stirling(n, k, 2) + stirling((n+1)\2, k, 2)) / 2)}
CROSSREFS
KEYWORD
nonn
AUTHOR
Andrew Howroyd, Sep 13 2019
STATUS
approved