Problem 2048 · Medium
Find the smallest integer greater than n whose digit frequencies equal the digit values.
Open the interactive visualisation