← Complete problem index

PROJECT EULER · #0528

Constrained Sums

Statement only · SolvedOriginal problem ↗

Let S(n,k,b) represent the number of valid solutions to x1+x2++xkn, where 0xmbm for all 1mk.

For example, S(14,3,2)=135, S(200,5,3)=12949440, and S(1000,10,5)mod1000000007=624839075.

Find (10k15S(10k,k,k))mod1000000007.

Write-up coming later

The complete problem is available here. An approach, code, and answer will be added later.