login
A135171
3^p - 2^p, where p = prime(n).
3
5, 19, 211, 2059, 175099, 1586131, 129009091, 1161737179, 94134790219, 68629840493971, 617671248800299, 450283768452043891, 36472994178147530851, 328256958598444055419, 26588814218220014932459, 19383245658672820642055731, 14130386091162273752461387579, 127173474823342767533669605651
OFFSET
1,1
LINKS
FORMULA
a(n) = 3^A000040(n) - 2^A000040(n).
a(n) = A057901(n) - A034785(n). - Michel Marcus, Jun 14 2014
EXAMPLE
a(4)=2059 because the 4th prime number is 7, 3^7=2187, 2^7=128 and 2187-128=2059.
MATHEMATICA
3^#-2^#&/@Prime[Range[20]] (* Harvey P. Dale, Jun 20 2011 *)
PROG
(Magma) [3^p-2^p: p in PrimesUpTo(100)]; // Vincenzo Librandi, Dec 14 2010
CROSSREFS
KEYWORD
nonn
AUTHOR
Omar E. Pol, Nov 25 2007
EXTENSIONS
More terms from Vincenzo Librandi, Dec 14 2010
STATUS
approved