Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.
%I #13 Dec 05 2024 10:44:22
%S 1,1,1,1,2,3,3,3,3,3,4,5,6,6,7,8,9,9,9,9,9,9,10,11,12,12,13,14,15,15,
%T 16,17,18,18,18,19,20,21,21,22,23,24,24,25,26,27,27,27,27,27,27,27,28,
%U 29,30,30,31,32,33,33
%N Generalized meta-Fibonacci sequence a(n) with parameters s=3 and k=3.
%H Robert Israel, <a href="/A120506/b120506.txt">Table of n, a(n) for n = 1..10000</a>
%H C. Deugau and F. Ruskey, <a href="http://www.cs.uwaterloo.ca/journals/JIS/VOL12/Ruskey/ruskey6.pdf">Complete k-ary Trees and Generalized Meta-Fibonacci Sequences</a>, J. Integer Seq., Vol. 12. [This is a later version than that in the GenMetaFib.html link]
%H C. Deugau and F. Ruskey, <a href="http://www.cs.uvic.ca/~ruskey/Publications/MetaFib/GenMetaFib.html">Complete k-ary Trees and Generalized Meta-Fibonacci Sequences</a>
%F If 1 <= n <= 4, a(n)=1. If 5 <= n <= 6, then a(n)=n-3. If n>6 then a(n)=a(n-3-a(n-1)) + a(n-4-a(n-2)) + a(n-5-a(n-3)).
%F G.f.: A(z) = z * (1 - z^3) / (1 - z) * sum(prod(z^3 * (1 - z^(3 * [i])) / (1 - z^[i]), i=1..n), n=0..infinity), where [i] = (3^i - 1) / 2.
%p a := proc(n)
%p option remember;
%p if n <= 4 then return 1 end if;
%p if n <= 6 then return n-3 end if;
%p return add(a(n - i - 2 - a(n - i)), i = 1 .. 3)
%p end proc
%Y Cf. A120517, A120528.
%K nonn
%O 1,5
%A _Frank Ruskey_ and Chris Deugau (deugaucj(AT)uvic.ca), Jun 20 2006