Distribute Candies Among Children II
Count the splits with inclusion-exclusion: all nonnegative triples minus those where one child exceeds the limit, added back in pairs.
Count the splits with inclusion-exclusion: all nonnegative triples minus those where one child exceeds the limit, added back in pairs.