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!)
A144231 Prime numbers of the form 3^k +- 2 for k >= 1. 10
5, 7, 11, 29, 79, 83, 241, 727, 6563, 19681, 59051, 4782971, 14348909, 31381059607, 282429536483, 2541865828331, 150094635296999123, 450283905890997361, 36472996377170786401, 1144561273430837494885949696429 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
a(49) = 3^2224 - 2 and a(50) = 3^2521 - 2 are too big for a b-file. - Robert Israel, Nov 22 2015
LINKS
MAPLE
A:= NULL:
for k from 1 to 1000 do
t:= 3^k;
if isprime(t-2) then A:= A, t-2 fi;
if isprime(t+2) then A:= A, t+2 fi;
od:
A; # Robert Israel, Nov 22 2015
MATHEMATICA
Reap[For[k = 1, k <= 100, k++, p = 3^k-2; If[PrimeQ[p], Sow[p]]; If[PrimeQ[p+4], Sow[p+4]]]][[2, 1]] (* Jean-François Alcover, Dec 18 2013 *)
CROSSREFS
Sequence in context: A330775 A340750 A031134 * A050299 A092029 A259564
KEYWORD
nonn
AUTHOR
Reikku Kulon, Sep 15 2008
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 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)