OFFSET
1,1
LINKS
FORMULA
a(n) ~ n. - Charles R Greathouse IV, Nov 02 2022
MAPLE
f:= proc(d) local i, x, y;
sort(convert({seq(seq(seq(x+10^i*12+10^(i+2)*y, y=10^(d-3-i)..10^(d-2-i)-1), x=0..10^i-1), i=0..d-3),
seq(12*10^(d-2)+x, x=0..10^(d-2)-1)}, list))
end proc:
seq(op(f(d)), d=2..4); # Robert Israel, Nov 20 2017
MATHEMATICA
Select[Range@ 1220, SequenceCount[IntegerDigits[#], {1, 2}] > 0 &] (* Michael De Vlieger, Nov 20 2017 *)
PROG
(PARI) is_A293872 = has(n, p=12, m=10^#Str(p))=until(p>n\=10, n%m==p&&return(1))
CROSSREFS
Cf. A011540, A011531, A011532, A011533, A011534, A011535, A011536, A011537, A011538, A011539: analog for '0' - '9'.
Cf. A293870, A293871, A293873, A293874, A293875, A293876, A293877, A293878, A293879, A293880: same for '10' - '20'.
KEYWORD
nonn,base,easy
AUTHOR
M. F. Hasler, Oct 18 2017
STATUS
approved