Starting at n, a(n) is the total number of moves made to the left according to the following rules. On the k-th step (k=1,2,3,...) move a distance of k in the direction of zero. If the number landed on has been landed on before, move a distance of k away from zero instead.

A324661

Starting at n, a(n) is the total number of moves made to the left according to the following rules. On the k-th step (k=1,2,3,...) move a distance of k in the direction of zero. If the number landed on has been landed on before, move a distance of k away from zero instead.

Terms

    a(0) =0a(1) =1a(2) =3a(3) =2a(4) =14a(5) =15a(6) =3a(7) =864a(8) =8a(9) =9a(10) =4a(11) =15a(12) =64a(13) =65a(14) =10a(15) =5a(16) =62a(17) =390904a(18) =13a(19) =14a(20) =66452a(21) =6a(22) =29a(23) =18a(24) =19a(25) =610401a(26) =15a(27) =16a(28) =7a(29) =218

External references