login
A384508
Nonnegative integers k such that the digits of k include the digits of the digital sum of k as a (not necessarily contiguous) subsequence.
1
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 109, 119, 129, 139, 149, 159, 169, 179, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 300, 400, 500, 600, 700, 800, 900, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 1000
OFFSET
1,3
EXAMPLE
196 is a term because 1 + 9 + 6 = 16 and 1, 6 is a subsequence of 1, 9, 6.
MAPLE
A384508:=proc(n)
option remember;
local k, L;
if n=1 then
0
else
for k from procname(n-1)+1 do
L:=convert(k, 'base', 10);
if ArrayTools:-IsSubsequence(convert(add(L), 'base', 10), L) then
return k
fi
od
fi;
end proc;
seq(A384508(n), n=1..58);
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Felix Huber, Jun 26 2025
STATUS
approved