The Hilbert basis theorem makes a Noetherian ring. Reversing the inclusion of ideals shows that its Zariski-closed subsets satisfy the descending-chain condition, so every affine variety is a Noetherian topological space.
Suppose some nonempty closed subset had no finite decomposition into irreducible closed subsets. It would be reducible, so it could be written
with proper closed subsets. At least one of these would again admit no finite irreducible decomposition. Repeating that choice would produce an infinite strictly descending chain of closed subsets, contradicting Noetherianity. Therefore
Removing any member contained in another leaves exactly the irreducible components.
Euler's criterion states that for an odd prime number and ,
where the right-hand side is the Legendre symbol.
Let be a primitive root modulo . Its multiplicative order is , so . This power has square , and the only roots of modulo the odd prime are . Therefore
Euler's criterion now gives , so every primitive root is a quadratic nonresidue.
Now let be a Fermat prime, with . The number of primitive roots modulo is
There are also exactly quadratic nonresidues. Since every primitive root is a nonresidue, these equally large sets coincide. Thus every quadratic nonresidue modulo is a primitive root, as summarized by quadratic nonresidues modulo a Fermat prime.
Finally, and . Quadratic reciprocity therefore gives
Hence is a quadratic nonresidue modulo , and consequently

There are unlisted articles, also show them or only show them.