View Single Post
Lucid
Member
 
Join Date: Oct 2009
Location: My Head
 
2009-10-13, 20:58

I'm not quite sure that I understood your problem correctly, but I think you're asking for every combination of numbers in the set {1, 2, 3, 4, 5, 6} of lengths 2 through 5, without repeats. If I'm right, then this should be the list, which I wrote a simple program to generate (and you could also do this by hand fairly quickly). If you want to see the code, which I highly doubt you do, I can post it later.
Code:
Length 2: 1 2 1 3 1 4 1 5 1 6 2 3 2 4 2 5 2 6 3 4 3 5 3 6 4 5 4 6 5 6 Length 3: 1 2 3 1 2 4 1 2 5 1 2 6 1 3 4 1 3 5 1 3 6 1 4 5 1 4 6 1 5 6 2 3 4 2 3 5 2 3 6 2 4 5 2 4 6 2 5 6 3 4 5 3 4 6 3 5 6 4 5 6 Length 4: 1 2 3 4 1 2 3 5 1 2 3 6 1 2 4 5 1 2 4 6 1 2 5 6 1 3 4 5 1 3 4 6 1 3 5 6 1 4 5 6 2 3 4 5 2 3 4 6 2 3 5 6 2 4 5 6 3 4 5 6 Length 5: 1 2 3 4 5 1 2 3 4 6 1 2 3 5 6 1 2 4 5 6 1 3 4 5 6 2 3 4 5 6
  quote