login

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

A373993
a(n) = 1 if the number of divisors of n divides n-1, otherwise 0.
1
1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1
OFFSET
1
MATHEMATICA
A373993[n_] := Boole[Divisible[n - 1, DivisorSigma[0, n]]];
Array[A373993, 100] (* Paolo Xausa, Jun 30 2024 *)
PROG
(PARI) A373993(n) = !((n-1)%numdiv(n));
CROSSREFS
Characteristic function of A354711.
Cf. A000005.
Sequence in context: A120530 A078616 A267800 * A322980 A267053 A359591
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 30 2024
STATUS
approved