Algebraic number theory Created 2026-09-24 Updated 2026-10-18
Algebraic number theory studies integer factorization, divisibility, prime ideals, and units after extending the rational numbers to a number field. Its basic objects are a number field and its ring of integers : the counterparts of and . The field norm turns multiplication in into multiplication of rational numbers, and takes algebraic integers to integers. These connections let linear algebra and Euclidean geometry answer arithmetic questions.[ref]
https://www.jmilne.org/math/CourseNotes/ANT.pdf. J. S. Milne, Algebraic Number Theory, introduction and Chapter 2
A first example is with ring of integers . The integer acquires the factorizationEach factor has field norm . Neither is a unit, and each is an irreducible element: any factorization into two nonunits would factor the prime number into two integers of absolute value greater than one. Arithmetic in a larger ring thus reveals structure invisible in ordinary integer factorization.
There is also a complication: unique factorization of elements can fail, as in the failure of unique factorization in the ring of integers generated by square root of minus five. The general replacement is prime ideal factorization. The ideal class group measures the obstruction to making every ideal a principal ideal.
The historical motivation is visible in Richard Dedekind's original 1877 exposition: he begins with ordinary integer factorization, passes to Gaussian integers, and then uses a quadratic example to explain why ideals are needed. His later section establishes unique factorization of ideals in a number field. This is a direct record of the development of the theory, rather than a claim that all its ideas originated in one year.[ref]
https://www.numdam.org/item/BSMA_1877_2_1_1_69_0.pdf. Richard Dedekind, Sur la théorie des nombres entiers algébriques, 1877, Section II, §§5–10
[ref]https://www.numdam.org/item/BSMA_1877_2_1_1_207_1.pdf. Dedekind, continuation, 1877, §25
Congruence of squares 2026-10-14
A congruence of squares says that two integers have the same square modulo a positive integer . Factoring their difference of squares givesA useful integer factorization results when or is a proper divisor of . Divisibility of a product does not generally force divisibility of either factor by all of : different prime factors of can divide different parts of that product.
For , . ThereforeThus . The prime seven divides the difference, while eleven divides the sum. These computations already give a complete prime factorization because seven and eleven are prime numbers.
The Chinese remainder theorem explains the hidden sign choices. The four congruence classes solving have representatives . Modulo seven each is or ; modulo eleven each is or . Two independent sign choices produce four roots. The inputs thirteen and twenty agree modulo seven and disagree by sign modulo eleven, allowing their sum and difference to separate the two prime factors.
For distinct odd prime numbers , and , a solution with and modulo yields both proper factors by the two greatest common divisors. For a general composite integer, a proper divisor need not itself be prime; further factoring can remain. If or in the coprime case, the two calculations return and one instead. A factor base helps generate relations, but does not ensure every resulting relation is useful.
For historical context, Pomerance describes Kraitchik's 1920s enhancement of the difference-of-squares approach associated with Fermat: seek a difference that is a multiple of , rather than exactly . His account also notes antecedents in Gauss and Seelhoff, so this is not an attribution of the whole idea to a single inventor. [ref]
https://math.dartmouth.edu/~carlp/PDF/paper109.pdf. Carl Pomerance, A Tale of Two Sieves (1996), pp. 1474–1475: difference-of-squares and congruent squares
. Divisor Created 2026-10-03 Updated 2026-10-14
A divisor of an integer is an integer satisfying the divisibility relation . Equivalently, for some integer . The word positive matters when listing or counting divisors: unless signs are restricted, both and qualify.
The positive divisors of areTheir negatives are also divisors of , giving twelve integer divisors altogether. The same list of positive divisors works for . One has only the positive divisor , while zero has every integer as a divisor, including zero under our divisibility convention. A nonzero integer never has zero as a divisor.
For a positive integer , the positive divisors come in pairs whose product is . For , the pairs are , and . Each pair contains a divisor at most , so searching through candidate divisors up to the square root suffices to find all pairs. A pair repeats its own member only when is a perfect square; for , the middle pair is . Consequently a positive integer has an odd number of positive divisors exactly when it is a perfect square.
The prime factorization gives another complete description. Since , its positive divisors are precisely with and . These independent choices give positive divisors, the value of the divisor function . A prime factor is one particular kind of divisor; , and show that divisors need not be prime numbers.
Thinking in pairs connects exact grouping with integer factorization: twelve objects can form three groups of four or four groups of three. Thinking in shared divisors gives the greatest common divisor; for and , the positive common divisors are , and the largest is .
Factorization Created 2026-10-20 Updated 2026-10-24
Factorization expresses an object as a product of simpler factors. Integer factorization decomposes an integer; polynomial factorization decomposes a polynomial. The permitted factors depend on the ambient algebraic structure.
General number field sieve Created 2026-10-20 Updated 2026-10-31
A general-purpose classical integer factorization algorithm combining polynomial relations, arithmetic in number fields and sparse linear algebra to construct congruent squares modulo the input. Its familiar general-input complexity estimate is heuristic and subexponential in the input's value, roughly for input bits. This is not polynomial in the bit length. Special input structure, small factors and preprocessing can make other algorithms preferable.
The essential exponent condition isOtherwise the modular multiplicative inverse defining does not exist. For large prime numbers greater than three, this is equivalent toIf, for example, , the multiplicative group modulo has order divisible by three, and cubing is not a bijection; distinct plaintexts can have the same ciphertext. Unique decryption of all messages would then be impossible.
The prime numbers must also be distinct for the displayed totient formula, and selected sufficiently large and independently that integer factorization of is infeasible. A small factor, equal factors, or an exceptionally small difference between and gives an avoidable factorisation weakness. These size and generation conditions address security; the congruence condition addresses invertibility of cubing.
The fact that a nontrivial factor usually appears before a full return does not say that either event appears soon. Each iteration of the RSA cycling attack is inexpensive, but the number of iterations can be enormous. The multiplicative orders governing returns modulo and need not be small, and writing down a large return exponent does not provide a fast way to search the preceding iterations.
If this procedure factored arbitrary well-generated RSA cryptosystem moduli in feasible time with substantial success, it would solve the associated integer factorization problem efficiently. If it instead rapidly returned the predecessor of a ciphertext without factoring, it would solve the RSA inversion problem. Both are intended to be infeasible for appropriate parameters. Efficient integer factorization certainly breaks RSA cryptosystem security; the reverse implication for general RSA inversion problem algorithms is not known.
Thus the stated observation alone provides no serious general attack on well-generated parameters. It also does not prove a lower bound: special moduli or messages with short cycles can be weak, and the hardness claims are computational assumptions.
Past exam of the mathematics course of the University of Cambridge 2008 iii Paper 32 3 Solution Created 2026-10-03 Updated 2026-10-14
For a positive integer , a Dirichlet character modulo is a group homomorphism , extended periodically to the integers and set equal to zero on integers not coprime to . Its nonzero values are roots of unity. For , its Dirichlet L-function is the absolutely convergent Dirichlet seriesComplete multiplicativity of proves the Euler product by expanding each factor as a geometric series and applying unique integer factorization; absolute convergence justifies these rearrangements.
Suppose is a nonprincipal Dirichlet character. Choose a unit with . Multiplication by permutes a complete residue system, so , and the sum is zero. Consequently is bounded: complete periods contribute zero and the remaining incomplete period has at most terms. The Abel summation formula gives, initially for ,For the integral converges, locally uniformly together with its derivatives in , because on a compact set with the differentiated integrands are bounded by constants times . Thus holomorphy of a Dirichlet series from bounded partial sums proves
For a nonreal , the character is also nonprincipal. The supplied logarithmic Euler product yields, for real ,At a prime dividing the numerator is . At every other prime put ; then the numerator is . This Euler product positivity for L-function nonvanishing proves that the product inside the logarithm is at least one. If , its holomorphy would give . Meanwhile is bounded near one and the Riemann zeta function has a simple pole there. The product would therefore be and tend to zero, a contradiction.
For a real nonprincipal , suppose instead that . The product would then be holomorphic on the whole half-plane , because the zero cancels the only zeta pole there. In it has coefficientsThese are nonnegative zeta-times-real-L coefficients. They are multiplicative, and their prime-power values are if , one or zero according as is even or odd if , and one if . In particular and for every .
The Taylor series of the assumed holomorphic about converges in the disk . Termwise differentiation of its absolutely convergent Dirichlet series at gives . Evaluate the Taylor series at and apply the Tonelli theorem to the resulting nonnegative terms:This contradicts holomorphy at . The argument is the positive-coefficient mechanism of the Landau theorem for a Dirichlet series with nonnegative coefficients, with the needed step proved explicitly. Combining the real and nonreal cases gives the nonvanishing of a nonprincipal Dirichlet L-function at one:
Now let be coprime to . The Dirichlet theorem on primes in arithmetic progressions asserts that infinitely many prime numbers satisfy . To prove it, separate the first-power terms in the given logarithmic Euler product:For , the remainder is bounded uniformly byFor a nonprincipal character, holomorphy and nonvanishing near one give a local holomorphic logarithm. Along a short real interval to the right of one, this logarithm and the supplied continuous logarithm differ by a fixed integer multiple of . Hence the prime-character sum near one is bounded:For the principal Dirichlet character ,The latter follows from the simple zeta pole and the bounded remainder. Finally Orthogonality of Dirichlet characters givesHere is the Euler totient function. The right-hand side tends to infinity as , whereas a finite set of primes would give a bounded left-hand side. Therefore
Past exam of the mathematics course of the University of Cambridge 2008 ii Paper 4 11H Solution Created 2026-09-24 Updated 2026-10-14
Put and use conventional convergent indexing starting at zero; the same argument covers all the printed positive indices. The continued fraction complete quotients satisfy , . After the first step they exceed one, while their algebraic conjugates lie in . Indeed , and if with , then .
Write , where are integers and . This form follows by rationalization at each step: and , starting from . The two conjugate inequalities giveso . The standard convergent recursions also giveSubstitute the displayed form of and compare rational and irrational coefficients. This yields and . Therefore the small norm residues from square-root continued fractions obeyThe initial convergent satisfies the same relation with the usual . This avoids the insufficient estimate obtained by merely replacing the convergent error with .
For integer factorization, choose a factor base of small primes for which is a quadratic residue, together with to record negative residues; a prime dividing already supplies a factor. Test the small nonzero integers for being B-numbers. Complete factorization over the base records each prime exponent modulo two. Once enough relations are collected, linear algebra over can choose a nonempty subcollection whose exponent sum is even, including the sign. ThenIf , one of or can yield a nontrivial factor. Relations with a noninvertible may already give a factor through its gcd. The small-residue bound makes smoothness more likely; it does not guarantee that any one dependency gives a nontrivial factor.
Past exam of the mathematics course of the University of Cambridge 2011 ii Paper 1 12G Solution Created 2026-09-24 Updated 2026-10-14
Use the square-root encryption convention called the Rabin-Williams scheme in the Cambridge course notes. Choose distinct large primes , keep them secret, and publish . A message block is encrypted asUsually require ; otherwise the message itself reveals a factor. For a quadratic residue modulo , Euler criterion gives , so is a square root. Compute both signs modulo each prime, then combine the four sign choices by the Chinese remainder theorem. For a unit ciphertext there are four roots modulo . Message redundancy identifies the intended root; squaring alone does not identify it uniquely.
To reduce integer factorization to recovery of square roots, choose uniformly from , compute , and ask the alleged decoder for any root of . Conditional on , the secret is uniform among its four roots, even if the decoder deterministically chooses . With probability , . Then the signs agree modulo one prime and disagree modulo the other. Sincethe greatest common divisor factors . Independent trials require an expected two successful oracle calls. If a trial's chosen is not a unit, already factors . This establishes the computational equivalence between factorization and inversion of the squaring map; it does not claim that learning any partial information about a formatted message is equivalent to full inversion.
For coin flipping by telephone, Alice publishes with its factorization secret. Bob chooses uniformly a unit with and sends . Alice computes the two roots in this half interval, selects a binary digit in which they differ, and announces a guess for that digit of Bob's . Bob reveals ; Alice verifies its range and square, and their common bit records whether her guess was correct. Alice then reveals , so Bob verifies the primes, product, and differing digit.
Conditional on , Bob's original root is equally likely to be or , so Alice's guess succeeds with probability . Bob cannot change his answer to the other half-interval root without finding a nontrivial second square root, which would factor by the argument above. Thus, assuming factorization is hard and the prescribed sampling and completed exchange are followed,The revealed factors make the completed transcript checkable. The protocol does not prevent a party from aborting communication.
Past exam of the quantum information course of the University of Cambridge 2014 Paper 1 2 Solution 2026-10-20
The input size of an integer factorization problem is its number of bits . Trial division up to is exponential in ; advanced classical algorithms do substantially better, but no general polynomial-time classical factoring algorithm is known. The heuristic general-purpose general number field sieve has subexponential rather than polynomial scaling, roughly . This describes known algorithmic performance, not a proof that efficient classical factoring is impossible or that every large integer is difficult.
Choose with . A nontrivial greatest common divisor already supplies a factor; otherwise find the multiplicative order of modulo . If is even and , thenMinimality of the order also excludes , so factor extraction from an even modular order gives nontrivial factors through . Unhelpful choices of or odd orders require another trial. For , has successive residues and order four, givingComputing the powers is easy by repeated squaring; discovering a large order is the step accelerated by Shor's algorithm.[ref]
Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer by Peter W. Shor. Quantum reduction to order finding and classical factor extraction
Put and suppose . For each residue class , letThese are normalized uniform superpositions of the arguments with the same modular-exponentiation value. Their amplitudes repeat at separation within the finite register window. Exact cyclic periodicity requires . The correctly normalized entangled register state isThe equal prefactor in the displayed algorithm is exact when , for then every . It is not generally exact for an arbitrary unknown order. A physical implementation uses quantum modular exponentiation as a reversible map; its specified action on second-register input zero is extended to a unitary operator on the whole register space.
For the illustrative , and , the four first-register states areApplying the positive-sign quantum Fourier transform to the general state givesThe bracket is a finite geometric Fourier amplitude. If , it vanishes unless for , when it equals . HenceThe second-register states are orthogonal, so their different phases do not change the marginal first-register probabilities. Measurement givesIn the example the possible outcomes are . A nonzero observed ratio estimates , not a prime factor directly. Reducing it gives denominator ; repeating avoids uninformative outcomes or recovers missing order factors. For example, or gives denominator four, whereas alone gives only two.
When , the Fourier probabilities have narrow peaks near instead of support only on an exact reciprocal grid. The general marginal distribution isChoosing supplies the usual precision for continued-fraction recovery in quantum order finding: a nearest grid sample differs from the target rational by at most . Candidate denominators and extracted divisors are checked classically, and repetitions provide useful samples. The small example works exactly because its order divides the register size; it is not a general precision guarantee for factoring every four-bit integer.
Exact reciprocal-period sampling for order four and broadened peaks when the order does not divide the register
. Details. A sufficiently large reliable quantum computer would undermine RSA by efficient factorization. The related discrete-logarithm algorithm also threatens Diffie-Hellman key exchange and elliptic-curve public-key schemes. This does not imply that every communication scheme or symmetric cipher is broken by the same algorithm; post-quantum cryptography studies alternatives based on other problems. The mathematical speedup assumes a scalable quantum computation with enough precision and error control, not merely a small demonstration of factoring fifteen.
Pollard's rho algorithm 2026-10-20
An integer factorization algorithm that iterates a simple map such as and searches for a nontrivial greatest common divisor of and the difference of two iterates. A collision modulo an unknown prime factor can reveal that factor before a collision modulo . A cycle detection schedule such as Floyd's cycle-finding algorithm limits the number of stored iterates. Unsuccessful choices of seed or map can be retried.
Peter W. Shor's quantum integer factorization and discrete logarithm algorithms. SIAM Journal on Computing 26, 1484–1509.
Post-quantum cryptography 2026-10-20
Cryptography intended to remain secure against adversaries with quantum computers. It includes classical algorithms based on problems other than the integer factorization and discrete logarithm problems efficiently treated by Shor's algorithm. A candidate's security still depends on its precise construction, parameters and known attacks; the label alone is not a proof. It is distinct from requiring quantum hardware for quantum key distribution.
Primality Created 2026-10-14 Updated 2026-10-20
Primality is the property of a positive integer being a prime number. Primality testing determines this property; integer factorization asks for factors and is a different computational task.
By Carl Pomerance. Slides for the ICERM meeting "Seventy-five years of Mathematics of Computation", 1–3 November 2018.
Online text: math.dartmouth.edu/~carlp/mathcomptalk2.pdf
Cited passages: slide 14 states Pépin's test and outlines its proof; slides 15–16 describe Fermat numbers and their role in integer factorization; slide 18 gives the Gauss-Wantzel theorem and distinguishes Gauss's construction result from Wantzel's necessity proof. Numerical records elsewhere in these 2018 slides are historical records, not claims about current records.
RSA cycling attack 2026-10-31
Repeatedly apply the public RSA cryptosystem encryption map to a ciphertext. A return to that ciphertext reveals its preceding iterate as the plaintext. A nontrivial greatest common divisor between an iterate-minus-start and the modulus instead enables integer factorization. Eventual return alone supplies no useful running-time bound.
RSA inversion problem 2026-10-31
Recover a plaintext from an RSA cryptosystem ciphertext and the public key, without a supplied private key. Integer factorization of the modulus suffices; the existence of an efficient general reduction in the reverse direction is not known.
For with distinct odd primes, choose a uniform unit and give only to an oracle returning any square root . Conditional on this square, is uniform among four roots and independent of the oracle's choice. With probability one half, is not , and is a nontrivial factor. Thus full inversion of the squaring map yields randomized integer factorization; this reduction does not equate arbitrary partial leakage with full inversion.
Trial division 2026-10-14
Trial division searches for divisors of an integer by testing candidate divisions. For primality testing of an integer , testing the prime numbers up to suffices: any composite number has a prime factor in that range. After finding a prime factor, repeated division removes its prime power, and testing the remaining quotient gives an elementary integer factorization method. This is useful for small inputs, but the number of candidates can grow rapidly with the input's digit count.

