Hi all,(adsbygoogle = window.adsbygoogle || []).push({});

I am working on a programming project and want to know how many possible combinations can exist in a particular situation, but I have no idea how to work it out. It isn't homework, I just want to know because I am sure it is a VERY large number and want to make a point.

There are 2 vectors, one vector is one dimensional and is, say, 5 in length with values in it: [ 1 | 2 | 3 | 4 | 5 ] and the second vector is two dimensional and empty (to be filled with the numbers in the one dimensional vector), say like so:

+---------+

| - | - | - |

| - | - | - |

| - | - | - |

+---------+

How would I go about working out working out how many combinations of those 5 numbers can be placed in the above two dimensional vector?

eg. one would be:

+---------+

| 1 | 2 | 3 |

| 4 | 5 | - |

| - | - | - |

+---------+

another:

+---------+

| 1 | 3 | 2 |

| 4 | 5 | - |

| - | - | - |

+---------+

Thank you for any help

**Physics Forums | Science Articles, Homework Help, Discussion**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Possible Combinations

**Physics Forums | Science Articles, Homework Help, Discussion**