editing
approved
editing
approved
reviewed
approved
proposed
reviewed
editing
proposed
b[n_, i_] := b[n, i] = If[n == 0, If[i == 1, 1, 0], If[n<0 || i<1, 0, Expand[ x*Sum[b[n-i, i+j], {j, -1, 1}]]]]; T[n_] := Function[{p}, Table[Coefficient[p, x, i], {i, 0, Exponent[p, x]}]][b[n, 1]]; Table[T[n], {n, 0, 20}] // Flatten (* Jean-François Alcover, Feb 18 2015, after Alois P. Heinz *)
approved
editing
editing
approved
b:= proc(n, i) option remember; `if`(n=0, `if`(i=1, 1, 0),
`if`(n<0 or i<1, 0, expand(x*add(b(n-i, i+j), j=-1..1)) ))
end:
T:= n-> (p-> seq(coeff(p, x, i), i=0..degree(p)))(b(n, 1)):
seq(T(n), n=0..20); # Alois P. Heinz, Jul 24 2013
Alois P. Heinz, <a href="/A186084/b186084.txt">Rows n = 0..140, flattened</a>
(continued fraction). [Paul D. Hanna]
approved
editing
editing
approved