[go: up one dir, main page]

login
A354037
a(n) = 1 if sigma(n)-n is a multiple of 4, otherwise 0.
3
1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 1, 0
OFFSET
1
FORMULA
a(n) = 1 if A010873(A001065(n)) == 0, otherwise 0.
a(n) = [A010873(n) == A105824(n)], where [ ] is the Iverson bracket.
MATHEMATICA
a[n_] := If[Divisible[DivisorSigma[1, n] - n, 4], 1, 0]; Array[a, 100] (* Amiram Eldar, May 16 2022 *)
PROG
(PARI) A354037(n) = (0==((sigma(n)-n)%4));
CROSSREFS
Characteristic function of A354038.
Cf. also A354032, A354097.
Sequence in context: A369975 A369001 A361024 * A185118 A240332 A156297
KEYWORD
nonn
AUTHOR
Antti Karttunen, May 16 2022
STATUS
approved