login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A378914
Smallest positive m such that sigma(m) does not divide n, where sigma is the sum-of-divisors function (A000203).
0
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,new
AUTHOR
Paolo Xausa, Dec 11 2024
STATUS
approved