Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Exact counts and sharp growth for OEIS A222759, first comment (12 March 2013): extending Glaisher (1900)

Source paper: Haobo Ma and Wenlin Zhang, version 2, CC BY 4.0. The question comes from T. D. Noe’s first comment on OEIS A222759, dated March 12, 2013.

How large can a remainder be?

Fix a positive integer . For each prime , there are ways to choose objects from objects. Divide that number by and take the least nonnegative remainder, . Call an exception if that remainder is not the integer itself. Write for the set of exception primes and for its size.

Take and . The coefficient has remainder upon division by . Even though and are congruent modulo , the remainder is not . In fact, there is no need to compute the coefficient: the remainder is always between and . If , then must be counted, including at equality.

If , then fits in the remainder range, but that alone does not make it the remainder. For , Glaisher’s congruence supplies the missing fact: is divisible by . So the remainder really is . Two primes need their own calculations. Below , count as an extra exception when leaves remainder or upon division by . Below , count as an extra exception when leaves remainder upon division by .

Count the steps instead of computing the coefficients

From onward both extra conditions disappear. Counting exception primes is then the same as counting prime cubes at most .

The early drop from to shows why this is not always an increasing count. But the third exception first appears at the cube of the third prime, . After that, each new prime cube adds one to the count. Write for the -th prime, starting at . For , there are at least exceptions exactly when . Noe’s condition was : take the cube, then use it as an index in the prime list. For the older sufficient threshold is ; the first value that actually works is .

How many is not the same as how far

OEIS A222760 asks for the least prime from which that prime and every later prime are free of exceptions. This depends on the last exception, not just how many there are. At , the only exception is . Although itself is good, starting at still leaves ahead, so the answer is . For every other input the exceptions are an initial segment of the primes (possibly empty), so the answer is the -st prime.

Film 010 · The remainder range · 1:12

Follow the remainder range to the first appearance of a third exception.

The remainder-range argument also works modulo and ; in those cases even and need no extra corrections. Do not extrapolate the congruence to higher powers: has remainder , not , modulo for every . This counterexample defeats a uniform congruence, but does not count the exceptions at higher powers.

Exact statements and proofs give the formulas, thresholds, and the scope of the existing Lean proof.