Problem 1155 · Medium

Number of Dice Rolls With Target Sum

Count the ways to roll a fixed number of dice with a given number of faces so that the total equals a target, reported modulo one billion and seven. The visual fills a table one dice at a time, where each cell gathers the faces that reach it.

Open the interactive visualisation