login
a(n) = z(n^2,n) with z(x,y) = if x>y then z(x-y,y+1) else y.
2

%I #4 Mar 30 2012 18:51:00

%S 1,3,5,7,8,10,12,14,15,17,19,20,22,24,26,27,29,31,33,34,36,38,40,41,

%T 43,45,46,48,50,52,53,55,57,59,60,62,64,66,67,69,71,72,74,76,78,79,81,

%U 83,85,86,88,90,92,93,95,97,98,100,102,104,105,107,109,111,112,114,116,117

%N a(n) = z(n^2,n) with z(x,y) = if x>y then z(x-y,y+1) else y.

%C 0 <= a(n) - A022838(n) <= 1.

%H R. Zumkeller, <a href="/A144077/b144077.txt">Table of n, a(n) for n = 1..10000</a>

%e a(5)=z(25,5)=z(20,6)=z(14,7)=z(7,8)=8;

%e a(6)=z(36,6)=z(30,7)=z(23,8)=z(15,9)=z(6,10)=10.

%K nonn

%O 1,2

%A _Reinhard Zumkeller_, Sep 09 2008