Problem 276 · Easy

Paint Fence

Count ways to paint n posts with k colors.

Open the interactive visualisation