OFFSET
1,2
EXAMPLE
8 = 1 + 7 is the sum of the divisors of 7. 1,2,3,4,5,6,8,9,10,11,12,13,15,16,... are the positive integers
which are coprime to 7. Of these integers, 9 is the 8th. So a(7) = 9.
MATHEMATICA
f[n_] := Block[{c = DivisorSigma[1, n], k = 0}, While[c > 0, k++; While[GCD[n, k] > 1, k++ ]; c-- ]; k ]; Table[f[n], {n, 63}] (* Ray Chandler, Aug 29 2006 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Aug 26 2006
EXTENSIONS
Extended by Ray Chandler, Aug 29 2006
STATUS
approved