Problem 2597 · Medium

The Number of Beautiful Subsets

Decide for each number whether to include it, blocking any number exactly k away from one already chosen.

Open the interactive visualisation