Hacker News new | past | comments | ask | show | jobs | submit login

Is my math failing me or wouldn't 8 digits result in 10^8 possibilities rather than 8^10?



You are correct that there are 10^8 possibilities for a string of 8 digits.

10 possibilities in position 1

10 possibilities in position 2

...

10 possibilities in position 8

10 * 10 * 10 * 10 * 10 * 10 * 10 * 10

Alternatively one can even simply observe that 99999999 is the highest number possible and since 00000000 is possible also then we have 99999999 + 1 different possibilities = 100000000 = 10^8


You are correct. 8 digits = 10^8


my bad, fixed




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: