a(1)=1. a(n) = smallest positive integer not occurring earlier in the sequence such that |d(a(n))-d(a(n-1))| = 1, where d(n) is the number of positive divisors of n.

A111390

a(1)=1. a(n) = smallest positive integer not occurring earlier in the sequence such that |d(a(n))-d(a(n-1))| = 1, where d(n) is the number of positive divisors of n.

Terms

    a(0) =1a(1) =2a(2) =4a(3) =3a(4) =9a(5) =5a(6) =25a(7) =6a(8) =16a(9) =8a(10) =49a(11) =7a(12) =121a(13) =10a(14) =81a(15) =12a(16) =64a(17) =18a(18) =625a(19) =14a(20) =169a(21) =11a(22) =289a(23) =13a(24) =361a(25) =15a(26) =529a(27) =17a(28) =841a(29) =19

External references