OFFSET
0,6
COMMENTS
The boundary size is the number of parts having less than two neighbors.
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..1000
MAPLE
b:= proc(n, i, t) option remember; `if`(n=0, `if`(t>1, x, 1),
expand(`if`(i<1, 0, `if`(t>1, x, 1)*b(n, i-1, iquo(t, 2))+
`if`(i>n, 0, `if`(t=2, x, 1)*b(n-i, i-1, iquo(t, 2)+2)))))
end:
a:= n-> (p->coeff(p, x, degree(p)))(b(n$2, 0)):
seq(a(n), n=0..100);
MATHEMATICA
b[n_, i_, t_] := b[n, i, t] = If[n==0, If[t>1, x, 1], Expand[If[i<1, 0, If[t>1, x, 1]*b[n, i-1, Quotient[t, 2]] + If[i>n, 0, If[t==2, x, 1] * b[n-i, i-1, Quotient[t, 2]+2]]]]]; a[n_] := Function [p, Coefficient[p, x, Exponent[p, x]]][b[n, n, 0]]; Table[a[n], {n, 0, 100}] (* Jean-François Alcover, Feb 15 2017, translated from Maple *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Jul 16 2013
STATUS
approved