1
$\begingroup$

In limited versions of BASIC, identifiers can be 1 or 2 characters long, but the first must be a letter and the second a letter or digit.

I thought that there are 26 possibilities for the first position and 36 for the second (26 + 10 for the digits), which would give 26*36 = 936 possible identifiers. The book however says the answer 962, so I'm not sure what I'm doing wrong.

  • 1
    Or more precisely 2.5 from Frederick Solomon's Probability and Stochastic Processes.2012-10-23
  • 0
    Great! Thanks for that. I think it's worthwhile mentioning these references in case it saves the reader time. [I'll delete my original comment, since yours is the real source.]2012-10-23

1 Answers 1