Problem 2048 · Medium

Next Greater Numerically Balanced Number

Find the smallest integer greater than n whose digit frequencies equal the digit values.

Open the interactive visualisation