OFFSET
1,3
EXAMPLE
a(7) = 186 because 186 is the least number such that
(186||187||188||189||190||191||192)/(186+187+188+189+190+191+192) = 186187188189190191192/1323 = 140731056832343304 that is an integer.
PROG
(Python)
from itertools import count
def a(n):
s, strs = sum(range(1, n+1)), list(map(str, range(1, n+1)))
for k in count(1):
if int("".join(strs))%s == 0: return k
s, strs = s + n, strs[1:] + [str(k+n)]
print([a(n) for n in range(1, 47)]) # Michael S. Branicky, Aug 25 2024
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paolo P. Lava, Aug 25 2024
STATUS
approved