login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A360778 Smallest number k such that n + k is a refactorable number. 1
1, 0, 0, 5, 4, 3, 2, 1, 0, 0, 2, 1, 0, 5, 4, 3, 2, 1, 0, 5, 4, 3, 2, 1, 0, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 3, 2, 1, 0, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 3, 2, 1, 0, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 7, 6, 5, 4, 3, 2, 1, 0, 3, 2, 1, 0, 3, 2, 1, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
COMMENTS
a(n) = 0 for n from A033950.
LINKS
EXAMPLE
a(0) = 1 because 0 + 1 = 1, the next higher refactorable number.
a(1) = 0 because 1 is refactorable number.
a(2) = 0 because 2 is refactorable number.
a(3) = 5 because 3 + 5 = 8, the next higher refactorable number.
and so on.
MATHEMATICA
a[n_] := Module[{m = n}, While[! Divisible[m, DivisorSigma[0, m]], m++]; m - n]; a[0] = 1; Array[a, 100, 0] (* Amiram Eldar, Feb 20 2023 *)
PROG
(PARI) a(n) = if (n==0, 1, my(k=0); while ((n+k) % numdiv(n+k), k++); k); \\ Michel Marcus, Feb 20 2023
CROSSREFS
Cf. A033950.
Sequence in context: A199432 A073743 A021652 * A370427 A022961 A023447
KEYWORD
nonn
AUTHOR
Ctibor O. Zizka, Feb 20 2023
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 1 22:05 EDT 2024. Contains 375597 sequences. (Running on oeis4.)