A365127 Numbers that are the sum of a prime number and a fourth power of a nonnegative integer.
2, 3, 4, 5, 6, 7, 8, 11, 12, 13, 14, 17, 18, 19, 20, 21, 23, 24, 27, 29, 30, 31, 32, 33, 35, 37, 38, 39, 41, 42, 43, 44, 45, 47, 48, 53, 54, 57, 59, 60, 61, 62, 63, 67, 68, 69, 71, 72, 73, 74, 75, 77, 79, 80, 83, 84, 86, 87, 88, 89, 90, 92, 94, 95, 97, 98, 99, 100
Offset: 1
Keywords
Programs
-
Mathematica
nmax = 100; f[x_] := Sum[x^Prime[i], {i, 1, nmax}] Sum[x^j^4, {j, 0, nmax^(1/4)}]; Exponent[#, x] & /@ List @@ Normal[Series[f[x], {x, 0, nmax}]]