OFFSET
1,1
EXAMPLE
910 is a term because "910" ends with "10" = 9 + 1 + 0;
911 is a term because "911" ends with "11" = 9 + 1 + 1;
1629 is a term because "1629" ends with "9" = 1 + 6 + 2; etc.
MATHEMATICA
q[n_] := Module[{d = IntegerDigits[n], s, ds, nds}, s = Plus @@ d[[1 ;; 3]]; ds = IntegerDigits[s]; nds = Length[ds]; ds == d[[-nds ;; -1]]]; Select[Range[100, 1700], q] (* Amiram Eldar, Mar 16 2022 *)
PROG
(Python)
def ok(n):
s = str(n)
return n > 99 and s.endswith(str(sum(map(int, s[:3]))))
print([k for k in range(1630) if ok(k)]) # Michael S. Branicky, Mar 16 2022
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Eric Angelini and Carole Dubois, Mar 16 2022
STATUS
approved