Legendre prime-counting formula 2026-10-05
For , let be the primes at most . The inclusion-exclusion principle counts unsieved positive integers by . These are and the remaining primes, since every composite number has a prime factor at most its square root. Hence for . This is a prime-counting identity, distinct from the Legendre formula for factorial valuations.
Number theory Created 2026-09-24 Updated 2026-09-24
Past exam of the mathematics course of the University of Cambridge 2015 ia Paper 4 1E b Solution Created 2026-09-24 Updated 2026-10-06
Write the composite number as , with . If , both and occur as distinct factors of the factorial , so their product divides that factorial.
Past exam of the mathematics course of the University of Cambridge 2017 ii Paper 2 1G Solution Created 2026-09-24 Updated 2026-10-05
The Legendre prime-counting formula counts positive integers surviving a finite prime sieve. For , put and let be the primes at most . By inclusion-exclusion principle, the number of positive integers at most divisible by none of these primes isThe empty product is . Every composite number at most has a prime factor at most , so the survivors are precisely and the primes between and . ConsequentlyFor , the sieving primes are , andAs a direct check, the primes are .
Past exam of the mathematics course of the University of Cambridge 2017 ii Paper 3 1G Solution Created 2026-09-24 Updated 2026-10-05
An Euler pseudoprime is an odd composite number with satisfying , where the right side is the Jacobi symbol. A weaker convention requires only ; it is distinguished below. A strong pseudoprime, with and odd, satisfies or for some .
By the Chinese remainder theorem for unit groups, the unit group modulo is . Modulo , . Thus the only possible sign in is positive. Modulo , writing for a primitive root, the condition is , equivalently . Consequently has multiplicative order dividing in each factor. Its square is either or in each factor, but these signs must agree: modulo , the Legendre symbol is for square and for square , and the same is true modulo . The Euler pseudoprime condition additionally requires the product of those Legendre symbols to be . HenceEach sign has two roots modulo each prime, hence four roots modulo . There are eight pseudoprime bases modulo under the Jacobi symbol convention. Under the weaker sign-only convention there are instead sixteen pseudoprime bases, since the two signs of the squares need not agree; the stated equivalence therefore specifically uses the Jacobi symbol convention.
For the strong pseudoprime condition, . Since the unit group has exponent of a finite group , the only possibilities are or . The six pseudoprime bases are . For example , while has but . Thus the strong-pseudoprime pseudoprime bases are not a subgroup.
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 1 1I b Solution Created 2026-09-24 Updated 2026-10-03
An odd composite number with is a Fermat pseudoprime to base whenFor , the Chinese remainder theorem for unit groups reduces this condition to congruences modulo and . Modulo , Fermat's little theorem givesso exactly when . Modulo , the unit group has order , soThe equation in the cyclic group has solutions, namely .
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 3 1H Solution Created 2026-09-24 Updated 2026-09-29
Let be the unit group of residue classes modulo , and partition it into the set of bases satisfying the displayed congruence and the set of Euler witnesses that do not. If , multiplication by maps injectively into : indeed, if and also lay in , then the multiplicativity of the Jacobi symbol would giveCancelling the invertible congruence for would say that , a contradiction. Hence , so at least half of the coprime bases are witnesses.
It remains to construct one witness for every odd composite number . If is not squarefree, choose an odd prime number with . The Chinese remainder theorem gives a unit such that for the full power and modulo every other prime-power factor. The binomial theorem givesSince , this is neither nor modulo , whereas the Jacobi symbol is always or . Thus is a witness.
If is squarefree and composite, choose distinct primes . By the Chinese remainder theorem, choose to be a quadratic nonresidue modulo and to satisfy modulo every other prime divisor of . Then , while , so the Euler congruence again fails. This proves the existence of an Euler witness for every odd composite integer.
Past exam of the mathematics course of the University of Cambridge 2023 ii Paper 3 1G c Solution Created 2026-09-24 Updated 2026-10-03
Suppose that the positive integer is a decisive number. For every prime number , the composite number satisfies . It therefore cannot be coprime to , so .
The product of all prime numbers below consequently divides . Taking natural logarithms givesChanging the strict endpoint can remove at most one prime term. By part b, for every sufficiently large the right-hand side is at least, for example, . This is impossible for sufficiently large , sinceThus every decisive number lies below one fixed bound, and only finitely many integers can do so.
Semiprime 2026-10-06
A semiprime is a composite number that is a product of exactly two prime numbers, counted with multiplicity. For example, and are semiprimes. Distinct factors give for the Euler totient function, whereas equal factors give . This distinction matters when constructing a uniform coprime state for a semiprime.