Mathwords logoMathwords

Thabit Number — Definition, Formula & Example

A Thabit number is a number you get by doubling 3 some number of times and then subtracting 1. The sequence starts 2, 5, 11, 23, 47, 95, 191, and a Thabit number that is prime is called a Thabit prime.

For an integer n≥0n \ge 0, the nnth Thabit number is Tn=3⋅2n−1T_n = 3\cdot 2^n - 1. Equivalently, T0=2T_0 = 2 and Tn+1=2Tn+1T_{n+1} = 2T_n + 1. In binary, TnT_n is written as the digits 1010 followed by nn ones. For example, T3=23=101112T_3 = 23 = 10111_2. Every TnT_n satisfies Tn≡2(mod3)T_n \equiv 2 \pmod 3, so no Thabit number is divisible by 3.

Key Formula

Tn=3⋅2n−1,n=0,1,2,…T_n = 3\cdot 2^n - 1, \qquad n = 0, 1, 2, \dots
Where:
  • TnT_n = the nth Thabit number
  • nn = a nonnegative integer index (the exponent of 2)

Worked Example

Problem: Thabit ibn Qurra's rule (9th century) says: for n>1n > 1, if p=3⋅2n−1−1p = 3\cdot 2^{n-1} - 1, q=3⋅2n−1q = 3\cdot 2^n - 1, and r=9⋅22n−1−1r = 9\cdot 2^{2n-1} - 1 are all prime, then 2npq2^n pq and 2nr2^n r form an amicable pair. Each number in such a pair equals the sum of the other's proper divisors. Apply the rule with n=4n = 4.
Step 1: Compute pp and qq. These are the consecutive Thabit numbers T3T_3 and T4T_4. Compute rr as well. All three are prime, so the rule applies.
p=3⋅23−1=23,q=3⋅24−1=47,r=9⋅27−1=1151p = 3\cdot 2^3 - 1 = 23, \quad q = 3\cdot 2^4 - 1 = 47, \quad r = 9\cdot 2^7 - 1 = 1151
Step 2: Build the two numbers of the pair.
24⋅23⋅47=17296,24⋅1151=184162^4\cdot 23\cdot 47 = 17296, \qquad 2^4\cdot 1151 = 18416
Step 3: Check the pair with the divisor-sum function σ\sigma. It is multiplicative, and σ(16)=31\sigma(16) = 31. Subtract each number from its own σ\sigma to get the sum of its proper divisors.
σ(17296)−17296=31⋅24⋅48−17296=18416,σ(18416)−18416=31⋅1152−18416=17296\sigma(17296) - 17296 = 31\cdot 24\cdot 48 - 17296 = 18416, \qquad \sigma(18416) - 18416 = 31\cdot 1152 - 18416 = 17296
Answer: The rule with n=4n = 4 produces the amicable pair 17,296 and 18,416, known to the medieval mathematicians Ibn al-Banna and al-Farisi and rediscovered by Fermat in 1636. Each number is the sum of the other's proper divisors. With n=2n = 2 the same rule gives the famous pair 220 and 284.

Why It Matters

Thabit numbers gave the first general method for constructing amicable numbers. Euler later extended that method. Among known values, the rule succeeds only for n=2,4,7n = 2, 4, 7. Today, distributed projects such as PrimeGrid's 321 Prime Search hunt for very large Thabit primes. These searches use primality tests built for numbers of the form k⋅2n±1k\cdot 2^n \pm 1, a standard topic in computational number theory.

Common Mistakes

Mistake: Assuming every Thabit number is prime because the first five (2, 5, 11, 23, 47) are.
Correction: The pattern breaks at n=5n = 5: T5=95=5⋅19T_5 = 95 = 5\cdot 19. Only certain exponents give primes, such as n=0,1,2,3,4,6,7,11,18n = 0, 1, 2, 3, 4, 6, 7, 11, 18. Test each TnT_n for primality on its own.

Related Terms

  • Modular Arithmetic — Shows why every Thabit number leaves remainder 2 mod 3
  • Modulo n — Remainder notation used to screen Thabit numbers for factors
  • Fermat Prime — Another special prime form built from powers of two
  • Primality Test — Checks which Thabit numbers are Thabit primes
  • Amicable Pair — Thabit primes generate amicable pairs in Thabit ibn Qurra's rule