Starting at n, a(n) is the number of times we move away from zero from a negative position 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.

A324686

Starting at n, a(n) is the number of times we move away from zero from a negative position 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.

Terms

    a(0) =0a(1) =0a(2) =1a(3) =0a(4) =8a(5) =8a(6) =0a(7) =409a(8) =2a(9) =2a(10) =0a(11) =2a(12) =31a(13) =31a(14) =2a(15) =0a(16) =15a(17) =201444a(18) =3a(19) =3a(20) =25388a(21) =0a(22) =10a(23) =5a(24) =5a(25) =347717a(26) =3a(27) =3a(28) =0a(29) =75

External references