login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A354923 a(n) = 1 if n is either a power of prime or 2*prime, otherwise 0. 2
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1
LINKS
FORMULA
For n > 4, a(n) = A010055(n) + A353478(n).
MATHEMATICA
a[n_] := If[PrimePowerQ[n] || PrimeQ[n/2], 1, 0]; a[1] = 1; Array[a, 100] (* Amiram Eldar, Jun 13 2022 *)
PROG
(PARI) A354923(n) = ((1==n)|| isprimepower(n) || (!(n%2) && isprime(n/2)));
CROSSREFS
Characteristic function of A354925.
Cf. also A354924.
Sequence in context: A344884 A228710 A103447 * A354924 A353799 A123927
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 13 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 9 09:10 EDT 2024. Contains 372347 sequences. (Running on oeis4.)