login
A394775
Numbers that have a base 10 representation in which, for any digit d (1 <= d <= 9), the number of occurrences of d-1 is not less than the number of occurrences of d.
2
0, 10, 100, 102, 120, 201, 210, 1000, 1001, 1002, 1010, 1020, 1023, 1032, 1100, 1200, 1203, 1230, 1302, 1320, 2001, 2010, 2013, 2031, 2100, 2103, 2130, 2301, 2310, 3012, 3021, 3102, 3120, 3201, 3210, 10000, 10001, 10002, 10010, 10012, 10020, 10021, 10023
OFFSET
1,2
LINKS
MAPLE
q:= n-> (p-> andmap(d-> coeff(p, x, d-1)>=coeff(p, x, d),
[$1..9]))(add(x^i, i=convert(n, base, 10))):
select(q, [$0..10230])[]; # Alois P. Heinz, Apr 01 2026
MATHEMATICA
A394775Q[k_] := Max[Differences[RotateRight[DigitCount[k]]]] <= 0;
Select[Range[0, 15000], A394775Q] (* Paolo Xausa, Apr 08 2026 *)
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
John Mason, Apr 01 2026
STATUS
approved