Problem 2638 · Medium

Count the Number of K-Free Subsets

Values that sit exactly k apart form chains; each chain is counted with a take-or-skip walk, and the chain counts multiply.

Open the interactive visualisation