Digit puzzles with divisibility drills

Find missing digits or build the greatest or least number from given digits so that combined divisibility rules hold (e.g. 3A5B divisible by 36, digits 1-5 each used once).

Free, timed SHSAT practice sets on digit puzzles with divisibilityβ€” every question includes a full worked explanation, and there's no account required.

Loading questions…

How to solve digit divisibility puzzles

Step 1: Split the divisor into parts that share no factor and have easy tests: \(72 = 8 \times 9\), \(36 = 4 \times 9\), \(24 = 8 \times 3\), \(12 = 4 \times 3\), \(15 = 3 \times 5\). Do not use \(6 \times 12\), because 6 and 12 share factors.

Step 2: Use each test. The 4, 8 and 5 tests use the last digits. The 3 and 9 tests use the digit sum.

Example: \(5A2B\) is divisible by 72. For 9, the digit sum \(7 + A + B\) must be 9 or 18, so \(A + B\) is 2 or 11. For 8, the last three digits \(A2B\) must be divisible by 8. Only \(A = 3\), \(B = 8\) passes (\(328 = 8 \times 41\)), so \(A + B = 11\).

Greatest or least number: start from the largest (or smallest) possible arrangement and go down (or up) until one passes every test. Use each digit only once.

Common traps: checking only one of the two tests, and putting 0 as the first digit.

Worked examples

Example 1.
The four-digit number \(A71B\), where \(A\) and \(B\) are digits, is divisible by 36. What must be the value of \(A + B\)?
Show answer and explanation
Answer:
A

Divisible by 36 means divisible by both 4 and 9. Check each rule: the 4 rule limits the last digits, and the 9 rule limits the digit sum. Only \(A=4, B=6\), \(A=8, B=2\) pass both (e.g. 4716), so \(A+B = 10\). Checking only the 4 rule (\(A=1, B=2\) passes it) gives \(3\). Checking only the 9 rule (\(A=1, B=0\) passes it) gives \(1\). Checking only the 4 rule (\(A=2, B=2\) passes it) gives \(4\).

Example 2.
The four-digit number \(A95B\), where \(A\) and \(B\) are digits, is divisible by 12. How many different pairs of digits \((A, B)\) are possible?
Show answer and explanation
Answer:
C

Divisible by 12 means divisible by both 4 and 3; test every digit pair against both rules. The pairs that work are (1, 6), (2, 2), (4, 6), (5, 2), (7, 6), (8, 2): 6 pairs. Checking only the 4 rule gives \(18\). Checking only the 3 rule gives \(30\). Multiplying the 6 possible values of \(A\) by the 2 possible values of \(B\) gives \(12\).

Example 3.
The digits 3, 4, 5, 6, 9 are each used exactly once to form a three-digit number and a two-digit number. The three-digit number must be divisible by 4, and the two-digit number must be divisible by 6. What is the greatest possible difference between the three-digit number and the two-digit number?
Show answer and explanation
Answer:
D

Make the three-digit number as large as possible and the two-digit number as small as possible, while the three-digit number is divisible by 4, the two-digit number is divisible by 6, and every digit is used once. The best choice is 936 and 54: \(936 - 54 = 882\). Ignoring that the three-digit number must be divisible by 4 (\(954 - 36\)) gives \(918\). Ignoring that the two-digit number must be divisible by 6 (\(964 - 35\)) gives \(929\). Using a digit more than once (\(996 - 36\)) gives \(960\).