login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A365289
a(n) is the least positive integer that can be expressed as the sum of a prime number and a nonnegative cube in exactly n ways.
5
1, 2, 3, 67, 829, 1787, 6654, 8941, 22193, 36277, 57139, 59455, 85377, 158435, 240074, 253628, 313407, 405925, 548802, 891845, 809384, 1317788, 1547004, 2049122, 1838349, 2516848, 3192927, 2448059, 4132313, 4349417, 4438311, 6483753, 6956437, 6175237, 9393491
OFFSET
0,2
EXAMPLE
For n = 3: 67 = 3 + 4^3 = 59 + 2^3 = 67 + 0^3.
PROG
(C++) See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Aug 31 2023
EXTENSIONS
More terms from Rémy Sigrist, Sep 07 2023
STATUS
approved