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!)
A013604 a(n) = 3^n - prevprime(3^n), where prevprime(x) is the largest prime < x. 7
1, 2, 4, 2, 2, 2, 8, 8, 2, 20, 16, 58, 22, 8, 16, 98, 10, 10, 14, 8, 4, 2, 20, 28, 20, 20, 26, 22, 14, 26, 4, 34, 52, 56, 28, 10, 2, 10, 58, 38, 2, 122, 74, 34, 22, 22, 46, 44, 50, 46, 16, 124, 4, 10, 106, 10, 26, 220, 38, 160, 74, 8, 28, 104, 104, 38, 298, 94, 16 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(n) = A049711(3^n) = A049711(A000244(n)). - Michel Marcus, Sep 16 2016
MAPLE
seq(3^i-prevprime(3^i), i=1..100);
MATHEMATICA
Table[3^i - NextPrime[3^i, - 1], {i, 70}] (* Vincenzo Librandi, Sep 16 2016 *)
PROG
(Magma) [3^n-PreviousPrime(3^n): n in [1..70]]; // Vincenzo Librandi, Sep 16 2016
(PARI) a(n) = 3^n - precprime(3^n-1); \\ Michel Marcus, Sep 16 2016
CROSSREFS
Sequence in context: A322728 A179686 A286479 * A218217 A218279 A183193
KEYWORD
nonn
AUTHOR
James Kilfiger (mapdn(AT)csv.warwick.ac.uk)
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 19 18:05 EDT 2024. Contains 371798 sequences. (Running on oeis4.)