OFFSET
1,2
REFERENCES
W. Feller, An Introduction to Probability Theory and Its Applications, Vol. 1, 2nd ed. New York: Wiley, p. 300, 1968.
LINKS
T. D. Noe, Rows n=1..100 of triangle, flattened
Eric Weisstein's World of Mathematics, Coin Tossing.
Eric Weisstein's World of Mathematics, Run.
EXAMPLE
Triangle begins:
1;
3, 1;
7, 3, 1;
15, 8, 3, 1;
31, 19, 8, 3, 1
...
MATHEMATICA
Clear[fib]; fib[n_, n_] = 1; fib[n_, k_] /; k > n = 0; fib[n_, k_] := fib[n, k] = If[k == 1, 1, Sum[fib[m, k], {m, n - k , n - 1}]]; Table[ 2^n - fib[n + k + 1 , k], {n, 1, 12}, {k, 1, n}] // Flatten (* Jean-François Alcover, Jan 15 2013 *)
CROSSREFS
KEYWORD
AUTHOR
STATUS
approved