A135171 3^p - 2^p, where p = prime(n).
5, 19, 211, 2059, 175099, 1586131, 129009091, 1161737179, 94134790219, 68629840493971, 617671248800299, 450283768452043891, 36472994178147530851, 328256958598444055419, 26588814218220014932459, 19383245658672820642055731, 14130386091162273752461387579, 127173474823342767533669605651
Offset: 1
Keywords
Examples
a(4)=2059 because the 4th prime number is 7, 3^7=2187, 2^7=128 and 2187-128=2059.
Links
- Ivan Panchenko, Table of n, a(n) for n = 1..200
Programs
-
Magma
[3^p-2^p: p in PrimesUpTo(100)]; // Vincenzo Librandi, Dec 14 2010
-
Mathematica
3^#-2^#&/@Prime[Range[20]] (* Harvey P. Dale, Jun 20 2011 *)
Formula
Extensions
More terms from Vincenzo Librandi, Dec 14 2010