OFFSET
1,1
COMMENTS
For p>3, all terms are divisible by 42.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..320
FORMULA
MATHEMATICA
Table[(3^Prime[n] - 2^Prime[n] - 1), {n, 1, 30}]
3^#-2^#-1&/@Prime[Range[20]] (* Harvey P. Dale, Aug 05 2016 *)
PROG
(Magma) [3^p-2^p-1: p in PrimesUpTo(60)]
(PARI) a(n) = my(p = prime(n)); 3^p-2^p-1; \\ Michel Marcus, May 05 2014
(Sage) [3^p-2^p-1 for p in primes(60)] # Bruno Berselli, May 12 2014
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
Vincenzo Librandi, May 04 2014
STATUS
approved