A257277 a(n+1) has a digit that divides a(n) and is the least positive integer not appearing earlier with this property.
0, 1, 10, 2, 11, 12, 3, 13, 14, 7, 15, 5, 16, 4, 17, 18, 6, 19, 21, 23, 31, 41, 51, 30, 20, 22, 24, 8, 25, 35, 27, 9, 29, 61, 71, 81, 32, 26, 28, 34, 42, 33, 36, 37, 91, 47, 100, 40, 38, 52, 43, 101, 102, 39, 53, 103, 104, 44, 45, 49, 57, 63, 59, 105, 50, 54, 46, 62, 72, 48, 56, 58, 82, 92, 64, 68, 74, 106, 107, 108, 60, 55, 65, 75, 73, 109, 110, 85
Offset: 0
Links
- M. F. Hasler, Table of n, a(n) for n = 0..1199
- E. Angelini, Division by digits (variation), SeqFan list, May 7, 2015.
Programs
-
PARI
{u=n=0;until(print1(n","),u+=1<
!(n%i),vector(9,i,i));n=0;until(!bittest(u,n++)&&setintersect(d,Set(digits(n))),))}
Comments