Pick any three-digit number, say 326, and write it twice to get 326326. This new number divides exactly by 7, the answer divides exactly by 11, that answer divides exactly by 13, and what remains is 326 again. Nothing about 326 was chosen to suit these divisors, so why does every division come out exact? This page shows that writing a number twice is a hidden multiplication by 1001, and that 1001 is exactly 7 times 11 times 13.
Key terms
The repeated number trick
Definition The repeated number trick starts from a block of three digits, which stands for a whole number . Without a leading zero the block runs from 100 to 999. If leading zeros are allowed, as in 042, the block still fills all three places, and can be any whole number from 0 to 999. Write the block twice in a row, keeping its digits in the same order, so that 326 becomes 326326. The trick claims that the result is divisible by 7, by 11 and by 13, and that dividing it by these three numbers one after another, in any order, gives back , with every division exact. The claim holds for every block, because the written number always equals
and . The three divisors belong to this exact setup, a block of three digits written twice. Blocks of another length, or more than two copies, give other multipliers, which need not contain 7, 11 and 13.
In plain words Writing a number twice secretly multiplies it by 1001, and 1001 is 7 times 11 times 13. Dividing by 7, 11 and 13 only takes that 1001 back out, so the number you started with is all that remains.
Example Take the block 326. The three divisions give
and none of them leaves a remainder. The block itself is not divisible by 7, since . The factor 7 in 326326 comes from the 1001, not from the block.
Digit concatenation
Definition Digit concatenation means writing the digits of one number directly after the digits of another, so that 326 followed by 326 gives 326326. Place value turns this into arithmetic. Let , let be a whole number, and let be a whole number with , written with exactly digits by adding leading zeros when it has fewer. Then the digits of followed by the digits of form the number
Each digit of moves places to the left, which multiplies its value by . In particular, a block of digits that stands for , written twice, gives the number
The width of the right copy decides the multiplier, so the width has to be fixed before the block is written twice.
In plain words Writing digits side by side is not adding them. The copy on the left is pushed into higher places, so it counts many times its face value. A three-digit block pushed three places to the left counts a thousand times as much.
Example The left copy in 326326 stands for 326000 and the right copy for 326, so
The block 042 has width three, so writing it twice gives 042042, which stands for . Writing 42 twice without the leading zero gives instead, the two-digit version of the construction. The zero adds nothing to the value of the block, but it keeps the right copy three places wide, so the left copy moves three places and the multiplier is 1001.
Divisibility
Definition For whole numbers and , the number is divisible by when for some whole number . Then is a divisor of , written , and the division is exact, with quotient and remainder 0. When a number is written as a product of whole numbers, each factor, and each product of some of the factors, divides it. Being divisible by two numbers does not by itself make a number divisible by their product. When the two numbers have no common divisor greater than 1 it does, and otherwise it can fail.
In plain words A division is exact when nothing is left over. Once a number is written as a product, you can read off divisors without dividing, because every factor in the product is one of them.
Example Take the block 582, so the written number is . Divide by 13 first.
After the first division the quotient is , which still shows the factors 7 and 11, so the next divisions are exact as well. Changing the order changes the numbers in between but not the end result. Compare the number 12, which is divisible by 4 and by 6 but not by their product 24. The rule about products cannot be used there, because 4 and 6 share the divisor 2.
Prime factorization
Definition A prime number is a whole number greater than 1 whose only positive divisors are 1 and itself, such as 2, 3, 5, 7, 11 and 13. The fundamental theorem of arithmetic says that every whole number greater than 1 can be written as a product of primes, and that this product is unique apart from the order of the factors. That product is the prime factorization of the number. It shows every divisor at once, because the positive divisors of a whole number greater than 1 are exactly the products of some of its prime factors, each used at most as often as it appears in the factorization, with the product of none of them counted as 1. It follows that a prime that divides a product of whole numbers divides at least one of the factors.
In plain words Primes are the building blocks of multiplication. Break a number into primes once, and you know every exact division it allows.
Example To factor 1001, try the primes in order. It is odd, its digit sum 2 is not a multiple of 3, and it does not end in 0 or 5, so 2, 3 and 5 fail. The next prime works, since , and then . So the prime factorization is
and the positive divisors of 1001 are the eight numbers 1, 7, 11, 13, 77, 91, 143 and 1001. Because 7, 11 and 13 are different primes, a whole number is divisible by all three exactly when it is divisible by 1001.
The number 1001
Definition The number 1001 equals , and its prime factorization is . It is the multiplier hidden in the repeated number trick, since a block of three digits that stands for , written twice, makes . The written number is the product , so dividing it by any one of the three primes leaves a product that still contains the other two. The three divisions are therefore exact in each of the six possible orders, and they always end at . For a block of digits written twice, with the width kept fixed, the multiplier is instead, and its factors depend on . Repeating a block more than twice changes the multiplier again.
In plain words The trick is really a fact about 1001, not about the digits you choose. Change the length of the block or the number of copies, and you get a different hidden multiplier with its own divisors.
Example The multipliers for blocks of one to six digits written twice are these.
| Block length | Multiplier | Prime factorization |
|---|---|---|
| 1 | 11 | 11, a prime |
| 2 | 101 | 101, a prime |
| 3 | 1001 | |
| 4 | 10001 | |
| 5 | 100001 | |
| 6 | 1000001 |
Only the length 3 in the table brings all of 7, 11 and 13. Over all lengths, 7, 11 and 13 all divide exactly when is 3, 9, 15 and so on, the lengths that leave remainder 3 on division by 6. Three copies of the block 326 give
where 333667 is prime. The prime 7 divides neither 1001001 nor 326, so it does not divide 326326326, which leaves remainder 4 on division by 7.
Check yourself
- Write the block 731 twice and divide the result by 11, then by 13, then by 7. What are the numbers along the way, and is 731 itself divisible by any of the three divisors?
Show the answer
The written number is , and the divisions give
with no remainders. The block itself factors as , so none of 7, 11 and 13 divides it. All three divisors come from the multiplier 1001.
- A friend wants to run the trick with the block 085 and writes 8585. Which number should the friend have written, and is 8585 divisible by 7, 11 or 13?
Show the answer
Keeping the width at three places gives 085085, which stands for . It works as the trick promises, since , then , then . The number 8585 is the two-digit construction applied to 85, so
None of 7, 11 and 13 appears in this prime factorization, so none of them divides 8585. Direct division agrees, with remainders 3, 5 and 5 on division by 7, 11 and 13. The leading zero has no value of its own, but dropping it changes the multiplier from 1001 to 101.
- Extend the trick to four-digit blocks. Write 2026 twice, and find two divisions that bring back 2026. Is the result divisible by 7?
Show the answer
The right copy is four places wide, so the left copy moves four places and
Since , the divisions and bring the block back, in either order. The prime 7 does not divide 10001, which leaves remainder 5, and it does not divide , which leaves remainder 3. A prime that divides a product divides one of its factors, so 7 does not divide 20262026. Its remainder is 1. For four-digit blocks the divisors that always work are 73 and 137, not 7, 11 and 13.