|
|||||||||||||||||||||
|
|||||||||||||||||||||
| |||||||||||||||||||||
Hi Maria, It's not clear to me if the code has to contain each of the digits 0, 4 and 7 or if the code is made up of zeros, fours and sevens. For example is 0040 a valid code? I am going to assume it is and also that order is important so that 0400 and 0040 are different. With these conditions there are 81 possible codes and these code contain all the codes possible if order is not important and each code must contain 0, 4, and 7. I don't know if you are old enough to remember the old style odometers on automobiles. They are displays of a sequence of digits that tell you how may kilometers the vehicle has tavelled. There is a web site, Odometer number counter that displays such counters, including some that have 4 digits like your code. Each cylinder in the odometer has the ten digits, 0 to 9, but I want an odometer that only contains the digits 0, 4 and 7. Thinking of the code in numerical order they are
and when the rightmost digit rolls over to 0 the digit, second from the right increases one place to 4 so the odometer continues
and so on. Try there 81 possible codes. Enjoy your new phone, | |||||||||||||||||||||
|
|||||||||||||||||||||
Math Central is supported by the University of Regina and the Imperial Oil Foundation. |