[go: up one dir, main page]

login
A355938
a(n) = 1 if sigma(n^2) is a noncomposite, otherwise 0.
2
1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1
OFFSET
1
FORMULA
a(n) = A080339(A000203(n^2)) = A080339(A065764(n)).
For all n >= 1, a(n) <= A010055(n).
MATHEMATICA
a[n_] := If[!CompositeQ[DivisorSigma[1, n^2]], 1, 0]; Array[a, 100] (* Amiram Eldar, Jul 21 2022 *)
PROG
(PARI) A355938(n) = ((1==n)||isprime(sigma(n^2)));
CROSSREFS
Characteristic function of {1} UNION A055638.
Cf. also A355937.
Sequence in context: A059318 A071029 A071030 * A268240 A104037 A014044
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jul 21 2022
STATUS
approved