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”).

A060004
a(n) = least odd number which can be represented in the form p + 2*k^2, k>0, in n different ways.
0
1, 5, 13, 21, 49, 55, 91, 139, 259, 181, 301, 391, 481, 559, 619, 829, 859, 1069, 1111, 1081, 1489, 1609, 1741, 1951, 2029, 2971, 2341, 3379, 3769, 3331, 3589, 3961, 4525, 4189, 5281, 4801, 4975, 6361, 7579, 5911, 6439, 7111, 6319, 9931, 11059, 8869
OFFSET
0,2
MATHEMATICA
a = Table[ 0, {100} ]; Do[ c = 0; k = 1; While[ n - 2*k^2 > 1, If[ PrimeQ[ n - 2*k^2 ], c++ ]; k++ ]; If[ a[ [ c ] ] == 0, a[ [ c ] ] = n ], { n, 1, 70801, 2 } ]
CROSSREFS
Sequence in context: A166051 A160170 A277189 * A174172 A076408 A006353
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Mar 14 2001
STATUS
approved