SEARCH HOME
Math CentralQuandaries & Queries

search

Question from Jo, a teacher:

I have lost the code for my car stereo. I need all the possible 4 digit combinations using the numerals 1 2 3 4 5 and 6. Thank you

Hi Jo,

I am assuming that you are allowed to repeat digits, for example 1311 is a valid combination. If so there are 6 × 6 × 6 × 6 = 1296 possible combinations. The easiest way to try them all is to go through them in order

1111
1112
1113
1114
1115
1116
1121
1122
.
.
.

This is like watching the old style (non-digital) odometer in a car but using only the digits 1 to 6.

Good luck with this,
Penny

About Math Central
 

 


Math Central is supported by the University of Regina and The Pacific Institute for the Mathematical Sciences.
Quandaries & Queries page Home page University of Regina PIMS