A125168 a(n) = gcd(n, A032741(n)) where A032741(n) is the number of proper divisors of n.
1, 1, 1, 2, 1, 3, 1, 1, 1, 1, 1, 1, 1, 1, 3, 4, 1, 1, 1, 5, 3, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 3, 1, 1, 4, 1, 1, 3, 1, 1, 7, 1, 1, 5, 1, 1, 3, 1, 5, 3, 1, 1, 1, 1, 7, 3, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 3, 7, 1, 1, 1, 1, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 3, 1, 1, 1, 1, 1, 1, 4, 1, 1, 1, 1, 7
Offset: 1
Examples
a(6)=3 because 6 has 3 proper divisors {1,2,3} and gcd(6,3) is 3.
Links
- Antti Karttunen, Table of n, a(n) for n = 1..65537
Programs
-
Mathematica
f[n_] := GCD[n, DivisorSigma[0, n] - 1]; Array[f, 105] (* Robert G. Wilson v *)
-
PARI
A125168(n) = gcd(n,numdiv(n)-1); \\ Antti Karttunen, Sep 25 2018
Extensions
More terms from Robert G. Wilson v, Jan 23 2007
Comments