login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A353799
a(n) = 1 if the number of divisors of n is not larger than 4, otherwise 0.
2
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 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, 1, 1, 0, 1, 1, 1, 0, 1
OFFSET
1
FORMULA
a(n) = [A000005(n) <= 4], where [ ] is the Iverson bracket.
a(n) = [A101296(n) <= 5].
For n > 1, a(n) = A302048(n) + A353788(n).
MATHEMATICA
a[n_] := If[DivisorSigma[0, n] <= 4, 1, 0]; Array[a, 120] (* Amiram Eldar, May 13 2022 *)
PROG
(PARI) A353799(n) = (4>=numdiv(n));
CROSSREFS
Characteristic function of A007964.
Sequence in context: A103447 A354923 A354924 * A123927 A089829 A294935
KEYWORD
nonn
AUTHOR
Antti Karttunen, May 13 2022
STATUS
approved