login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons 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. 6
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

Zak Seidov, Table of n, a(n) for n = 1..1000

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

Cf. A000244, A013598, A049711.

Sequence in context: A322728 A179686 A286479 * A218217 A218279 A183193

Adjacent sequences:  A013601 A013602 A013603 * A013605 A013606 A013607

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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 11 01:30 EDT 2020. Contains 335600 sequences. (Running on oeis4.)