Catherine rolls a 6-sided die five times, and the product of her rolls is 300 How many different sequences of rolls could there have been? (The order of the rolls matters.)
I wrote a computer program
i = 0
for (a = 1..6)
for (b = 1..6)
for (c = 1..6)
for (d = 1..6)
for (e = 1..6)
if a*b*c*d*e = 300 then i++
write(output,i)
output = 480