OFFSET
1,2
COMMENTS
Obviously no number containing a zero digit is in the sequence.
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
For 0 <= p <= 9, p - P(p) = 0, hence 0 is not in the sequence.
It's easy to see that if p has 2 digits or more the difference p - P(p) has at least 2 digits, hence 1 to 9 are in the sequence.
MAPLE
f:= n -> n - convert(convert(n, base, 10), `*`):
R:= {}:
S:= {0}:
for d from 1 to 3 do
S:= map(proc(t) local i; seq(10*t+i, i=1..9) end proc, S);
V:= S minus map(f, S);
R:= R union V;
od:
sort(convert(R, list)); # Robert Israel, Jul 22 2025
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Philippe Lallouet (philip.lallouet(AT)orange.fr), Feb 01 2008
EXTENSIONS
Corrected by Robert Israel, Jul 22 2025
STATUS
approved
