OFFSET
1,2
COMMENTS
The sequence is infinite because, apart from the initial zero term, for every term k it contains all the terms of the form k*10^h, where h is a positive integer.
LINKS
Stefano Spezia, Table of n, a(n) for n = 1..10000
EXAMPLE
286 is a term, since it has only one largest digit, 8, and 2 + 8 + 6 = 16 = 2*8.
MATHEMATICA
Select[Range[0, 500], Count[digits=IntegerDigits[#], mx=Max[digits]]==1 && DigitSum[#]==2*mx &]
PROG
(PARI) isok(k) = if (k==0, 1, my(d=digits(k), m=vecmax(d)); (#select(x->(x==m), d) == 1) && (vecsum(d)==2*m)); \\ Michel Marcus, Mar 05 2026
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Stefano Spezia, Mar 01 2026
STATUS
approved
