Problem 3747 · Medium

Count Distinct Integers After Removing Zeros

Every zero-free number maps to itself, so the answer is how many zero-free numbers are at most n.

Open the interactive visualisation