OFFSET
1,3
COMMENTS
The first two digits of a(n) cannot be in ascending order.
LINKS
Dominic McCarty, Table of n, a(n) for n = 1..10000
EXAMPLE
a(2) = 1 and 1 is the sum of 0 + 1 (closest digits to 1);
a(3) = 10 and 1 is the sum of 1 + 0 (closest digits to 1);
a(4) = 2 and 2 is the sum of 0 + 2 (closest digits to 2);
a(5) = 20 and 2 is the sum of 2 + 0 (closest digits to 2); etc.
PROG
(Python)
a, d = [0], 1
while len(a) < 66:
if d < 10 and a[-1] % 10 == 0: a.append(d); d += 1
k = 10
while k in a or (a[-1]%10) + int(str(k)[1]) != int(str(k)[0]): k += 1
a.append(k)
print(a) # Dominic McCarty, Jun 15 2025
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Eric Angelini, Nov 25 2020
EXTENSIONS
Corrected and extended by Dominic McCarty, Jun 15 2025
STATUS
approved
