Prime Reciprocals Analysis
- 15Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
Who was William Shanks, and what was his primary mathematical pursuit in his spare time?
15 questions
- 1
Who was William Shanks, and what was his primary mathematical pursuit in his spare time?
Model answer
William Shanks was a recreational mathematician from the mid to late 1800s who ran a boarding school. In his spare time, he diligently calculated reciprocals of prime numbers to determine the number of digits in their repeating period.
Explanation
William Shanks was a fascinating figure, often described as a 'recreational mathematician' because his intense mathematical work was pursued outside of his main profession, which was running a boarding school. His passion was for calculation, specifically focusing on the reciprocals of prime numbers. He would compute 1/p for various primes p and then meticulously determine the length of the repeating decimal expansion (the 'period'). This was an incredibly laborious task, especially given the mathematical tools available in the 19th century.
- 2
What kind of data did William Shanks send to the Royal Society?
Model answer
Shanks sent handwritten results detailing the reciprocals of prime numbers, specifically the number of figures in the period of each prime's reciprocal.
Explanation
The Royal Society received William Shanks' detailed, handwritten results. These documents specifically enumerated 'Reciprocals of Prime Numbers' and, for each prime, indicated 'the number of figures in the period of the reciprocal of each prime.' This was a collection of his laborious calculations spanning many years.
- 3
Describe the format in which Shanks presented his findings for reciprocals of prime numbers.
Model answer
Shanks' tables listed prime numbers in the left-hand columns and the number of figures in the period of the reciprocal of each prime in the right-hand columns. He organized these in batches, compiled over several years.
Explanation
Shanks' presentation was methodical: the left-hand columns of his tables contained the prime numbers themselves, while the corresponding right-hand columns indicated the length of the repeating part (the period) of their reciprocals. He worked on these calculations in large batches, often hundreds or thousands at a time, and the entire project spanned many years, demonstrating his dedication to this mathematical endeavor.
- 4
What is the 'period of the reciprocal of a prime' that William Shanks calculated?
Model answer
The 'period of the reciprocal of a prime' refers to the number of digits that repeat in the decimal expansion of 1 divided by that prime number.
Explanation
When you divide 1 by a prime number (e.g., 1/7=0.142857142857...), the decimal expansion can either terminate or repeat. For prime numbers (other than 2 and 5), the decimal expansion is always non-terminating and repeating. The 'period' is the sequence of digits that repeats indefinitely. For 1/7, the period is '142857', which has 6 digits. Shanks' goal was to find the length of this repeating sequence for many different primes.
- 5
How was Shanks' calculation for 1 divided by 60,013 described?
Model answer
Shanks claimed that the reciprocal of 60,013 would repeat after 5,001 digits, meaning 1/60,013 would display 5,001 unique digits before the sequence began repeating.
Explanation
For the prime number 60,013, William Shanks' results indicated that its reciprocal, 1/60,013, would have a repeating decimal period of 5,001 digits. This means that if one were to perform the long division, the first 5,001 digits after the decimal point would appear 'random' or unique, and then the entire 5,001-digit sequence would begin to repeat itself.
- 6
What tool was used to verify Shanks' results during the video, and what was its outcome for 61,561?
Model answer
A Python software named 'ShanksBot' was used to verify Shanks' results. For the prime 61,561, both Shanks' original calculation and the ShanksBot agreed that its reciprocal had a period of 405 digits.
Explanation
To demonstrate the accuracy of William Shanks' work, a Python program dubbed 'ShanksBot' was developed. This software could automatically calculate the period length for reciprocals of primes. When tested with the prime number 61,561, the ShanksBot produced a result of 405 digits for its reciprocal's period, perfectly matching William Shanks' handwritten entry. This agreement between 19th-century manual calculation and modern computation highlights the precision of Shanks' efforts.
- 7
Explain the long division process for finding the reciprocal of 7, specifically how the repeating pattern is identified.
Model answer
To find 1/7, long division starts by dividing 1 by 7. Remainders are generated at each step, and the process continues until a remainder is encountered that has been seen before. When the remainder '1' reappears, it signifies the start of the repeating sequence of digits, which for 7 is '142857'.
Explanation
The long division of 1 by 7 proceeds as follows:
- 1extdividedby7 is 0 with a remainder of 1 (or 10 divided by 7 is 1 with a remainder of 3). So the first digit is 0.1.
- Bring down a zero to make 30. 30extdividedby7 is 4 with a remainder of 2. Next digit is 4.
- Bring down a zero to make 20. 20extdividedby7 is 2 with a remainder of 6. Next digit is 2.
- Bring down a zero to make 60. 60extdividedby7 is 8 with a remainder of 4. Next digit is 8.
- Bring down a zero to make 40. 40extdividedby7 is 5 with a remainder of 5. Next digit is 5.
- Bring down a zero to make 50. 50extdividedby7 is 7 with a remainder of 1. Next digit is 7. At this point, the remainder is 1, which is the same as the initial dividend (or the number after the decimal point, 10). Since the remainder 1 has recurred, the sequence of quotients (digits) will also repeat. Thus, 1/7=0.142857142857..., with a period of 6 digits.
- 8
Do all primes result in an infinite repeating decimal for their reciprocals?
Model answer
Yes, all prime numbers, except for 2 and 5, will result in reciprocals with infinite repeating decimal expansions.
Explanation
This is a fundamental property of rational numbers. A fraction 1/p (where p is a prime) will have a terminating decimal representation if and only if the prime factors of its denominator are only 2 and/or 5. Since primes other than 2 and 5 do not have these factors, their reciprocals will always result in an infinite, repeating decimal expansion.
- 9
In the context of long division for 1/p, what determines the maximum possible length of the repeating period?
Model answer
The maximum possible length of the repeating period for 1/p is p−1. This occurs because each remainder in the long division must be an integer between 1 and p−1, and once a remainder repeats, the decimal sequence will also repeat.
Explanation
During the long division of 1/p, where p is a prime, the remainder at each step will always be less than p and greater than 0. If a remainder were 0, the decimal would terminate, which doesn't happen for primes other than 2 and 5. If a remainder were equal to p, it would imply an error in division. Therefore, the possible remainders are 1,2,...,p−1. There are exactly p−1 such unique possible remainders. Once any remainder is repeated, the sequence of subsequent digits in the quotient will also repeat, creating the decimal period. The 'worst-case scenario' is that all p−1 possible remainders occur before a repeat, leading to a period length of p−1.
- 10
Give an example of a prime number for which its reciprocal's period length is the maximum possible, p−1.
Model answer
The prime number 60,017 is an example where its reciprocal's period length is 60,016, which is p−1.
Explanation
For a prime p, if the reciprocal 1/p has a period length of p−1, it means that all possible non-zero remainders (from 1 to p−1) occurred during the long division process before any remainder repeated. This is the maximum possible period length. The example of 60,017, with a period of 60,016 digits, perfectly illustrates this 'worst-case scenario' in terms of period length.
- 11
What did William Shanks' systematic errors in his corrections suggest about his calculation methods?
Model answer
Shanks' consistent corrections, often involving doubling or halving his period lengths, suggest he used a systematic technique possibly involving powers of two or similar steps, rather than direct long division for every digit.
Explanation
If Shanks had been performing simple long division by hand for tens of thousands of digits, his errors would likely have been more random or arithmetic in nature. However, the observation that his corrections frequently involved either doubling or halving the reported period length points to a specific algorithmic approach. This implies he might have been using a method that involved modular arithmetic, properties of powers, or some form of repetitive bisection or multiplication, where a missed step or an extra step could systematically alter the result by a factor of two.
- 12
According to Shanks' note at the end of his work, what was the practical application of his table of prime reciprocals?
Model answer
Shanks stated that his table could be used to readily find the number of figures in the period of reciprocals of composite numbers by finding the least common multiple of the period lengths of their prime factors.
Explanation
Shanks believed his work was not merely an academic exercise. In a note, he explained that understanding the period lengths of prime reciprocals was useful for determining the period lengths of composite numbers. Specifically, one could achieve this by calculating 'the least common multiple of several numbers of figures in the...' associated prime reciprocals. This implies a method where if a composite number C is factored into its prime components p1,p2,...,pn, the period length of 1/C could be derived from the period lengths of 1/p1,1/p2,...,1/pn using the least common multiple (LCM) function.
- 13
What is a 'primitive root' in the context of prime number reciprocals?
Model answer
A primitive root, specifically 10 as a primitive root for a prime p, means that the powers of 10 modulo p generate all numbers from 1 to p−1. This property directly relates to the reciprocal of p having the maximum possible period length of p−1.
Explanation
In modular arithmetic, for a prime number p, an integer g is a primitive root modulo p if the powers of g (i.e., g1,g2,g3,...,gp−1) are distinct modulo p and cover all integers from 1 to p−1 (when taken modulo p). When 10 is a primitive root modulo p, it means that the remainders generated during the long division of 1/p will cycle through all possible non-zero remainders (1,2,...,p−1) before repeating. This directly leads to the reciprocal 1/p having the maximum possible period length of p−1.
- 14
How does the concept of a primitive root relate to the maximum period length of a reciprocal?
Model answer
If a prime number p has 10 as a primitive root, its reciprocal 1/p will have the maximum possible period length, which is p−1. This is because 10 being a primitive root ensures all p−1 possible remainders appear before the sequence repeats.
Explanation
For a prime p, the period length of its reciprocal 1/p is closely tied to the multiplicative order of 10 modulo p. If 10 is a primitive root modulo p, it means that 10^k otuf ext{congruent to} uf 1 ext{ (mod } p ext{)} for k<p−1. The order of 10 modulo p is then p−1. This multiplicative order directly corresponds to the length of the repeating decimal for 1/p. Therefore, if 10 is a primitive root, the reciprocal will indeed have the maximum possible period length of p−1.
- 15
What is a 'Reptend prime'?
Model answer
A Reptend prime is a prime number whose reciprocal has the maximum possible period length, which is p−1. This occurs when 10 is a primitive root modulo that prime.
Explanation
The term 'Reptend prime' is used to describe primes that exhibit the 'worst-case scenario' in terms of reciprocal period length. For such primes p, the decimal expansion of 1/p contains p−1 repeating digits. This property is mathematically linked to 10 being a primitive root modulo p, meaning that the powers of 10 modulo p generate all possible non-zero residues before repeating. For example, 60,017 is a Reptend prime because its reciprocal has a period of 60,016 digits.

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