A097059 Numbers of the form p^3 + 3^p for p prime.
17, 54, 368, 2530, 178478, 1596520, 129145076, 1162268326, 94143190994, 68630377389272, 617673396313738, 450283905891048016, 36472996377170855324, 328256967394537157134, 26588814358957503391610
Offset: 1
Examples
For example, the first two terms are 2^3 + 3^2 = 17, 3^3 + 3^3 = 54.
Programs
-
Mathematica
Table[Prime[n]^3 + 3^Prime[n], {n, 16}] (* Robert G. Wilson v, Sep 15 2004 *) #^3+3^#&/@Prime[Range[20]] (* Harvey P. Dale, Jul 23 2021 *)
-
PARI
forprime(p=2,47,print1(p^3+3^p,",")) \\ Klaus Brockhaus