Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Extracting nested iterator values' topicStudent Support Forum > General > "Extracting nested iterator values"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Michael
05/28/12 8:23pm

Try

lst[m_,a_] := Subsets[Range[2,m+a],{a}]

Note that the list will be Binomial[m+a, a] elements long, nearly 3.8 million, for your particular case of m=96 and a=4.

URL: ,

Subject (listing for 'Extracting nested iterator values')
Author Date Posted
Extracting nested iterator values Eduardo Lopez 05/28/12 09:14am
Re: Extracting nested iterator values Bill Simpson 05/28/12 7:41pm
Re: Extracting nested iterator values Michael 05/28/12 8:23pm
Re: Extracting nested iterator values yehuda 05/29/12 07:38am
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic