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!)
A329364 Numbers k such that k, k+2, k+4 are prime powers. 0
1, 3, 5, 7, 9, 23, 25, 27, 79, 239, 59049, 450283905890997359, 36472996377170786399 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Intersection of A120431 and A164572.
a(14) > 10^3000, if it exists. Note that one among k, k+2, k+4 is always divisible by 3, so it must be a power of 3. - Giovanni Resta, Nov 12 2019
LINKS
EXAMPLE
7 is a term since 7, 9, and 11 are all prime powers.
MATHEMATICA
pp[w_] := w == 1 || And @@ PrimePowerQ[w + {0, 2, 4}]; Reap[ Do[ If[pp[n - k], Sow[n-k]], {n, 3^Range[100]}, {k, {4, 2, 0}}]][[2, 1]] (* Giovanni Resta, Nov 12 2019 *)
PROG
(PARI) isok(k) = (k==1) || (isprimepower(k) && isprimepower(k+2) && isprimepower(k+4)); \\ Michel Marcus, Nov 12 2019
CROSSREFS
Sequence in context: A342729 A099995 A356177 * A100028 A053681 A135773
KEYWORD
nonn,more
AUTHOR
Lior Manor, Nov 12 2019
EXTENSIONS
a(12)-a(13) from Giovanni Resta, Nov 12 2019
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 April 23 10:29 EDT 2024. Contains 371905 sequences. (Running on oeis4.)