Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am writing a computer program which generate 5 digit alpha-numeric codes. Each character can contain a-z,A-Z and 0-9 (62 different possibility per character).

So if there are 5 character how many possibility are there?

share|cite|improve this question
up vote 1 down vote accepted

You can get $62^5$ (or $916132832$) possibilities.

share|cite|improve this answer

Every character can have $62$ different possibility as you said, so the total possible combinations of 5 character would be $62\times62\times62\times62\times62=62^5$.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.