[go: up one dir, main page]

login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A120501
Meta-Fibonacci sequence a(n) with parameters s=2.
2
1, 1, 1, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 5, 6, 6, 7, 8, 8, 8, 8, 8, 8, 9, 10, 10, 11, 12, 12, 12, 13, 14, 14, 15, 16, 16, 16, 16, 16, 16, 16, 17, 18, 18, 19, 20, 20, 20, 21, 22, 22, 23, 24, 24, 24, 24, 25, 26, 26, 27
OFFSET
1,4
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]
B. Jackson and F. Ruskey, Meta-Fibonacci Sequences, Binary Trees and Extremal Compact Codes, Electronic Journal of Combinatorics, 13 (2006), #R26, 13 pages.
FORMULA
If 1 <= n <= 3, a(n)=1. If n = 4, then a(n)=2. If n>4 then a(n)=a(n-2-a(n-1)) + a(n-3-a(n-2)).
G.f.: A(z) = z * (1 - z^2) / (1 - z) * sum(prod(z^2 * (1 - z^(2 * [i])) / (1 - z^[i]), i=1..n), n=0..infinity), where [i] = (2^i - 1).
MAPLE
a := proc(n)
option remember;
if n <= 3 then return 1 end if;
if n <= 4 then return n-2 end if;
return add(a(n - i - 1 - a(n - i)), i = 1 .. 2)
end proc
CROSSREFS
Sequence in context: A029551 A171482 A132015 * A113757 A291270 A291267
KEYWORD
nonn
AUTHOR
Frank Ruskey and Chris Deugau (deugaucj(AT)uvic.ca), Jun 20 2006
STATUS
approved