OFFSET
0,5
COMMENTS
Number of nonnegative integer arrays of length n with new values introduced in order 0 upwards and every value appearing only in runs of at least 2.
Column 2 of A211700.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..1132
A. O. Munagi, Set partitions with isolated singletons, Am. Math. Monthly 125 (2018), 447-452.
FORMULA
G.f.: 1+x^2/W(0), where W(k) = 1 - x - x^2/(1 - x^2*(k+1)/W(k+1) ); (continued fraction). - Sergei N. Gladkovskii, Nov 10 2014
EXAMPLE
All solutions for n = 7:
0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0
0 0 1 0 1 0 0 0 1 1 1
1 1 1 1 1 0 0 0 1 1 1
1 1 2 1 1 0 1 0 0 1 1
2 1 2 0 2 0 1 1 0 1 0
2 1 2 0 2 0 1 1 0 1 0
MAPLE
f:=proc(n) local j;
add(combinat:-bell(j-1)*binomial(n-j-1, j-1), j=0..floor(n/2));
end;
[seq(f(n), n=0..100)]; # N. J. A. Sloane, May 19 2018
MATHEMATICA
a[n_] := If[n == 0, 1, Sum[BellB[j-1]*Binomial[n-j-1, j-1], {j, 1, Floor[n/2]}]];
Table[a[n], {n, 0, 100}] (* Jean-François Alcover, Jun 17 2024, after Maple code *)
CROSSREFS
KEYWORD
nonn
AUTHOR
R. H. Hardin, Apr 19 2012
EXTENSIONS
Edited by Andrey Zabolotskiy, Feb 07 2025
STATUS
approved