a(n) is the ((phi(n) mod d(n)) + 1)-th positive divisor of n, where phi(n) is number of positive integers which are <= n and are coprime to n and d(n) is the number of positive divisors of n.

A124331

a(n) is the ((phi(n) mod d(n)) + 1)-th positive divisor of n, where phi(n) is number of positive integers which are <= n and are coprime to n and d(n) is the number of positive divisors of n.

Terms

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

External references