OFFSET
1,1
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
MATHEMATICA
Union[Total/@Subsets[5^Range[0, 15], {2}]] (* Harvey P. Dale, Jan 06 2011 *)
PROG
(Python)
from itertools import combinations, count, takewhile
def aupto(lim):
p = takewhile(lambda x: x<= lim, (5**i for i in count(0)))
t = (sum(c) for c in combinations(p, 2))
return sorted(filter(lambda x: x <= lim, t))
print(aupto(10**6)) # Michael S. Branicky, Jun 26 2021
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Offset changed to 1 and a(37) and beyond from Michael S. Branicky, Jun 26 2021
STATUS
approved