Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'combinatorics' topicStudent Support Forum > General > "combinatorics"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
yehuda
11/15/12 2:06pm

Here is a solution
It generate all possible outcomes (Tuples) and the filter it according to your criteria

sol=Cases[Tuples[Range[6], 5], x_ /; Sort[Last /@ Tally[x]] == {1, 2, 2}];
Length[sol]
returns 1800 as expected
enjoy
yehuda

URL: ,

Subject (listing for 'combinatorics')
Author Date Posted
combinatorics Max 11/14/12 12:59pm
Re: combinatorics Bill Simpson 11/15/12 12:33pm
Re: combinatorics yehuda 11/15/12 2:06pm
Re: combinatorics Michael 11/15/12 8:01pm
Re: combinatorics yehuda 11/18/12 12:44pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic