Numberphile Card Trick
- 19Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
State the divisibility rule for 3 and 9 in terms of digit sum.
19 questions
- 1
State the divisibility rule for 3 and 9 in terms of digit sum.
Model answer
A number is divisible by 3 if the sum of its digits is divisible by 3, and divisible by 9 if the sum of its digits is divisible by 9.
Explanation
These rules rely on the fact that any power of 10 is one more than a multiple of 9, so the remainder when dividing by 3 or 9 equals the remainder of the digit sum.
- 2
Explain why the sum of the digits 1 through 9 guarantees that any arrangement of these nine digits produces a number divisible by 9.
Model answer
The sum of the digits 1 through 9 is 45, which is divisible by 9. Since the digit sum is always 45 regardless of order, any such number is divisible by 9.
Explanation
This was used in the card trick: the presenter knew any permutation of the nine clubs would be divisible by 9, allowing him to predict the outcome.
- 3
In the Belphegor's prime example, why could the number never be prime?
Model answer
The digit sum of the number (1 + 6+1+6+1) equals 15, which is divisible by 3, so the entire number is divisible by 3 and therefore composite.
Explanation
The presenter initially searched for primes with many zeros but missed that the cross sum rule made the number always divisible by 3.
- 4
What is the divisibility rule for 4?
Model answer
A number is divisible by 4 if the last two digits form a number divisible by 4.
Explanation
Since 100, 1000, etc., are all divisible by 4, only the last two digits matter.
- 5
What is the divisibility rule for 8?
Model answer
A number is divisible by 8 if the last three digits form a number divisible by 8.
Explanation
Because 1000 and higher powers of 10 are divisible by 8, only the last three digits need to be checked.
- 6
How can you test whether a three-digit number is divisible by 8 without direct division?
Model answer
Take the first two digits, multiply by 2, and add the last digit. If the result is divisible by 8, so is the original three-digit number.
Explanation
This test works because the difference between the number and the test expression is 80a2 + 8a1, which is a multiple of 8.
- 7
What are the divisibility rules for 5, 6, 10, and 12?
Model answer
For 5: number ends in 0 or 5. For 6: number is even and passes the digit sum test for 3. For 10: number ends in 0. For 12: number passes both the 4 test and the 3 test.
Explanation
These are composite rules derived from simpler factors.
- 8
Describe the divisibility rule for 11.
Model answer
Reverse the digits of the number, then compute the alternating sum (starting with the first digit as positive). If the result is a multiple of 11, the original number is divisible by 11.
Explanation
The rule works because 10 ≡ -1 mod 11, so powers of 10 alternate between 1 and -1.
- 9
Using the 11 rule, how can you insert a digit to make a number divisible by 11?
Model answer
Compute the alternating sum of the original number (including the new digit in its position). Choose the digit so that the alternating sum becomes a multiple of 11 (often zero).
Explanation
In the trick, the presenter aimed for an alternating sum of zero by adding a 5 at the start, making the result divisible by 11.
- 10
State the divisibility rule for 7 that uses blocks of three digits.
Model answer
Working from the right, group the digits into blocks of three. Take the alternating sum of these blocks (first block positive, second negative, third positive, etc.). If the result is divisible by 7, the original number is divisible by 7.
Explanation
This rule relies on the fact that 1001 = 7×11×13 and 999,999 is a multiple of 7.
- 11
How can you test if a three-digit number is divisible by 7?
Model answer
Take the first two digits minus twice the third digit. If the result is divisible by 7, the three-digit number is divisible by 7.
Explanation
This test is used when the block-of-three method gives a three-digit result that needs checking.
- 12
What two key facts are needed to prove the block-of-three divisibility rule for 7?
Model answer
That 1001 = 7×11×13 is a multiple of 7, and that 999,999 is also a multiple of 7.
Explanation
These facts allow the decomposition of the number into blocks and show that the alternating sum works modulo 7.
- 13
Describe the general divisibility test for any divisor ending in 1, 3, 7, or 9.
Model answer
Multiply the divisor by a number to make it end in 9, add 1, then divide by 10 to get the 'divvy number' m. Write the test number N as 10t + q (q last digit). Compute t + m·q. If that result is divisible by the original divisor, then N is divisible by it.
Explanation
This method works because the construction ensures that N is a multiple of the divisor if and only if the new number is a multiple.
- 14
Apply the general test to check if 1035 is divisible by 23.
Model answer
For 23, multiply by 3 to get 69, add 1 to get 70, divide by 10 to get m=7. Write 1035 as 10×103 + 5 (t=103, q=5). Compute 103 + 7×5 = 138. Since 138 is a multiple of 23 (23×6=138), 1035 is divisible by 23.
Explanation
The test systematically reduces the problem to checking a smaller number.
- 15
Why does the general test only work for divisors ending in 1, 3, 7, or 9?
Model answer
Because only numbers ending in these digits can be multiplied to end in 9 (the step needed to then add 1 and get a multiple of 10). Numbers ending in 0,2,4,5,6,8 cannot be transformed this way.
Explanation
The test relies on the ability to create a multiple of 10 by adding 1 to a multiple of the divisor.
- 16
In the card trick with nine cards, why could removing the 9 and rearranging still yield a multiple of 9?
Model answer
After removing the 9, the sum becomes 36, which is still divisible by 9. Any permutation of the remaining eight digits (1-8) still has digit sum 36, so the number remains divisible by 9.
Explanation
The sum of digits 1-8 is 36, divisible by 9, so the trick still works even after removing the 9.
- 17
In the four-card trick (1,2,3,4), why could the presenter guarantee that adding a 5 would make the number divisible by 3?
Model answer
The sum of 1,2,3,4 is 10, not divisible by 3. Adding 5 makes the total sum 15, which is divisible by 3. Since the digit sum rule for 3 depends only on the sum, any permutation including the 5 will be divisible by 3.
Explanation
The presenter used the fact that the digit sum determines divisibility by 3.
- 18
Prove that if the sum of the digits of a number is divisible by 3, then the number itself is divisible by 3.
Model answer
Write N = ∑_{i=0}^n a_i·10^i. Then N - S = ∑ a_i(10^i - 1). Each term (10^i - 1) is a multiple of 9 (hence of 3), so N - S is divisible by 3. If S is also divisible by 3, then N is divisible by 3.
Explanation
This is the standard proof using the fact that 10^i ≡ 1 mod 3.
- 19
Prove the three-digit test for divisibility by 8: if 2×(10a2 + a1) + a0 is divisible by 8, then N = 100a2 + 10a1 + a0 is divisible by 8.
Model answer
N - [2(10a2 + a1) + a0] = 100a2 + 10a1 + a0 - 20a2 - 2a1 - a0 = 80a2 + 8a1 = 8(10a2 + a1). So N and the test expression differ by a multiple of 8. Hence if the test expression is a multiple of 8, so is N.
Explanation
This directly shows the relationship.

Ask anything
We've read this whole study set, so questions about it get the best answers.