Math Central - mathcentral.uregina.ca
Quandaries & Queries
Q & Q
. .
topic card  


cracking the code

list of
. .
start over

One item is filed under this topic.
A punch-code lock box 2010-11-29
From Doug:
I am a real estate agent that uses punch-code lock boxes on houses to store the keys. I need to crack the code on one of our boxes, so I need a list of the possible combinations.
4 digit code
Numbers 0-9
Each number can only be used once
Order of the numbers does not matter.

With advice from this site, I have calculated that there should be 210 possibilities. 10x9x8x7 (5040) gives me the total number possibilities and 4x3x2x1 (24) gives me the total number of ways to arrange those numbers. So if I divide the possibilities by the arrangement, I get 210. (5040 / 24 = 210) GREAT!!!

Now, how do I develop a list of those 210 combinations?

Thanks for your help.

Answered by Robert Dawson.



Math Central is supported by the University of Regina and The Pacific Institute for the Mathematical Sciences.



Home Resource Room Home Resource Room Quandaries and Queries Mathematics with a Human Face About Math Central Problem of the Month Math Beyond School Outreach Activities Teacher's Bulletin Board Canadian Mathematical Society University of Regina PIMS