OFFSET
1,3
COMMENTS
If m is a term, then 10*m and 10*m + 1 are also terms.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
EXAMPLE
The number 2331 has digital sum 9 and belongs to the sequence as 1 = 1, 2 = 2, 3 = 3, 4 = 3+1, 5 = 2+3, 6 = 3+3, 7 = 3+3+1, 8 = 2+3+3, 9 = 2+3+3+1.
PROG
(PARI) is(n) = { my (r = concat(0, digits(n))); #setbinop((i, j) -> vecsum(r[i..j]), [1..#r])==vecsum(r)+1; }
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Sep 20 2024
STATUS
approved