Reply
Fri 16 Jul, 2004 04:26 am
Can anyone give me the formula which will allow me to work out the number of combinations possible, using 1234 in a series of 5 numbers. The numbers can be repeated in each series - ie. 11111, 11112, 11122 etc. I'm trying to work out the probability of guessing the correct sequence.
I think the formula is X^Y, where X=4 and Y=5 in your example. This gives you 1024 combos.
If you need a list of them all, I got this using MS Access.
Instructions: Create a table with just 1 field containing the records 1, 2, 3 & 4. Create a query containing this table 5 times. Insert the number from each of the tables across the row. When you run the query it will give you every combination possible of whatever numbers you've put in the table. Simply add the table more often if you want more (eg. a series of 6 rather than 5).
The Duke is correct. Each of the 5 positions can be any one of four numbers, so there are 4 to the 5th power or 1024 combinations.
For a one number series you have 4 choices. For a two number series you hafe 4 choices for the first number and 4 for the second or 16 choices. For a 5 number series you have 4 * 4 * 4 * 4 * 4 number of choices.
Thanks for your replies - I'm now sorted!!