OFFSET
1,2
LINKS
C. Deugau and F. Ruskey, Complete k-ary Trees and Generalized Meta-Fibonacci Sequences, J. Integer Seq., Vol. 12. [This is a later version than that in the GenMetaFib.html link]
C. Deugau and F. Ruskey, Complete k-ary Trees and Generalized Meta-Fibonacci Sequences
B. Jackson and F. Ruskey, Meta-Fibonacci Sequences, Binary Trees and Extremal Compact Codes, Electronic Journal of Combinatorics, 13 (2006), #R26, 13 pages.
FORMULA
G.f.: P(z) = z / (1-z) * (1 + sum(z^(m^2) * (3 + 1 / (1 - z^(m^2))), m=0..infinity))
MAPLE
p := proc(n)
if n=1 then return 1; end if;
for j from p(n-1)+1 to infinity do
if A120502(j) = n then return j; fi; od;
end proc;
CROSSREFS
KEYWORD
nonn
AUTHOR
Frank Ruskey and Chris Deugau (deugaucj(AT)uvic.ca), Jun 20 2006
STATUS
approved