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!)
A275575 Numbers k such that (3^k + 1)/(3 - (-1)^k) is a prime. 1
2, 3, 4, 5, 7, 13, 16, 23, 32, 43, 64, 281, 359, 487, 577, 1579, 1663, 1741, 3191, 9209, 11257, 12743, 13093, 17027, 26633, 104243, 134227, 152287, 700897, 1205459 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MAPLE
A275575:=n->`if`(isprime((3^n + 1)/(3 - (-1)^n)), n, NULL): seq(A275575(n), n=1..2*10^3); # Wesley Ivan Hurt, Dec 26 2016
MATHEMATICA
Select[Range[0, 10^3], PrimeQ[(3^# + 1)/(3 - (-1)^#)] &]
PROG
(PARI) isok(n) = isprime( (3^n + 1)/(3 - (-1)^n)); \\ Michel Marcus, Dec 26 2016
CROSSREFS
Sequence in context: A100676 A193769 A226790 * A066661 A268199 A178767
KEYWORD
nonn,more
AUTHOR
Thomas Ordowski, Dec 25 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 01:06 EDT 2024. Contains 371964 sequences. (Running on oeis4.)