What are the odds of winning the pokemon lottery?

Level 2

In the pokemon game owned by Nintendo, players are assigned a 5 5 -digit trainer ID ranging from 00000 00000 to 65535 65535 which is randomly generated the moment they start the game. As they progress through the game, players can participate in the pokemon lottery, in which a lottery ticket with a random 5 5 -digit number ranging from 00000 00000 to 65535 65535 is drawn. Players are then awarded prizes based on the number of digits on the lottery ticket which matches their trainer ID. The prizes awarded are as follows:

2 2 digits matched- PP Up

3 3 digits matched- PP Max

4 4 digits matched- Rare Candy

5 5 digits matched- Master Ball

What is the probability of winning a Master Ball or Rare Candy in a single draw?

Details and assumptions:

  • You might want to use a calculator or Mathematical software to ease the computational process once you figure out the way to solve the problem.
0.000341% 0.064356% 0.237106% None of the above

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Zk Lin
Feb 5, 2014

Obviously, the odds of winning a Master Ball is 1 65536 \frac{1}{65536} . From now on, we will focus on the odds of winning a Rare Candy.

We partition the cases of winning a Rare Candy into five:

In all of the following case, let x x denotes the number which we want to replace so that it does not match the trainer ID.

Case 1 1 : x b c d e xbcde

We partition case 1 1 into subcases 1 ( a ) 1(a) and 1 ( b ) 1(b) .

Subcase 1 ( a ) 1(a) : x b c d e xbcde where b c d e \overline{bcde} ranges from 0000 0000 to 5535 5535 .

Obviously, x x can only range from 0 0 to 6 6 . Therefore, there are 7 × 5536 = 38752 7\times 5536= 38752 IDs of this type. If we are to replace x x by another number ( so as to create IDs which differ in the first digit), we only have 6 6 choices as replacement.

Subcase 1 ( b ) 1(b) : x b c d e xbcde where b c d e \overline{bcde} ranges from 5536 5536 to 9999 9999 .

Notice that x x can only range from 0 0 to 5 5 . If x > 5 x>5 , then x a b c d xabcd would be out of range. Therefore, there are 6 × 4464 = 26784 6\times 4464= 26784 IDs of this type. If we are to replace x x by another number ( so as to create IDs which differ in the first digit), we only have 5 5 choices as replacement.

It is obvious that the two subcases above partition the set of 65536 65536 possible trainer ID. Now, we attempt to calculate average number of loto IDs which match every single digit of the trainer ID except the first by considering the number of such loto IDs generated by each element in the set of 65536 65536 trainer IDs and then taking the average. Note that for the 38752 38752 trainer IDs in subcase 1 1 , if we replace the first digit of the trainer ID, there are 6 6 possible replacements. In subcase 2 2 , if we replace the first digit of the trainer ID, there are 5 5 possible replacements. Therefore, the average number of loto IDs generated by each of the 65536 65536 trainer IDs for case 1 1 is 38752 × 6 + 26784 × 5 65536 \frac{38752\times 6 + 26784\times 5}{65536} . To calculate the probability of case 1 1 appearing for any of the 65536 65536 trainer IDs, we simply take 38752 × 6 + 26784 × 5 6553 6 2 \frac{38752\times 6 + 26784\times 5}{65536^2} .

From case 2 2 onwards, I will only list the subcases and probabilities since the reasoning is similar to that of case 1 1 .

Case 2 2 : a x c d e axcde

Subcase 2 ( a ) 2(a) : a x c d e axcde where a a ranges from 0 0 to 5 5 while c d e \overline{cde} ranges from 000 000 to 999 999 .

Notice that x x can take values from 0 0 to 9 9 .Therefore, there are 6 × 10 × 1000 = 60000 6\times 10 \times 1000= 60000 IDs of this type. For replacement of the second digit, we have 9 9 possible replacements.

Subcase 2 ( b ) 2(b) : a x c d e axcde where a = 6 a=6 while c d e \overline{cde} ranges from 000 000 to 535 535 .

Notice that x x can take values from 0 0 to 5 5 .Therefore, there are 1 × 6 × 536 = 3216 1\times 6 \times 536= 3216 IDs of this type. For replacement of the second digit, we have 9 9 possible replacements.

