Lean, informalized

Nielsen & Chuang · Chapter 5, The quantum Fourier transform and its applications · p. 234

Exercise 5.19 - The least odd composite number that is not a perfect power

Fifteen is the smallest number that needs order finding.

Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its declaration both in Lean and in words.

The Exercise

Shor’s algorithm factors a composite number NN by reducing factoring to order finding, that is, to finding the period of axmod⁡Na^x \bmod N for a number aa coprime to NN, the one step that runs on a quantum computer. Some NN never reach that step, because a classical computation already gives a factor: an even NN has the factor 22, and a perfect power N=mkN = m^k with k≥2k \geq 2 has the factor mm. The exercise is to show that N=15N = 15 is the smallest number for which the order finding step is needed.✦

Numbers That Need Order Finding

A natural number NN needs order finding if it is greater than 11 and not prime, odd, and not a perfect power mkm^k with natural numbers mm and k≥2k \geq 2: N>1,N not prime,N odd,N≠mkfor all m,k∈ℕ with k≥2.N > 1, \qquad N \text{ not prime}, \qquad N \text{ odd}, \qquad N \neq m^k \quad \text{for all } m, k \in \mathbb{N} \text{ with } k \geq 2.(1)✦

The Claim

Theorem 1. Fifteen is the least natural number that needs order finding: 15=min⁡{N∈ℕ:N needs order finding}.15 = \min\,\{\, N \in \mathbb{N} : N \text{ needs order finding} \,\}.(2)✦

What Is Checked

The claim is stated over the natural numbers and the property (1) of needing order finding, with prime and perfect power in their usual sense.