OFFSET
1,1
COMMENTS
Sum of reciprocals = 0.2779972845973183835923785945..
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..20
MAPLE
select(isprime, [2*3^k-1$k=0..200]); # Muniru A Asiru, Nov 24 2018
MATHEMATICA
Select[2*3^Range[100]-1, PrimeQ]
PROG
(PARI) \\ Primes in the sequence of sums of alternating powers of 3
pseq3(n) = { j=a=1; p=1; sr=0; while(j<=n, a = a + 3^(p); if(isprime(a), print1(a", "); sr+=1.0/a; ); a = a+3^(p-1); if(isprime(a), print1(a", "); sr+=1.0/a; ); p+=1; j+=2; ); print(); print(sr); }
(Magma) [a: n in [1..200] | IsPrime(a) where a is 2*3^n-1 ]; // Vincenzo Librandi, Dec 09 2011
CROSSREFS
KEYWORD
nonn
AUTHOR
Cino Hilliard, Feb 15 2003
STATUS
approved