|
|
A006893
|
|
Smallest number whose representation requires n triangular numbers with greedy algorithm; also number of 1-2 rooted trees of height n.
(Formerly M1533)
|
|
10
|
|
|
|
OFFSET
|
1,2
|
|
REFERENCES
|
M. Abert and P. Diaconis, paper in preparation, 2002.
D. Parisse, The Tower of Hanoi and the Stern-Brocot-Array, Thesis, Munich, 1997.
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
|
|
LINKS
|
|
|
FORMULA
|
a(n+1) = a(n)*(a(n)+3)/2, a(1)=1.
a(0) = 1, a(n) = sum(i=0..n-1, t(a(i)), where t(n)=n*(n+1)/2. - Jon Perry, Feb 14 2004
a(n) ~ 2 * c^(2^n), where c = 1.16007248510653786919452141287945841802404855231102953089... . - Vaclav Kotesovec, Dec 17 2014
|
|
MAPLE
|
|
|
MATHEMATICA
|
RecurrenceTable[{a[1] == 1, a[n] == a[n-1]*(a[n-1] + 3)/2}, a[n], {n, 10}] (* Vaclav Kotesovec, Dec 17 2014 *)
|
|
PROG
|
(PARI) a=vector(20); a[1]=1; for(n=2, #a, a[n]=a[n-1]*(a[n-1]+3)/2); a \\ Altug Alkan, Apr 04 2018
|
|
CROSSREFS
|
Where records occur in A057945, n >= 1.
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|