OFFSET
1,1
LINKS
Ivan Panchenko, Table of n, a(n) for n = 1..200
FORMULA
a(n) = 5^p - 3^p - 2^p, with p = A000040(n).
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
KEYWORD
nonn
AUTHOR
Omar E. Pol, Nov 25 2007
EXTENSIONS
More terms from Vincenzo Librandi, Dec 14 2010
STATUS
approved