Solved

# List all the possible combinations of three numbers from a given sample.

Posted on 2013-02-04

I have to work out and write down all the possible combinations of three numbers can be extracted (without repetition) from 80.

as an illustration:

there is only one group of three numbers in 3 (1,2,3)

there are four groups of three numbers in 4 (1,2,3 1,2,4 1,3,4 2,3,4)

there are 10 groups of three numbers in 6

I have for the calculation =COMBIN(80, 3) for excel which gives me 18,424 possibilities, so I know how many combinations are possible

I need code that will list all them written out in a spreadsheet in an list probably in a text document

I would be very grateful for help