OFFSET
1,1
LINKS
E. Angelini, (n+1) is not divisible by any digit of n, Oct 04 2012
E. Angelini, (n+1) is not divisible by any digit of n [Cached copy, with permission]
MATHEMATICA
nxt[n_]:=Module[{k=n+1}, While[DigitCount[k, 10, 1]>0||AnyTrue[k/IntegerDigits[n], IntegerQ], k++]; k]; NestList[nxt, 2, 70]//Quiet (* Harvey P. Dale, Sep 26 2025 *)
PROG
(PARI) A217491_vect(Nmax)={my(a=[], d=[0], L=0, nd); while( #a<Nmax, for( t=L+1, 9e9, for(i=1+!d[1], #d, t%d[i] || next(2)); nd=Set(digits(t)); setsearch(nd, 1) & next; a=concat(a, L=t); d=nd; break)); a}
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
M. F. Hasler and Eric Angelini, Oct 04 2012
STATUS
approved