OFFSET
0,4
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..2078
FORMULA
a(n) = A073266(2n,n).
a(n) mod 2 = 1 <=> n in { A003714 }.
a(n) ~ c * d^n / sqrt(n), where d = 3.03557496500556374352187743150809307334142929675774277... and c = 0.257758082536856928607441503594486605201517917904563... - Vaclav Kotesovec, Mar 10 2020
EXAMPLE
a(3) = 4: 222, 114, 141, 411.
a(4) = 13: 2222, 1124, 1142, 1214, 1241, 1412, 1421, 2114, 2141, 2411, 4112, 4121, 4211.
MAPLE
b:= proc(n, t) option remember; `if`(n=0, `if`(t=0, 1, 0),
`if`(t=0, 0, add(b(n-2^j, t-1), j=0..ilog2(n))))
end:
a:= n-> b(2*n, n):
seq(a(n), n=0..30);
MATHEMATICA
b[n_, t_] := b[n, t] = If[n == 0, If[t == 0, 1, 0], If[t == 0, 0, Sum[b[n - 2^j, t - 1], {j, 0, Floor@Log2[n]}]]];
a[n_] := b[2*n, n];
Table[a[n], {n, 0, 30}] (* Jean-François Alcover, Mar 28 2022, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Mar 06 2020
STATUS
approved