Starting at n, a(n) is the length of the smallest interval containing all points visited 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.

A324673

Starting at n, a(n) is the length of the smallest interval containing all points visited 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) =1a(2) =6a(3) =3a(4) =68a(5) =72a(6) =6a(7) =13205a(8) =31a(9) =36a(10) =10a(11) =104a(12) =836a(13) =836a(14) =43a(15) =15a(16) =570a(17) =9518374a(18) =57a(19) =60a(20) =1548481a(21) =21a(22) =203a(23) =80a(24) =87a(25) =15466141a(26) =71a(27) =71a(28) =28a(29) =2436

External references