Problem 2927 · Medium

Distribute Candies Among Children III

Count the ways three children can share n candies with no child above the limit. Fix the first share and count the band of valid second shares.

Open the interactive visualisation