Results 1 to 2 of 2

Math Help - how to list all of 7C4

  1. #1
    Junior Member
    Joined
    Nov 2009
    Posts
    73

    how to list all of 7C4

    I have 7 elements and I want to list all subsets of size 4

    ie: 7C4=35

    so i want to explicitly list the 35 elements, does anyone know an method for doing this?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    Joined
    Oct 2009
    Posts
    5,537
    Thanks
    778
    I think the following algorithm should work.

    Code:
    for x1 = 1 to 7
      for x2 = x1 + 1 to 7
        for x3 = x2 + 1 to 7
          for x4 = x3 + 1 to 7
            print x1, x2, x3, x4
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. List
    Posted in the LaTeX Help Forum
    Replies: 6
    Last Post: November 23rd 2009, 11:01 AM
  2. help with list the
    Posted in the Pre-Calculus Forum
    Replies: 1
    Last Post: October 26th 2009, 04:53 AM
  3. TI-84 list HELP
    Posted in the Statistics Forum
    Replies: 1
    Last Post: May 8th 2008, 09:13 PM
  4. list of tables and list of figures
    Posted in the LaTeX Help Forum
    Replies: 0
    Last Post: January 26th 2008, 12:40 AM
  5. List of ideals
    Posted in the Advanced Algebra Forum
    Replies: 3
    Last Post: October 26th 2006, 04:25 PM

Search Tags


/mathhelpforum @mathhelpforum