login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A368625
Characteristic function of non-refactorable numbers (A159973).
1
0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1
OFFSET
1,1
LINKS
FORMULA
a(n) = ceiling(n/d(n))-floor(n/d(n)), where d(n) is the number of divisors of n (A000005).
a(n) = 1 - A336040(n).
a(n) = [A054008(n) > 0], where [ ] is the Iverson bracket. - Antti Karttunen, Jan 17 2025
MATHEMATICA
Table[(Ceiling[n/DivisorSigma[0, n]] - Floor[n/DivisorSigma[0, n]]), {n, 100}]
PROG
(PARI) A368625(n) = !!(n%numdiv(n)); \\ Antti Karttunen, Jan 17 2025
CROSSREFS
Cf. A000005, A033950 (refactorable numbers), A054008, A159973, A336040.
Sequence in context: A131736 A373254 A152228 * A086823 A228487 A295306
KEYWORD
nonn,easy,changed
AUTHOR
Wesley Ivan Hurt, Jan 01 2024
EXTENSIONS
Data section extended up to a(105) by Antti Karttunen, Jan 17 2025
STATUS
approved