login
A378914
Smallest positive m such that sigma(m) does not divide n, where sigma is the sum-of-divisors function (A000203).
1
2, 2, 3, 2, 2, 3, 2, 2, 3, 2, 2, 4, 2, 2, 3, 2, 2, 3, 2, 2, 3, 2, 2, 4, 2, 2, 3, 2, 2, 3, 2, 2, 3, 2, 2, 4, 2, 2, 3, 2, 2, 3, 2, 2, 3, 2, 2, 4, 2, 2, 3, 2, 2, 3, 2, 2, 3, 2, 2, 4, 2, 2, 3, 2, 2, 3, 2, 2, 3, 2, 2, 4, 2, 2, 3, 2, 2, 3, 2, 2, 3, 2, 2, 7, 2, 2, 3, 2, 2, 3
OFFSET
1,1
MATHEMATICA
A378914[n_] := Module[{m = 1}, While[Divisible[n, DivisorSigma[1, ++m]]]; m];
Array[A378914, 100]
PROG
(PARI) a(n) = my(m=1); while (!(n % sigma(m)), m++); m; \\ Michel Marcus, Dec 11 2024
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Paolo Xausa, Dec 11 2024
STATUS
approved