OFFSET
1,1
LINKS
Vladislav Shubin, Table of n, a(n) for n = 1..1000
MATHEMATICA
DedekindPsi[n_] := n * Product[(1 + 1/i), {i, FactorInteger[n][[All, 1]]}];
bound = 86
For[s = 1, s <= bound, s++,
If[s == 1, Print["m = ", 1]; s = s + 1; ];
Q = Prime[s];
InitialArray = FactorInteger[If[Q != 3, 3*(Q + 1), 2]];
For[i = 1, i <= Length[InitialArray] - 1, i++,
CurrentArray = FactorInteger[InitialArray[[-i, 1]] + 1] ~Join~ InitialArray;
InitialArray = FactorInteger[Product[CurrentArray[[k, 1]] ^ CurrentArray[[k, 2]], {k, 1, Length[CurrentArray]}]];
];
InitialArray = InitialArray~Join~{{Q, 0}};
m = Max[InitialArray[[All, 2]]];
If[Q == 3, m = m + 1];
Print["m = ", m]
];
CROSSREFS
KEYWORD
nonn
AUTHOR
Vladislav Shubin, Jun 16 2022
STATUS
approved