You are not logged in.
Hi together
I try to find out the possible combinations of 5 digits. The allowed digits are 3,4,5,6,7,8 and the sum has to be 20.
My main goal is to calculate the possibilities in which 20 sweets are distributes to 5 kids and that everyone gets at least 3 sweets.
So i did this
Types to choose from? 6
Number Chosen? 5
Is Order important? Yes
Is Repetition allowed? Yes
but i want only the possibilities in which the sum is exact 20, i thought maybe with "no" and "<"">" this can be achieved?
What is your work so far and what is your answer?
{1}Vasudhaiva Kutumakam.{The whole Universe is a family.}
(2)Yatra naaryasthu poojyanthe Ramanthe tatra Devataha
{Gods rejoice at those places where ladies are respected.}
Offline
I do not think the calculator over there is designed for that condition. This one you have to do on your own. Is this a programming assignment for homework?
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
bobbym,
I don't think it needs programming but only some thinking/awareness of some classical method.
{1}Vasudhaiva Kutumakam.{The whole Universe is a family.}
(2)Yatra naaryasthu poojyanthe Ramanthe tatra Devataha
{Gods rejoice at those places where ladies are respected.}
Offline
Hi;
I did not say programming was required, although it would be the easiest way to do the problem. There is a nice mathematical way to do this but until I know what the OP wants there is no sense in posting it. He may just want to use some online calculator and not be interested in programming or math.
So far, all I know is that he was trying to use MIF's online permutation calculator. This, as I pointed out is not possible as far as I know. So, in the interest of keeping my answer short and to the point I am requesting more information out of the OP.
In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.
Offline
I am also withholding it as it could be a homework problem and the ready solution could kill the urge to think.
{1}Vasudhaiva Kutumakam.{The whole Universe is a family.}
(2)Yatra naaryasthu poojyanthe Ramanthe tatra Devataha
{Gods rejoice at those places where ladies are respected.}
Offline