In number theory, a balanced prime is a prime number with equal-sized prime gaps above and below it, so that it is equal to the arithmetic mean of the nearest primes above and below. Or to put it algebraically, the th prime number is a balanced prime if
For example, 53 is the sixteenth prime; the fifteenth and seventeenth primes, 47 and 59, add up to 106, and half of that is 53; thus 53 is a balanced prime.
Three consecutive primes in arithmetic progression is sometimes called a CPAP-3. A balanced prime is by definition the second prime in a CPAP-3. As of 2023[update] the largest known CPAP-3 has 15004 decimal digits and was found by Serge Batalov. It is:[1]
(The value of n, i.e. its position in the sequence of all primes, is not known.)
Generalization
The balanced primes may be generalized to the balanced primes of order n. A balanced prime of order n is a prime number that is equal to the arithmetic mean of the nearest n primes above and below. Algebraically, the th prime number is a balanced prime of order if
Thus, an ordinary balanced prime is a balanced prime of order 1. The sequences of balanced primes of orders 2, 3, and 4 are A082077, A082078, and A082079 in the OEIS respectively.
See also
Strong prime, a prime that is greater than the arithmetic mean of its two neighboring primes
Interprime, a composite number balanced between two prime neighbours