Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Description: You have n dices each one having s sides numbered from 1 to s. How many outcomes add up to a specified number k?

Description: You have n dices each one having s sides numbered from 1 to s. How many outcomes add up to a specified number k? For example if we roll four normal six-sided dices we have four outcomes that add up to 5. (1, 1, 1, 2) (1, 1, 2, 1) (1, 2, 1, 1) (2, 1, 1, 1) There are 100 random tests with: 0 <= n <= 10 1 <= s <= 20 0 <= k <= n * s Notes: there is always exactly 1 case to reach k = 0 regardless of the number of dice you have without any dice, it's not possible to reach any positive k

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Essential Calculus Early Transcendental Functions

Authors: Ron Larson, Robert P. Hostetler, Bruce H. Edwards

1st Edition

618879188, 618879182, 978-0618879182

More Books

Students also viewed these Mathematics questions