OFFSET
0,2
EXAMPLE
a(2) = 23: 10, 11, 12, 15, 20, 22, 24, 30, 33, 36, 40, 44, 48, 50, 55, 60, 66, 70, 77, 80, 88, 90, 99.
PROG
(PARI)
C(digs, n, m)={my(v=vector(m)); v[1]=1; for(i=1, n, v=vector(m, j, sum(k=1, #digs, my(r=10^(i-1)*digs[k]%m); v[1+(j-1-r)%m]))); v}
a(n)={if(n==1, 10, my(m=lcm([2..9])); sumdiv(m, d, my(digs=select(t->t<=1||d%t==0, [0..9])); my(v=C(digs, n, m)-C(digs, n-1, m)); sum(i=1, m/d, if(gcd(m/d, i)==1, v[1+i*d%m]))))} \\ Andrew Howroyd, Dec 04 2020
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Phuc H. G. Trinh, Dec 04 2020
EXTENSIONS
Terms a(18) and beyond from Andrew Howroyd, Dec 04 2020
STATUS
approved