Base-p digit sum Created 2026-09-28 Updated 2026-10-18
For a nonnegative integer and integer base , write its base-p expansion asThe base- digit sum is , with . When is a prime number, the Legendre formula becomesTo see the connection, divide the base-p expansion by and discard the fractional part. Swapping the resulting finite sums and using a finite geometric series givesIn particular, , so and . The leading numeral digit contributes thirteen, the next contributes eight, the next one, and the units contribute zero. Thus the base-p digit sum compresses the same contribution ledger into information already present in positional notation.
Difference of two cubes 2026-10-18
The polynomial identityfollows by multiplying out the right side. For real , the quadratic factor is , so it is nonnegative and vanishes only when . The identity is a special case of the finite geometric series factorisation .
Discrete-logarithm Fourier sampling 2026-10-06
For a generator of a group of order and , the function hides the subgroup of . Each fiber is an affine coset . Measuring the function register gives its normalized coset state. Applying the positive-exponent quantum Fourier transform to both input registers gives amplitudeThe finite geometric series vanishes off and equals on that line. Thus each allowed output pair has probability , independently of the coset offset. If , a modular inverse recovers .
Divide-and-conquer combination cost Created 2026-10-18 Updated 2026-10-20
The combination cost is the work needed to reconstruct an answer from the returned smaller answers. In a time complexity calculation, also count partitioning the input, preparing arguments, and other work outside recursive calls. Write their total as for a size- call. For an ideal balanced divide-and-conquer algorithm making calls of size , the recurrence relation iswhere is a fixed positive integer and is the base case cost. Take , a power of two, so the size becomes one after exactly divisions. This is a model of total sequential work: all smaller calls contribute, even if a machine could run some simultaneously.
At level , there are calls, each of size . Expanding the recurrence relation gives the exact identityThe first term counts the base cases; the sum stops before their level because describes work in nonterminal calls. This separates depth, number of calls, and local work. Merge sort has two smaller calls and a linear merge algorithm, giving in Big O notation. The MIT notes derive this by summing equal work across levels, and contrast it with the same two-way split followed by quadratic local work.[ref]
Lecture 3: Insertion sort, merge sort. 6.006 Introduction to Algorithms, Fall 2011, Lecture 3: slides 32–44, recurrence and equal work per level; slide 46, quadratic local work
The same halving tree can have linear or quadratic work at each call
. Original exact cost models with , two children per nonterminal call, and one unit per base case. For local work , every internal level costs 16 and the total is 80. For , internal levels cost 256, 128, 64, 32 and the total is 496. The tree shows instance sizes; the ledger counts work rather than execution order. Details.For the first constructed model, set , and . Every internal level costs , while the leaves cost . Thus , giving . If the same split instead has , then the finite geometric series givesso . The root alone already costs in this second model. Smaller arguments do not eliminate expensive reconstruction. These are stipulated operation counts, rather than measured running times or exact merge sort instruction counts.
Binary search has a different saving: after its comparison, only one half remains a candidate. With constant-cost indexed array access and comparisons, its worst-case time complexity satisfies an upper recurrence relation for , with . There is one continuing branch, rather than two. At most nonempty candidate ranges are inspected for . Copying the retained half into a fresh array on every step would add linear work at that step and lose this logarithmic bound. The shrinking range and its representation both matter.
Euclid-Euler theorem 2026-10-14
An even integer is a perfect number if and only ifThis forces to be a prime number, as shown under Mersenne number. It does not say that every prime exponent works, nor classify possible odd integers.[ref]
Perfect numbers and Mersenne primes by Keith Conrad. Theorem 1.1, pp. 1–2: even-number equivalence and proof
For the forward direction, put and use coprimality of and . Multiplicativity of the sum-of-divisors function and the finite geometric series giveThe prime number hypothesis makes ; replacing it with a composite number changes this factor.
Finite trigonometric sum Created 2026-10-06 Updated 2026-10-18
Taking the real and imaginary parts of the finite geometric series yieldsThese formulas apply when . At multiples of , the sums are directly and . Complex exponentials turn two real trigonometric summations into one finite geometric series.
Finite weighted geometric sum 2026-10-18
Differentiate the finite geometric series with respect to , then multiply by . This proves the title identity for without any infinite-series differentiation. At , the sum is . For , both and tend to zero, yielding .
Geometric series Created 2026-09-24 Updated 2026-10-20
A geometric series adds the terms of a geometric progression:Its ordinary infinite sum is the limit of a sequence of partial sums , rather than a new operation that adds infinitely many terms at once. For that are real numbers or complex numbers, if , the series is absolutely convergent andWhen , this condition on the modulus of is also necessary: for the terms fail to tend to zero. The all-zero series converges for every . The finite geometric series identity and give the result with almost no extra algebra. [ref]
Decaying terms, accumulating sums, and the failure of an undamped alternating series
. Details. With and , the partial sums approach from below. Changing the common ratio to makes the partial sums approach from alternating sides: their increments still shrink. At , those increments never shrink, and the partial sums remain . Substituting into does not supply the ordinary sum of that divergent series.
The formula is useful because many apparently different problems share a fixed multiplier. A repeating decimal such as isA geometric distribution counting failures before the first success normalizes by the same identity: for , the probabilities on add to one. The comparison test for series uses a bound by a decaying geometric progression to establish absolute convergence without an exact formula for the series being studied. The iterated contraction gives a summable orbit result uses precisely this idea for repeated applications of a map.
The remainder of a geometric series gives more than an eventual limit: it states exactly how much an approximation omits. A common ratio close to one still gives a convergent series, but can require many terms for a useful approximation.
Mersenne number 2026-10-14
A Mersenne number has the form for a positive integer . Its binary representation consists of ones. For example, is composite, while is prime. If with , the finite geometric series factorizationhas two factors greater than one. Consequently a Mersenne prime requires a prime exponent, but shows that this condition alone is insufficient.
For a unitary operator eigenphase , an -qubit quantum phase estimation register of size has output probability amplitudeChoose the nearest integer label to , with labels understood modulo , and put , taking the representative . The finite geometric series gives . For , concavity of sine gives , while . Thus the probability of the nearest label is at least . At it is exactly one. If two labels tie for nearest, each satisfies the bound.
Near-grid quantum phase estimation 2026-10-14
For register size and eigenphase , the amplitude of decoded label is . The finite geometric series gives . If , this is . Thus the nearest exactly representable phase is returned with probability near one, not with certainty unless the offset vanishes.
// Target: quantum-error-correction.bigb
Past exam of the history of mathematics course of the University of Oxford 2023 1 Solution 2026-10-25
The passage belongs to the English reception of Euclid's number theory. Henry Billingsley's The Elements of Geometrie by Henry Billingsley, published in 1570, brought the Elements into English with extensive explanatory material. The original title page advertises translation and annotations; the extract's worked examples show what explanatory prose could add to a compact definition. Henry Billingsley's numbering calls this Definition 23 of Book VII; the familiar modern numbering is VII, Definition 22. The difference is editorial, not a difference in the perfect number being defined.[ref]
The Elements of Geometrie by Henry Billingsley. Title page and Book VII, Definition 23, in the Text Creation Partnership transcription
[ref]Book VII, Definition 22. Definition and guide
Here a number's parts are its positive proper divisors, rather than arbitrary pieces of a sum or all smaller integers. In modern notation the definition iswhere is the sum-of-divisors function. Thus is not a perfect number: its positive proper divisors total . It is essential to exclude itself: including it would double the required sum. The pairing of a divisor with the fraction of the whole explains the extract's language of halves, thirds and so on. Its examples are complete checks because they identify every positive proper divisor, not merely some convenient decomposition.
The larger mathematical context is the construction in Book IX, Proposition 36. If is a prime number, then is a perfect number. To reconstruct the argument, prime factorization gives all its divisors as and , with . A finite geometric series therefore givesThe choices produce . The primality assumption matters: choosing produces , whose sum-of-divisors function is , not . The construction gives a reason for the examples and connects perfect numbers with Mersenne primes.[ref]
Book IX, Proposition 36. Statement, construction and guide
The extract itself supplies a definition and examples, not a classification or a mathematical proof that such numbers are rare. In particular, the converse that every even perfect number has this form belongs to the later Euclid-Euler theorem; it should not be read back into this passage. The historically significant feature is the transmission of deductive arithmetic through vernacular explanation: a book called geometry also teaches the divisibility theory needed for a general construction.
Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 76 1 Solution Created 2026-10-03 Updated 2026-10-14
Put and let be a real polynomial of degree . A standard form of Weyl inequality is: if and , then for every The implied constant is uniform in all lower coefficients. For degree one the finite geometric series bound is , where is distance to the nearest integer.
Here is the Weyl differencing proof. Extend by zero outside . Expanding by differences of indices gives a sum of correlations . Repeated Cauchy-Schwarz inequality and this correlation identity yield, after steps, with ,The interval ensures that every shifted argument remains in . For completeness, the induction is the following: at stage , the factor is and there is a sum over shifts. Squaring, Cauchy-Schwarz over those shifts supplies ; expanding the square of each remaining interval sum introduces the next shift. The new factor is , as asserted for stage .
The final differenced phase is linear, of slope . Zero products contribute to the sum. For nonzero products the finite geometric series bound applies. Grouping by , the subpower bound for the divisor function bounds the number of representations by for any chosen . The divisor input is elementary: for , the number of ordered factorizations of is . For all sufficiently large primes this is bounded factorwise by , and for the finitely many smaller primes the polynomial in is bounded by a constant times . Multiplication gives . ThusThe reduced denominator of is between and . Its approximation error is bounded by a constant depending on times the inverse square of that denominator. Split the -range into blocks of length a sufficiently small fixed multiple of . Within a block the values are separated modulo one by a constant multiple of : rational differences have spacing at least , while the approximation error in a block difference is smaller than half that spacing. At most a bounded number of values occupy each distance interval of width . Summing reciprocals of their ordered distances proves the reciprocal fractional-part sum near a rational estimateFor , the proposed inequality follows from . Otherwise the last display and the differencing estimate giveChoose sufficiently small, absorb the logarithm into a further arbitrarily small power of , and take th roots. This proves the stated Weyl inequality.
For the recurrence assertion, a rational gives an integer with . For irrational , Weyl differencing implies that is an equidistributed sequence modulo one. One way to avoid a rate issue for unusually good rational approximations is to keep a fixed differencing range : the Van der Corput inequality for finite scalar sequences gives, for each nonzero integer , a limsup bound , because every fixed nonzero difference has irrational linear slope and its geometric average tends to zero. Let and apply the Weyl criterion. Hence some always enters the open -neighborhood of zero.
Finally, are open sets covering the compact circle group. A finite subcover has a largest index . That single works for every real . This is uniform square recurrence on the circle; the compactness step gives existence, not an explicit quantitative bound.
Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 30 1 Solution Created 2026-10-03 Updated 2026-10-14
Let be distinct elements of a finite field , with . The Reed-Solomon code consists of the evaluation vectorsEvaluation is an injective linear map: a nonzero polynomial of degree at most cannot vanish at all distinct points. Thus the dimension is . The same bound on polynomial roots shows that every nonzero codeword has Hamming weight at least . Conversely, choosing any evaluation points and taking their product of linear factors gives a polynomial whose evaluation vanishes at exactly those points. Its Hamming weight is . HenceFor completeness, deleting coordinates from a linear code of minimum Hamming distance is injective on codewords, since two words with the same retained coordinates would differ in fewer than positions. Therefore , giving the Singleton bound . The Reed-Solomon code attains this bound and is a maximum distance separable code. Multiplying individual coordinates by nonzero field elements changes neither the dimension nor the Hamming weight, so the same proof applies to a generalized Reed-Solomon code.
To specify the generator polynomials of a cyclic code unambiguously, use the primitive cyclic Reed-Solomon code convention. Put , choose a primitive element of a finite field , and setExponents are taken modulo . This generator polynomial is a monic polynomial of degree dividing , so the dimension is . It agrees with the evaluation formIndeed, at a defining exponent , a monomial contributes the finite geometric series . Its exponent lies between and , so the sum vanishes: but its th power is one. Every displayed evaluation vector therefore lies in the cyclic code, and both spaces have dimension , proving equality. The narrow-sense choice is the ordinary unweighted evaluation linear code on all nonzero field elements.
The duality of primitive cyclic Reed-Solomon codes now follows directly. A vector in has coordinates , while a vector in has coordinates , with . Their dot product is . Every appearing exponent is between and , so every such finite geometric series is zero. The two spaces are orthogonal and their dimensions sum to , givingThus the full cyclic family is closed under dual codes. The offset matters: the dual code of the narrow-sense linear code generally has offset zero, rather than one.
For arbitrary evaluation points, the precise statement is closure of generalized Reed-Solomon codes under duality. If , put and . Lagrange interpolation shows whenever : this sum is the coefficient of in the interpolation formula for . Taking with and proves orthogonality of and . Comparing dimensions gives equality with . An unweighted evaluation linear code at arbitrary points need not have an unweighted evaluation dual at the same points; the multiplier form and the cyclic offset formula resolve that convention issue.
For the length-, dimension- linear code, choose and as in the field table. Then andThe field characteristic is two, and the table gives . In the basis , the four roots are represented by . Their elementary symmetric functions areThe repeated terms in cancel because the field characteristic is two. There are no alternating minus signs in this characteristic, soFor example, the coefficient vectors in ascending order are , giving the required single powers of .
For the length-, dimension- linear code over , take the table's primitive element of a finite field and again . The four roots are . Expanding in givesThusThe coefficients are reduced modulo , including the constant term .
A suitable two-error-correcting Reed-Solomon code over is precisely the first linear code:Two distinct codewords cannot both be within Hamming distance two of a received word, because the triangle inequality would put them at distance at most four. Thus this linear code corrects any two symbol errors. Its generator polynomial has four consecutive defining zeros of a cyclic code, and its dimension and exact minimum Hamming distance have already been proved.
Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 33 5 Solution Created 2026-10-03 Updated 2026-10-14
Let be a unitary operator and suppose initially that the target is an eigenstate with , . Use control qubits, so . Hadamard gates prepare the uniform superposition . For each binary control position , apply the controlled unitary gate . The resulting state isApply the inverse quantum Fourier transform, with convention , and measure the control. The exact amplitude and probability areFor an exactly representable phase , orthogonality of roots of unity makes the outcome certain. Otherwise the finite geometric series givesThe estimate is , with phases interpreted modulo one.
To prove an error bound, choose a nearest label to on the circular grid and put in the interval . For , concavity of sine on gives , while . Therefore the nearest-integer success bound for quantum phase estimation isHere . At an exact grid point the probability is one. If two nearest labels tie, either one separately has the displayed lower bound.
For high confidence one can prove a stronger quantum phase estimation tail bound. Let be the centered distance between and , chosen with . The denominator estimate implies away from the exact-phase case. A label at circular integer distance from has , and there are at most two labels at each such distance. For , summing the tails givesOn the complementary event the circular phase error is at most . Thus, for desired bits of accuracy, take with and to obtainTaking makes the right side at most . This adds only control qubits. Efficient QFT is not by itself a guarantee of efficient controlled powers of an arbitrary : implementing them by repeated oracle calls uses calls. The modular-arithmetic application has efficient powers, as follows.
Assume and , and let be the multiplicative order of modulo . Define the unitary operator on , and extend it as the identity on unused computational-basis labels of the binary register. Coprimality makes multiplication a permutation, so this extension really is unitary. The orbit of consists of the distinct states . Its modular multiplication eigenstates areThe last relation follows by shifting the index cyclically; orthogonality follows from the finite Fourier sum. We do not need to know to prepare one of these eigenstates: the readily prepared target obeysRunning quantum phase estimation on this state produces the mixture of the eigenphase distributions, each with weight , because the target eigenstates are orthogonal. Thus it samples a uniformly random phase label and estimates with the bounds just proved. Equivalently the state before the inverse QFT is , which is obtained by quantum modular exponentiation directly.
The controlled power multiplies by , whose constant is computed by repeated squaring. Under the assumed efficient modular exponentiation, these controlled multiplications and the QFT use a number of gates polynomial in the register lengths. Taking requires only phase qubits. The nearest-label event has probability at least and yields an estimate within of . Since , continued-fraction recovery in quantum order finding then identifies the reduced fraction . The denominator is , not necessarily : when and are coprime it is the desired order, and when they are not it is only a divisor. One may test candidate denominators using modular exponentiation and repeat with fresh samples; denominators from successful samples can also be combined by a least common multiple. The probability of a nearest-label sample with coprime to is at least . These qualifications explain exactly what the phase estimate yields without falsely assuming that the unknown order or an eigenstate was available at the start.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 28 7 ii Solution Created 2026-10-03 Updated 2026-10-14
Use the integer norm lower bound for rational approximation to a quadratic irrational. The integer is nonzero, since is irrational. If , thenbecause . If , the difference is at least . ThusIn particular, is a badly approximable number.
To estimate the prime-weighted exponential sum, let . The Dirichlet approximation theorem gives a reduced fraction withCombining this with the lower bound gives . Thus ; the approximation cannot have a small denominator.
The relevant analytic input is the prime exponential-sum estimate from Vaughan identity:Here is the structure behind that estimate. With Dirichlet convolution and cutoffs , the Vaughan identity isIt follows from , , and . The first two Dirichlet convolution terms become type I sums with one short factor; the last becomes a bilinear type II sum with both factors bounded below. Split these sums into dyadic blocks and use . For the type I sums, the inner finite geometric series has bound . For the type II sums, the Cauchy-Schwarz inequality followed by expansion introduces analogous sums in differences of indices. Rational approximation separates the phases into blocks of length comparable to , bounding these reciprocal-distance sums. The Dirichlet convolution coefficients are divisor-bounded, producing the logarithmic factors. These steps give the displayed estimate; no unproved cancellation of arbitrary weighted sums is being assumed.
With and , the two denominator-dependent terms are . ConsequentlyThe final passage absorbs the logarithm using the positive exponent margin .
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 58 2 ii Solution Created 2026-10-03 Updated 2026-10-14
Write , with . Decode the measured bits as above. The probability amplitude of label isUsing the finite geometric series,Interpret removable singularities by continuity. In particular, near-grid quantum phase estimation returns the nearby exact label with probabilityThis is near one under the stated small-offset assumption, but not exactly one when .
There is also a rigorous error bound. Taking the squared modulus of the sum giveswhere and the elementary sums of and evaluate the last expression. HenceOn that event the circular quantum phase error is at most . For other labels, the exact probabilities areTheir total is , describing the leakage from the perfect solution. The physical output bit string remains reversed in the printed circuit; this changes its decoding, not these probabilities.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 58 2 i Solution Created 2026-10-03 Updated 2026-10-14
Put and write , with normalized. The Hadamard gates prepare the control register in . Controlled powers of the unitary operator then give quantum phase kickback:Thus the register quantum state is , while the target remains . Define the quantum Fourier transform by . Its inverse givesWhen , the inner finite geometric series equals if and zero otherwise. Therefore exact quantum phase estimation givesThe quantum phase, rather than an unrestricted integer , is recovered modulo .
The printed circuit has no bit-reversal swaps. Its top control uses , and its measured top wire gives the least significant output bit. Write . Before the top wire's final Hadamard gate, its relative quantum phase is , so that gate produces . The controlled inverse quantum phase gates then subtract its contribution from lower wires. More generally, before the final Hadamard gate on wire , the relative quantum phase isso that wire gives deterministically. For the three-wire drawing, the correct interpretation isEquivalently, its Fourier-inversion circuit is , where reverses the register bits. Relabeling the measured bits or appending swaps gives the usual integer output. This bit convention matters, for example, when quantum phase produces top-to-bottom bits , representing the label four rather than one.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 87 3 Solution Created 2026-10-03 Updated 2026-10-14
For distinct evaluation points and , the Reed-Solomon code isThis is a linear code of dimension : evaluation is linear, and a nonzero polynomial of degree less than cannot vanish at all distinct points. The assertion of cyclicity concerns the primitive, unextended construction: set and , where generates the multiplicative group of a finite field . Arbitrary evaluation sets or arbitrary coordinate orders need not make a Reed-Solomon code a cyclic code.
For this ordered full-length construction, shifting the evaluation vector to the right gives . This is the evaluation vector of , whose degree is still less than , so it is a cyclic code. Its generator polynomial follows from the finite geometric seriesHere the scalar is nonzero in . Write and . For ,since . Thus every word is divisible by . This monic divisor of generates a cyclic code of dimension , equal to the evaluation code by inclusion and dimension. Hence
It is useful to allow a starting exponent for the consecutive zeros of a cyclic code. Define the primitive cyclic Reed-Solomon codeAll exponents are understood modulo . The same geometric-sum calculation shows thatIndeed evaluating its word polynomial at , , gives sums with exponents between one and . This is a generalized Reed-Solomon code, with nonzero coordinate multipliers ; is the unweighted evaluation code. Directly, a right shift corresponds to replacing by , so these offset codes are also cyclic codes.
A maximum distance separable code, or MDS code, is a linear code attaining the Singleton bound, with . To see the bound, deleting any coordinates is injective on a code of minimum Hamming distance , since two words with the same puncture would differ in at most positions. Therefore and . For a nonzero Reed-Solomon evaluation word, the polynomial has at most distinct polynomial roots, so at least coordinates are nonzero. Nonzero coordinate multipliers do not change these zero positions. This proves for both Reed-Solomon codes and generalized Reed-Solomon codes. Equality can also be exhibited: choose any evaluation points and take their linear factors as ; it vanishes exactly at those points and has weight . Thus
The duality of primitive cyclic Reed-Solomon codes is especially transparent in the evaluation form. Assume first . A vector of has coordinates , ; a vector of has coordinates , . Their standard dot product isEvery monomial in has exponent at least one and at most , and every such power sum vanishes. Thus . Both sides have dimension , givingIn particular has generator . This agrees with the general dual of a cyclic code rule: invert the roots belonging to the complementary factor . The dual is a Reed-Solomon code in the consecutive-zero convention. With the strictly unweighted evaluation definition, its coordinates instead have the form , so it is a generalized Reed-Solomon code; it need not equal the unweighted code of dimension on the same points. This convention distinction is essential. The case is the full word space and its dual is the zero code, obtained by taking .
For code encoding, use the finite-field discrete Fourier transform and its inverse:For a message , put for , and set all other transform coordinates to zero. The inverse discrete Fourier transform returnsThe zero transform coordinates are precisely the root checks defining . This gives non-systematic encoding by evaluation. For systematic polynomial encoding of a cyclic code with a message polynomial of degree less than , put and calculate the remainder of upon division by . Then is divisible by , and the last coefficients are the message coefficients. Both methods use the same generator polynomial and the same ordered powers of .
For bounded-distance decoding, let , put , and assume at most symbol errors. The following description uses the Reed-Solomon key equation and fixes the transform and locator conventions explicitly.
- Compute the syndromes for . The corresponding codeword transform values vanish. An error of value at coordinate contributes , where , so .
- Form . Use the Berlekamp-Massey algorithm, or the polynomial extended Euclidean algorithm applied to and , to solve with , , and . Choose the minimal-degree locator; zero syndrome gives , . The error locator polynomial is , and is the error evaluator polynomial.
- Perform a Chien search: test for . Its distinct zeros identify the erroneous coordinates. A mismatch between the degree and the number of distinct permitted roots is a decoding failure.
- Recover each error value by the Forney algorithm, with the present syndrome offset:
- Set , all other error coordinates to zero, and output . Verify that all root checks vanish and that the correction has weight at most . Recover the message from the unconstrained transform coordinates by , or from the last coefficients if systematic encoding was used.
The denominator in the Forney algorithm is nonzero for distinct locations. The minimum-distance error-detection and correction guarantee gives unique recovery because . If the required locator or a valid correction cannot be found, declare decoding failure. Beyond errors, a received word may lie near a different codeword, so successful root checks alone do not certify recovery of the originally transmitted message. The guaranteed correction radius is symbol errors.
Past exam of the mathematics course of the University of Cambridge 2007 iii Paper 59 3 Solution Created 2026-10-03 Updated 2026-10-14
Take the labels , with basis indices read modulo . There is a missing hypothesis in the printed claim: the root of unity must be primitive. For example, when and , the two labels and produce the identical state , so they are not orthogonal. More generally, if the order of is , changing to repeats a state. The orthonormality claim is false for a nonprimitive root.
For the intended result, choose a primitive root of unity, for example . Since , expansion in the orthonormal basis givesIf , the sum is . If modulo , primitiveness gives while , and the finite geometric series is . ThusThere are vectors in an -dimensional Hilbert space, so they form the generalized Bell basis. Each has equal Schmidt coefficients and is a maximally entangled state.
For qudit teleportation, let be Alice's unknown input, write , and let Alice and Bob share . Alice holds and Bob holds . Define the qudit shift and phase operatorsBoth are unitary. Alice makes a joint projective measurement of in the generalized Bell basis, with projectors . Completeness follows from the orthonormality just proved.
For outcome , contracting the corresponding bra with the joint input and resource gives Bob's unnormalized state:The Born rule therefore gives , since preserves the input norm. Conditional on this outcome, Bob holds . Alice sends him the classical label , and he applies its inverse in the displayed order:The corrected receiver state is exactly the unknown input state for every outcome. Alice needs no knowledge of the amplitudes. The label has possibilities and can be encoded in classical bits; when is a power of two this is exactly . The protocol consumes the shared maximally entangled state and the original carrier is measured, so it does not retain an additional copy of the unknown state.
Equivalently, the complete joint quantum state has the teleportation expansionIt follows from the contraction calculation and completeness of the generalized Bell basis. After correction the branch operators are all , so their sum defines the identity quantum channel: . Acting on the input part of a joint state with a reference gives the same identity, which proves teleportation as an identity channel on a reference and extends the protocol to mixed inputs.
Before receiving the label, Bob instead has the outcome-averaged stateTo check the equality, averaging over kills the off-diagonal matrix entries by the same root-of-unity sum; averaging the cyclic shifts makes every diagonal entry the total trace divided by . This is the Heisenberg-Weyl twirling channel. Thus the classical message is necessary to recover the input, consistently with the no-communication theorem derived in Question 1.

