login
A135173
5^p - 3^p - 2^p, where p = prime(n).
1
12, 90, 2850, 75810, 48648930, 1219100610, 762810181890, 19072323542370, 11920834803510690, 186264446292181467330, 4656612255401848810530, 72759575691550215703252290, 45474735052173413319557911170, 1136868376887903321203168728290, 710542735733511371371429275935010
OFFSET
1,1
LINKS
FORMULA
a(n) = 5^p - 3^p - 2^p, with p = A000040(n).
a(n) = A057902(n) - A057901(n) - A034785(n). - Michel Marcus, Jun 14 2014
EXAMPLE
a(4) = 75810 because the 4th prime number is 7, 5^7 = 78125, 3^7 = 2187, 2^7 = 128 and 78125-2187-128 = 75810.
MATHEMATICA
5^# - 3^# - 2^# &/@Prime[Range[20]] (* G. C. Greubel, Sep 30 2016 *)
PROG
(Magma)[5^p-3^p-2^p: p in PrimesUpTo(100)] // Vincenzo Librandi, Dec 14 2010
(PARI) a(n, p=prime(n))=5^p - 3^p - 2^p \\ Charles R Greathouse IV, Sep 30 2016
CROSSREFS
Cf. 2^p: A034785. 3^p: A057901. 5^p: A057902.
Sequence in context: A374424 A231512 A250344 * A173223 A114860 A001502
KEYWORD
nonn
AUTHOR
Omar E. Pol, Nov 25 2007
EXTENSIONS
More terms from Vincenzo Librandi, Dec 14 2010
STATUS
approved