OFFSET
1,4
COMMENTS
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
FORMULA
For all n >= 1, a(n) = a(A057521(n)). [See comments]
PROG
(PARI)
up_to = 65537;
rgs_transform(invec) = { my(om = Map(), outvec = vector(length(invec)), u=1); for(i=1, length(invec), if(mapisdefined(om, invec[i]), my(pp = mapget(om, invec[i])); outvec[i] = outvec[pp] , mapput(om, invec[i], i); outvec[i] = u; u++ )); outvec; };
A001615(n) = if(1==n, n, my(f=factor(n)); prod(i=1, #f~, f[i, 1]^f[i, 2] + f[i, 1]^(f[i, 2]-1))); \\ After code in A001615
Aux349574(n) = { my(s=sigma(n), u=A001615(n), g=gcd(u, s)); [s/g, u/g]; };
v349574 = rgs_transform(vector(up_to, n, Aux349574(n)));
A349574(n) = v349574[n];
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Nov 22 2021
STATUS
approved