%I #10 Jul 12 2013 14:19:49
%S 0,0,1,2,2,3,3,3,4,5,5,5,5,6,7,8,8,9,9,9,9,9,10,11,12,13,13,14,14,15,
%T 15,15,16,17,17,17,17,17,17,18,19,20,21,22,22,23,23,24,24,25,25,25,26,
%U 27,27,27,28,29,29,29,29,30,31,32,32,33,33,33,33,33
%N a(n) = n - 1 - a(a(n-1)) - a(a(a(n-2))) - a(a(a(a(n-3)))) - a(a(a(a(a(n-4))))) - ... with a(0) = 0.
%t a[n_] := a[n] = Which[n ==0, 0, True, n - 1 - Sum[Nest[a, n - i, i + 1], {i, 1, n}]]; Table[a[n], {n, 0, 100}]
%Y Cf. A227145.
%K nonn
%O 0,4
%A _José María Grau Ribas_, Jul 09 2013