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

%I #13 Sep 08 2022 08:45:32

%S 30,144,3336,80184,49003224,1222289256,763068462216,19074648065304,

%T 11921023089868344,186264583552936197096,4656613490748641378424,

%U 72759576592118027485247016,45474735125119406073899483976,1136868377544417255992242883544,710542735786689000089344282510584

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

%H Vincenzo Librandi, <a href="/A135175/b135175.txt">Table of n, a(n) for n = 1..200</a>

%F p=A000040(n): a(n)= 5^p + 3^p - 2^p.

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

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

%t Table[5^p + 3^p - 2^p, {p, Prime[Range[20]]} (* _Vincenzo Librandi_, May 24 2014 *)

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

%Y Cf. 2^p: A034785. 3^p: A057901. 2^5: A057902.

%K nonn,easy

%O 1,1

%A _Omar E. Pol_, Nov 25 2007

%E More terms from _Vincenzo Librandi_, Dec 14 2010