OFFSET
1,1
COMMENTS
By "Max(r_j)" is meant the following: if d|m, d=p^e*q^f, m=p^x*q^y*r^z then Max(e)=x, Max(f)=y.
MAPLE
SENSigma := proc(n) local ifs, i, a, r, p ; ifs := ifactors(n)[2] ; a := 1 ; for i from 1 to nops(ifs) do r := op(2, op(i, ifs)) ; p := op(1, op(i, ifs)) ; a := a*(p*(1-p^r)/(1-p)-(-1)^r) ; od ; RETURN(a) ; end: A125141 := proc(nmax) local a ; a := [2] ; while nops(a)< nmax do a := [op(a), SENSigma(op(-1, a))] ; od ; RETURN(a) ; end: A125141(40) ; # R. J. Mathar, May 18 2007
MATHEMATICA
SENSigma[n_] := Module[{Ifs, i, a, r, p }, Ifs = FactorInteger[n]; a = 1; For[i = 1, i <= Length[Ifs], i++, r = Ifs[[i, 2]]; p = Ifs[[i, 1]]; a = a(p(1 - p^r)/(1 - p) - (-1)^r)]; Return[a]];
A125141[nmax_] := Module[{a}, a = {2}; While[Length[a] < nmax, a = Append[a, SENSigma[a[[-1]]]]]; Return[a]];
CROSSREFS
KEYWORD
nonn
AUTHOR
Yasutoshi Kohmoto, Jan 12 2007
EXTENSIONS
Edited by N. J. A. Sloane at the suggestion of Andrew S. Plewe, May 14 2007
More terms from R. J. Mathar, May 18 2007
STATUS
approved