login
A376300
Numbers whose digits can be rearranged to form a substring of 123456789012345678901234....
2
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,3
LINKS
PROG
(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}
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Andrew Howroyd, Sep 19 2024
STATUS
approved