Starting at n, a(n) is the total number of moves made to the right 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.

A324660

Starting at n, a(n) is the total number of moves made to the right 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) =0a(2) =1a(3) =0a(4) =10a(5) =11a(6) =0a(7) =861a(8) =4a(9) =5a(10) =0a(11) =11a(12) =59a(13) =60a(14) =5a(15) =0a(16) =57a(17) =390898a(18) =7a(19) =8a(20) =66444a(21) =0a(22) =22a(23) =11a(24) =12a(25) =610392a(26) =8a(27) =9a(28) =0a(29) =211

External references