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!)
A269721 Integers k such that k, k+2, k+4 and k+6 are prime powers (A000961). 0
1, 3, 5, 7, 23, 25 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
At least one of a(n), a(n)+2, a(n)+4 and a(n)+6 must be a power of 3. See comments in A264734.
LINKS
EXAMPLE
5 is a term because 5, 7, 11 are prime numbers and 9 = 3^2.
23 is a term because 23 and 29 are prime numbers and 25 = 5^2, 27 = 3^3.
25 is a term because 25 = 5^2, 27 = 3^3, 29 and 31 are prime numbers.
MATHEMATICA
Select[Range[0, 10^5], AllTrue[Range[0, 6, 2] + #, Or[# == 1, PrimePowerQ@ #] &] &] (* Michael De Vlieger, Mar 04 2016, Version 10 *)
PROG
(PARI) lista(nn) = for(n=1, nn, if(n==1 || (isprimepower(n) && isprimepower(n+2) && isprimepower(n+4) && isprimepower(n+6)), print1(n, ", ")));
CROSSREFS
Sequence in context: A239282 A171015 A244571 * A084424 A137978 A155780
KEYWORD
nonn,more
AUTHOR
Altug Alkan, Mar 04 2016
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 25 16:42 EDT 2024. Contains 371989 sequences. (Running on oeis4.)