Let a(n) = d[m(n),i] be the i-th divisor of the integer m(n) and the index j such that d[m(n),i] = d[m(n+1),j], m(n+1) is the first integer > m(n). The sequence a(n), starting with m(1) = 1, i = 1 is given by the conditions: a(1) = 1 and a(n+1) is the first predecessor of a(n) if n even, or the first successor of a(n) if n odd.

A162180

Let a(n) = d[m(n),i] be the i-th divisor of the integer m(n) and the index j such that d[m(n),i] = d[m(n+1),j], m(n+1) is the first integer > m(n). The sequence a(n), starting with m(1) = 1, i = 1 is given by the conditions: a(1) = 1 and a(n+1) is the first predecessor of a(n) if n even, or the first successor of a(n) if n odd.

Terms

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

External references