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”).

A360780
Least refactorable number > n.
0
1, 2, 8, 8, 8, 8, 8, 8, 9, 12, 12, 12, 18, 18, 18, 18, 18, 18, 24, 24, 24, 24, 24, 24, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 36, 40, 40, 40, 40, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 56, 60, 60, 60, 60, 72, 72, 72, 72, 72, 72, 72, 72, 72
OFFSET
0,2
COMMENTS
"next refactorable number" function.
EXAMPLE
a(0) = 1 because the least refactorable number > 0 is 1.
a(1) = 2 because the least refactorable number > 1 is 2.
a(2) = 8 because the least refactorable number > 2 is 8.
MATHEMATICA
a[n_] := Module[{m = n + 1}, While[! Divisible[m, DivisorSigma[0, m]], m++]; m]; a[0] = 1; Array[a, 100, 0] (* Amiram Eldar, Feb 20 2023 *)
PROG
(PARI) a(n) = my(k=n+1); while (k % numdiv(k), k++); k; \\ Michel Marcus, Feb 20 2023
CROSSREFS
Cf. A033950.
Sequence in context: A256849 A138300 A137575 * A183393 A284781 A289841
KEYWORD
nonn
AUTHOR
Ctibor O. Zizka, Feb 20 2023
STATUS
approved