login
3^p - 2^p, where p = prime(n).
3

%I #24 Sep 09 2024 14:58:34

%S 5,19,211,2059,175099,1586131,129009091,1161737179,94134790219,

%T 68629840493971,617671248800299,450283768452043891,

%U 36472994178147530851,328256958598444055419,26588814218220014932459,19383245658672820642055731,14130386091162273752461387579,127173474823342767533669605651

%N 3^p - 2^p, where p = prime(n).

%H Ivan Panchenko, <a href="/A135171/b135171.txt">Table of n, a(n) for n = 1..200</a>

%F a(n) = 3^A000040(n) - 2^A000040(n).

%F a(n) = A057901(n) - A034785(n). - _Michel Marcus_, Jun 14 2014

%e a(4)=2059 because the 4th prime number is 7, 3^7=2187, 2^7=128 and 2187-128=2059.

%t 3^#-2^#&/@Prime[Range[20]] (* _Harvey P. Dale_, Jun 20 2011 *)

%o (Magma) [3^p-2^p: p in PrimesUpTo(100)]; // _Vincenzo Librandi_, Dec 14 2010

%Y Cf. A000040, A034785, A057901.

%K nonn

%O 1,1

%A _Omar E. Pol_, Nov 25 2007

%E More terms from _Vincenzo Librandi_, Dec 14 2010