|
|
A120508
|
|
Generalized meta-Fibonacci sequence a(n) with parameters s=1 and k=4.
|
|
2
|
|
|
1, 1, 2, 3, 4, 4, 4, 5, 6, 7, 8, 8, 9, 10, 11, 12, 12, 13, 14, 15, 16, 16, 16, 16, 17, 18, 19, 20, 20, 21, 22, 23, 24, 24, 25, 26, 27, 28, 28, 29, 30, 31, 32, 32, 32, 33, 34, 35, 36, 36, 37, 38, 39, 40, 40, 41, 42, 43, 44, 44
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
LINKS
|
|
|
FORMULA
|
If 1 <= n <= 2, a(n)=1. If 3 <= n <= 5, then a(n)=n-1. If n>5 then a(n)=a(n-1-a(n-1)) + a(n-2-a(n-2)) + a(n-3-a(n-3)) + a(n-4-a(n-4)).
G.f.: A(z) = z * sum(prod(z * (1 - z^(4 * [i])) / (1 - z^[i]), i=1..n), n=0..infinity), where [i] = (4^i - 1) / 3.
|
|
MAPLE
|
a := proc(n)
option remember;
if n <= 2 then return 1 end if;
if n <= 5 then return n-1 end if;
return add(a(n - i - a(n - i)), i = 1 .. 4)
end proc
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
Frank Ruskey and Chris Deugau (deugaucj(AT)uvic.ca), Jun 20 2006
|
|
STATUS
|
approved
|
|
|
|