login

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

A361022
a(n) = 1 if d(n) divides d(n+1), otherwise 0, where d(n) is number of positive divisors of n.
1
1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1
OFFSET
1
MATHEMATICA
a[n_] := If[Divisible @@ DivisorSigma[0, n + {1, 0}], 1, 0]; Array[a, 100] (* Amiram Eldar, Mar 02 2023 *)
PROG
(PARI) A361022(n) = !(numdiv(1+n)%numdiv(n));
CROSSREFS
Characteristic function of A057922.
Cf. A000005.
Sequence in context: A267520 A114915 A360120 * A341754 A074711 A004585
KEYWORD
nonn
AUTHOR
Antti Karttunen, Mar 02 2023
STATUS
approved