login
Finite recursive sequence with a(n) = a(a(n-2)) + a(n-a(n-1)).
3

%I #4 Jun 17 2013 03:07:12

%S 1,1,2,2,4,3,6,3,9,3,6,5,9,7,6,6,12,9,12,6,15,12,12,14,15,12,12,15,16,

%T 13,21,13,18,13,24,12,30,12,33,15,25,18,27,24,30,21,33,18,34,18,42,15,

%U 39,12,42,16,52,15,63

%N Finite recursive sequence with a(n) = a(a(n-2)) + a(n-a(n-1)).

%F a(n) = a(a(n-2)) + a(n-a(n-1)), a(0) = a(1) = 1.

%t a[n_] := a[n] = a[a[n - 2]] + a[n - a[n - 1]] a[0] = a[1] = 1; Table[a[n], {n, 0, 58}]

%K easy,fini,full,nonn

%O 0,3

%A Josh Locker (joshlocker(AT)gmail.com), Jan 28 2006