How many of the first ten numbers of the sequence are prime numbers?
- A)
- B)
- C)
- D)
- E)
Answer
A
Key insight
Every term is a product: 121 = 11 × 11, 11211 = 111 × 101, 1112111 = 1111 × 1001. The pattern never stops, so no term is prime.
Solution
Testing big numbers like for primality by hand is hopeless, so look for a pattern in how the terms are built.
1. Try to factor the first few terms.
Each term is "a number made of ones" times "a , some zeros, and a ".
2. See why the multiplication works. Take . Multiplying by means adding and :
The two copies of are shifted and overlap in just one column, where . Every other column has a single .
3. It works for every term. The term with a block of ones on each side of the equals (one more than that block) times (, then zeros, then ). For example, the 4th term . The same overlapping-by-one-column addition gives it every time.
4. So no term is prime. Both factors are bigger than in every case, so each term is a product of two smaller whole numbers. None of the first ten terms is prime.
The answer is .
Why this works
A number described by its digit pattern usually has a simple multiplication hiding behind it. Here, the single in the middle is the mark left when two shifted copies of are added and overlap in one column. Factoring the first two or three terms and then explaining the pattern is much faster and safer than testing big numbers for primes.
Alternative approach
With algebra: let , where is the number of ones on each side of the . The term equals (with ones) plus , because adding turns the middle into a . The number with ones is , so the term is
Here is the number made of ones and , which is the same factoring as above.
The trap
Checking only 121 = 11 × 11, finding no small factor of the bigger terms, and guessing that some of them are prime.
Concise solution
The th term consists of ones, a , and more ones. Try to factor the first few:
This pattern always holds. Let be the number made of ones. Then
The first summand is ones followed by zeros; the second is ones. When added, they overlap in exactly one digit position (the st from the right), which becomes , and every other position gets a single . The result is ones, a , and ones: precisely the th term.
Both factors and exceed , so every term is composite. None of the first ten (or of any) terms is prime.
The answer is .
Review in the AoPS books
- Introduction to Number Theory, Chapter 2: Primes and Composites
- Introduction to Number Theory, Chapter 8: Base Numbers
- Introduction to Algebra, Chapter 11: Special Factorizations (§11.2, §11.3, §11.5)
- Prealgebra, Chapter 15: Problem-Solving Strategies (§15.1)
Techniques
Apply an identity: SFFT, sum of squares, difference of cubes, Vieta · Compute small cases, spot the pattern, generalize