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

A374142
a(n) is the smallest number which can be represented as the sum of two distinct nonzero heptagonal numbers in exactly n ways, or -1 if no such number exists.
4
8, 617, 8726, 255575, 1339801, 2419165, 9402323, 25764500, 35486953, 144568133, 385495261, 735503569, 638279039, 1183071664, 1571634527, 4449717748, 3584182298, 3871587494, 5693954599, 27084640649, 24205505111, 32489035067, 31973745058, 38935021406, 47570693867, 44749048300, 53075499329
OFFSET
1,1
LINKS
Eric Weisstein's World of Mathematics, Heptagonal Number
EXAMPLE
a(2) = 617 = 1 + 616 = 148 + 469.
PROG
(Python) # see linked program
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Jun 28 2024
EXTENSIONS
a(8)-a(27) from Michael S. Branicky, Jun 29 2024
STATUS
approved