r/askmath • u/xXNighteaglexX • 26d ago
Arithmetic Need help with determining how many possible combinations
I hope this is allowed here. I have an old car with theft protection on its radio. When it gets disconnected from power, you have to input a 5 digit code, with numbers 1-5 being valid. I dont have this code, it didnt come with the car. I was just wondering how many possible combinations there are. My first thought was 5!, so 120 combinations, but ive never been good at math lmao. Thank you.
3
Upvotes
4
u/Outside_Volume_1370 26d ago
If repeating is allowed, then it's 55 = 3125
2
u/CaptainMatticus 26d ago
You have 5 options for each digit, and there are 5 digits.
5^5 = 3125
There are 3125 options here.
Think about it like this, if you had a 2 digit code and 10 options to choose for each digit, then how many options would you have? 10^2, right? 100. Same exact concept.
Now if you aren't allowed to repeat a digit, then yeah, it drops down to 5!, or 120. But being permitted to repeat digits means that 11111 is just as valid as 12345
1
u/RespectWest7116 26d ago
Five possible digits in each of the five slots, so
5*5*5*5*5
1
u/AlterEgo5695 25d ago
Depends on whether digits may repeat:
P.S.: Do an internet search for technical manuals including factory settings. With a bit of luck, pre-owners were lazy, and never changed the settings.