A331733 a(n) = sigma(A225546(n)), where sigma is the sum of divisors.
1, 3, 7, 4, 31, 15, 511, 12, 13, 63, 131071, 28, 8589934591, 1023, 127, 6, 36893488147419103231, 39, 680564733841876926926749214863536422911, 124, 2047, 262143, 231584178474632390847141970017375815706539969331281128078915168015826259279871, 60, 121, 17179869183, 91, 2044
Offset: 1
Keywords
Links
Crossrefs
Programs
-
Mathematica
Array[If[# == 1, 1, DivisorSigma[1, #] &@ Apply[Times, Flatten@ Map[Function[{p, e}, Map[Prime[Log2@ # + 1]^(2^(PrimePi@ p - 1)) &, DeleteCases[NumberExpand[e, 2], 0]]] @@ # &, FactorInteger[#]]]] &, 28] (* Michael De Vlieger, Feb 08 2020 *)
-
PARI
A048675(n) = { my(f = factor(n)); sum(k=1, #f~, f[k, 2]*2^primepi(f[k, 1]))/2; }; A331733(n) = if(1==n,1,my(f=factor(n),u=#binary(vecmax(f[, 2])),prods=vector(u,x,1),m=1,e); for(i=1,u,for(k=1,#f~, if(bitand(f[k,2],m),prods[i] *= f[k,1])); m<<=1); prod(i=1,u,(prime(i)^(1+A048675(prods[i]))-1)/(prime(i)-1)));