Subcase 2 ( c ) 2(c) : a x c d e axcde where a = 6 a=6 while c d e \overline{cde} ranges from 536 536 to 999 999 .

Notice that x x can take values from 0 0 to 4 4 .Therefore , there are 1 × 5 × 464 = 2320 1\times 5 \times 464= 2320 IDs of this type. For replacement of the second digit, we have 9 9 possible replacements.

Combining all the subcases, the probability of case 2 2 appearing is 60000 × 9 + 3216 × 5 + 2320 × 4 6553 6 2 \frac{60000\times 9 + 3216\times 5 +2320\times 4 }{65536^2} .

Case 3 3 : a b x d e abxde

Subcase 3 ( a ) 3(a) : a b x d e abxde where a b \overline{ab} ranges from 00 00 to 64 64 while d e \overline{de} ranges from 00 00 to 99 99 .

Notice that x x can take values from 0 0 to 9 9 .Therefore, there are 65 × 10 × 100 = 65000 65\times 10 \times 100= 65000 IDs of this type. For replacement of the third digit, we have 9 9 possible replacements.

Subcase 3 ( b ) 3(b) : a b x d e abxde where a b = 65 \overline{ab}=65 while d e \overline{de} ranges from 00 00 to 35 35 .

Notice that x x can take values from 0 0 to 5 5 .Therefore, there are 1 × 6 × 36 = 216 1\times 6 \times 36= 216 IDs of this type. For replacement of the third digit, we have 5 5 possible replacements.

Subcase 3 ( c ) 3(c) : a b x d e abxde where a b = 65 \overline{ab}=65 while d e \overline{de} ranges from 36 36 to 99 99 .

Notice that x x can take values from 0 0 to 4 4 .Therefore, there are 1 × 5 × 64 = 320 1\times 5 \times 64= 320 IDs of this type. For replacement of the third digit, we have 4 4 possible replacements.

Combining all the subcases, the probability of case 3 3 appearing is 65000 × 9 + 216 × 5 + 320 × 4 6553 6 2 \frac{65000\times 9 + 216\times 5 +320\times 4 }{65536^2} .

Case 4 4 : a b c x e abcxe

Subcase 4 ( a ) 4(a) : a b c x e abcxe where a b c \overline{abc} ranges from 000 000 to 654 654 while e \overline{e} ranges from 0 0 to 9 9 .

Notice that x x can take values from 0 0 to 9 9 .Therefore, there are 655 × 10 × 10 = 65500 655\times 10 \times 10= 65500 IDs of this type. For replacement of the fourth digit, we have 9 9 possible replacements.

Subcase 4 ( b ) 4(b) : a b c x e abcxe where a b c = 655 \overline{abc}=655 while e \overline{e} ranges from 0 0 to 5 5 .

Notice that x x can take values from 0 0 to 3 3 .Therefore, there are 1 × 6 × 4 = 24 1\times 6 \times 4= 24 IDs of this type. For replacement of the fourth digit, we have 3 3 possible replacements.

Subcase 4 ( c ) 4(c) : a b c x e abcxe where a b c = 655 \overline{abc}=655 while e \overline{e} ranges from 6 6 to 9 9 .

Notice that x x can take values from 0 0 to 2 2 .Therefore, there are 1 × 3 × 4 = 12 1\times 3 \times 4= 12 IDs of this type. For replacement of the fourth digit, we have 2 2 possible replacements.

Combining all the subcases, the probability of case 4 4 appearing is 65500 × 9 + 24 × 3 + 12 × 2 6553 6 2 \frac{65500\times 9 + 24\times 3 +12\times 2 }{65536^2} .

Case 5 5 : a b c d x abcdx

Subcase 5 ( a ) 5(a) : a b c d x abcdx where a b c d \overline{abcd} ranges from 0000 0000 to 6552 6552 while e \overline{e} ranges from 0 0 to 9 9 .

Notice that x x can take values from 0 0 to 9 9 .Therefore, there are 6553 × 10 = 65530 6553\times 10= 65530 IDs of this type. For replacement of the fifth digit, we have 9 9 possible replacements.

