A376300 Numbers whose digits can be rearranged to form a substring of 123456789012345678901234....
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 21, 23, 32, 34, 43, 45, 54, 56, 65, 67, 76, 78, 87, 89, 90, 98, 102, 109, 120, 123, 132, 190, 201, 210, 213, 231, 234, 243, 312, 321, 324, 342, 345, 354, 423, 432, 435, 453, 456, 465, 534, 543, 546, 564, 567, 576
Offset: 1
Links
- Andrew Howroyd, Table of n, a(n) for n = 1..10000
Programs
-
PARI
isok(n)={my(f=vector(10)); foreach(digits(n), t, f[1+t]++); vecmax(f)<=vecmin(f)+1 && sum(k=1, 9, f[k]!=f[k+1])<=2}