OFFSET
1,1
EXAMPLE
10 is a term because "10" starts with "1" = 1 + 0;
101 is a term because "101" starts with "1" = 0 + 1;
1019 is a term because "1019" starts with "10" = 1 + 9; etc.
MATHEMATICA
q[n_] := Module[{d = IntegerDigits[n], s, ds, nds}, s = Plus @@ d[[-2 ;; -1]]; ds = IntegerDigits[s]; nds = Length[ds]; ds == d[[1 ;; nds]]]; Select[Range[10, 1001], q] (* Amiram Eldar, Mar 16 2022 *)
PROG
(Python)
def ok(n):
s = str(n)
return n > 9 and s.startswith(str(int(s[-2])+int(s[-1])))
print([k for k in range(1002) if ok(k)]) # Michael S. Branicky, Mar 16 2022
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Eric Angelini and Carole Dubois, Mar 16 2022
STATUS
approved