Subcase 5 ( b ) 5(b) : a b c d x abcdx where a b c d = 6553 \overline{abcd}=6553 while e \overline{e} ranges from 0 0 to 5 5 .

Notice that x x can take values from 0 0 to 5 5 .Therefore, there are 1 × 6 = 6 1\times 6= 6 IDs of this type. For replacement of the fifth digit, we have 5 5 possible replacements.

Combining all the subcases, the probability of case 5 5 appearing is 65530 × 9 + 6 × 5 6553 6 2 \frac{65530\times 9 + 6\times 5 }{65536^2} .

We are finally getting there! To calculate the probability of winning a Master Ball or Rare Candy in the first go, we simply add up the probability of winning the Master Ball and the probability of five cases above. This yields the desired answer.

Some corrections for sloppy mistakes I made in the solution above:

Subcase 2 ( b ) 2(b) : ................ For replacement of the second digit, we have 5 \boxed{5} possible replacements.

Subcase 2 ( c ) 2(c) : ............... For replacement of the second digit, we have 4 \boxed{4} possible replacements.

Ignore the words "while e \overline{e} ranges from 0 0 to 9 9 " in subcase 5 ( a ) 5(a) .

Ignore the words "while e \overline{e} ranges from 0 0 to 5 5 " in subcase 5 ( b ) 5(b) .

ZK LIn - 7 years, 4 months ago

For completeness, I figure that I might as well include the messy calculations:

Note that

1 65536 \frac{1}{65536} + + 38752 × 6 + 26784 × 5 6553 6 2 \frac{38752\times 6+ 26784\times 5}{65536^2} + + 60000 × 9 + 3216 × 5 + 2320 × 4 6553 6 2 \frac{60000\times 9+ 3216\times 5+ 2320\times 4}{65536^2} + + 65000 × 9 + 216 × 5 + 320 × 4 6553 6 2 \frac{65000\times 9 + 216\times 5 + 320 \times 4}{65536^2} + + 65500 × 9 + 24 × 3 + 12 × 2 6553 6 2 \frac{65500 \times 9 + 24\times 3 + 12\times 2}{65536^2} + + 65530 × 9 + 6 × 5 6553 6 2 \frac{65530\times 9 + 6\times 5}{65536^2} = = 691021 1073741824 \frac{691021}{1073741824} , which is approximately 0.064356 % \boxed{0.064356\%} .

ZK LIn - 7 years, 4 months ago

Looking at the solution from a different and perhaps, simpler and more intuitive perspective:

We are asked to figure out the probability of getting all five matching digits or exactly four matching digits. The main difficulty lies in finding the probability of four matching digits because the probability for each trainer ID is different. Consider this: If you get the trainer ID 65430 65430 , you are not allowed to substitute the second digit 5 5 with 6 6 or else you overshoot the limit of 65535 65535 , while in the trainer ID 12345 12345 , you are allowed to do so. The first partition into five different cases, depending on which digit differs from the trainer ID is natural. But how does the second partition into subcases arises? For easier calculation, we should aim to partition the whole set of all possible trainer ID into disjoint sets where all members of the same set can generate the same number of four-digit matching lotto ticket number. We then calculate the expected number of four-digit matching lotto ticket number by taking the average number of four-digit matching lotto ticket number generated by each member of the 65536 65536 trainer IDs. To calculate the probability for a particular case, we simply divide the expected number of four-digit matching lotto ticket number by 65536. Rinse and repeat for other four cases. In the end, add up all the probabilities from five cases plus the probability of getting a perfect five digit match (trivial, it is obviously 1 65536 \frac{1}{65536} ) and we arrive at the desired answer.

A very simple and less time-consuming variant of the problem would be to assume that the trainer ID ranges from 00000 00000 to 99999 99999 , but this does not reflect the real probability since in the pokemon games, the maximum cap for trainer ID is 65535 65535 , and there is a good reason for that. Notice that 2 16 = 65536 2^{16}=65536 ? That is not a coincidence, but further discussion of this topic is not relevant to this problem.

ZK LIn - 7 years, 4 months ago

I didn't know that match means the digits have to be at the right place. I really thought that 12345 would also win a Master Ball for an announced winning number of 54321.

Saya Suka - 2 years ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...