Binary palindrome 2026-10-20
A palindromic number in binary representation, with no leading zeros. Every positive binary palindrome is an odd number, because its first and last numerical digits must both be one.
Collatz sequence 2026-10-20
For a positive integer , define when is an even number, and when is an odd number. Starting at gives . Computing many trajectories benefits from memoization, since trajectories that reach the same value have identical continuations.
Full ternary tree Created 2026-10-25 Updated 2026-10-31
A rooted tree in which every internal vertex has exactly three tree children. For a finite rooted tree with tree leaves and internal outdegrees , counting edges in two ways givesIndeed, the number of edges is the total number of vertices minus one and also the sum of the internal outdegrees. Thus a full ternary tree with internal vertices has tree leaves, always an odd number. More generally, if every internal vertex has either two or three tree children, . This parity controls the initial merge in ternary Huffman coding.
Minority Boolean function Created 2026-10-25 Updated 2026-10-31
For an odd number of input bits, this Boolean function is one exactly when fewer than half of the inputs are one. For three inputs, . Each term says that a specified pair of inputs is zero; at most one input can then be one. This proves both directions of the formula.
Odd cycle 2026-10-03
Opposite parity 2026-10-20
Two integers have opposite parity when one is an even number and the other is an odd number. Their sum is then an odd number.
Past exam of the information theory course of the University of Oxford 2021 2 b vi Solution 2026-10-25
Assume a full-support finite distribution. The preceding structural arguments show that every internal vertex has three tree children, except possibly one tree parent at depth with two tree children. Let and count these two kinds of internal vertex. Part iv gives ; no vertex has one tree child.
A finite rooted tree with tree leaves has edges, while counting outgoing edges gives . Equating the counts yieldsFor an odd integer , the right side forces to be an even integer. Since it is at most one, . Thus no deepest pair has only two sibling codewords, and the optimal code tree is a full ternary tree. This leaf-count identity also directly proves that a full ternary tree has an odd number of tree leaves.
Again the unrestricted zero-weight version is false: is an optimal prefix code for , with odd integer , but its two deepest tree leaves form a two-sibling pair. There is no contradiction with the proof because its tree root has only two tree children, which the full-support finite distribution assumption would forbid above the deepest level.
Start with one tree leaf for each source symbol, weighted by its probability. While more than one weighted object remains, choose the three objects with least weights, create their common tree parent with weight equal to their sum, and replace the three by that tree parent. Newly created tree parents participate in subsequent choices. Each merge reduces the number of objects by two; an odd number of objects therefore reaches three and then one, never an unmergeable pair. The final object is the tree root of the code tree.
Label the three outgoing edges at each internal vertex by in any order. The digits along the root-to-leaf graph path give each symbol's codeword. Tree leaves cannot be ancestors of other tree leaves, so this is a prefix code. Ties can be resolved arbitrarily. The expected codeword length is measured in trits, and equals the sum of all merge weights, because each merge adds one digit to every codeword below it.
The structural reason for merging three is that the positive-weight, odd-leaf case has a full ternary tree. Its deepest sibling codeword triple can receive the three least weights by exchanging tree leaf labels, and contracting that triple reduces the problem by two symbols. This explains the recursive construction; a separate optimality proof is not required here.
For an even integer , merge the two least weights once, then repeatedly merge three least weights until only the tree root remains. The initial binary merge leaves an odd number of weighted objects, so the preceding algorithm applies. The initial merged tree parent has two tree children; subsequent tree parents have three. Equivalently, add one zero-weight dummy symbol, run the odd-leaf ternary Huffman coding algorithm, and remove its codeword afterwards. The dummy contributes nothing to expected codeword length.
Here the first merge joins the two weights , producing . The three remaining weights are , and merge directly into the tree root. Assigning the first two tree root branches to the original symbols of weights and givesThe merge-weight check gives as well. For , the first merge is already the tree root; for , outside this case with an even number of symbols, the usual temporary reduced-problem convention would permit an empty word.
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 54 4 a Solution Created 2026-10-03 Updated 2026-10-14
Use the critical ten-dimensional RNS string and light-cone gauge in string theory, leaving eight transverse bosons and eight transverse fermions. The bosonic oscillators have integer . In the Neveu–Schwarz sector the fermionic oscillators have positive half-integer , while in the Ramond sector the fermionic oscillators have integer , including zero modes. Their anticommutators are and . The level and mass formulas areBefore projection the NS ground state is a tachyon of mass squared . Its oscillator tower describes spacetime bosons. The Ramond zero-mode Clifford algebra makes the Ramond vacuum a 16-dimensional spinor of , split into the two chiral eight-dimensional spinors. The Ramond tower describes spacetime fermions; there is no Ramond tachyon.
Choose the supersymmetric GSO projection. In the NS sector it keeps states with an odd number of fermionic creation operators, eliminating the zero-oscillator tachyon. In the Ramond sector it fixes the combined parity of the zero-mode chirality and the nonzero-mode fermion number. Thus the Ramond vacuum retains one chirality; adding an odd number of nonzero-mode fermions requires the opposite zero-mode chirality. The projected towers both have . Here the counts refer to oscillator polarizations for a single endpoint multiplicity; any common Chan-Paton multiplicity multiplies both counts.
At the first retained mass level, , the NS states are for , furnishing the eight polarizations of the ten-dimensional gauge vector. The Ramond ground state is one chiral spinor with eight physical polarizations. HenceThese form the massless supersymmetric vector multiplet.
At the next mass level, , the NS level is . The odd-fermion condition leaves exactlyTheir counts are , and . Anticommutation requires distinct indices in the third family. There are no other partitions of with odd fermion number, so these are all 128 bosons. They assemble into the massive little-group representations of dimensions 44 and 84: a traceless symmetric two-tensor and a three-form.
At Ramond level one, the only possibilities are and . The spinors and each have eight components and have opposite zero-mode chirality because the fermionic oscillator reverses the GSO parity. Consequently there are fermions. They form a gamma-traceless vector-spinor of the massive little group: a vector-spinor has components and its gamma trace removes 16. Therefore the first massive level of the open RNS string hasThis is the open-string mass normalization; the same chiral oscillator count used in a closed string would correspond to .
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 87 1 Solution Created 2026-10-03 Updated 2026-10-14
Work over the finite field , and write for row of the PDF's matrix. The first row has Hamming weight eleven; all other rows have Hamming weight seven. To check their intersections economically, index the last eleven columns modulo eleven. The last eleven rows, after deleting the first column, are the successive cyclic shifts of the set . Direct calculation givesThe intersection sizes for equal those for . Thus two different rows among meet in four positions, including their shared first coordinate, whereas meets each of these rows in six positions. All these intersection sizes are even numbers, while each row weight is an odd number. Consequently . The first row and column agree, and the entry of the last eleven-by-eleven block depends only on the sum of its row and column indices modulo eleven, because successive rows are left shifts. Thus is a symmetric matrix, so .
The generator matrix has rank twelve, andHence its linear code lies in its dual code . Both have dimension twelve, so : it is a self-dual code. Moreover , and is an invertible matrix, so this is another generator matrix for the same code. In the column parity-check matrix convention of the question,The matrix has rank twelve, so its nullspace condition characterizes exactly.
To prove the minimum Hamming distance, first observe that the rows of have Hamming weights twelve and eight. For binary vectors,Every partial sum of generator rows is orthogonal to every further generator row, by . Its intersection with that row therefore contains an even number of positions. Induction using this identity proves that every codeword has weight divisible by four: is a doubly even code.
The systematic-matrix proof of extended Golay distance now excludes weight four. Write a codeword as and put . If its total weight were four, . For , the right half is a row of and has weight seven or eleven. For , the right half is the sum of two distinct rows; the intersection counts above give weight or . For , the right half would be a unit vector, but then would be a row of , of weight seven or eleven. For , the right half would vanish, contradicting invertibility of . Thus no nonzero word has weight four. Every nonzero weight is consequently at least eight, and any generator row other than the first attains eight. Since the minimum Hamming distance of a linear code is its least nonzero weight,
Define the length- binary Golay code as the punctured code obtained by deleting the first coordinate of this extended binary Golay code. This puncturing is injective on , because a nonzero word in its kernel would have weight one. Thus , and deleting one coordinate gives . The sum of the first two generator rows has weight eight and first coordinate one, so its puncture has weight seven. Therefore . In fact any coordinate can be punctured: every left coordinate except the first occurs in a weight-eight generator row, the first occurs in the sum just used, and every right coordinate occurs in at least one of the weight-eight generator rows.
The radius-three Hamming balls around the words of are disjoint, since two centers in intersecting balls would have Hamming distance at most six. Each ball containswords. Their combined size is , the size of the entire binary Hamming space. Hence
For decoding in , write the received word as , where is the unknown error in its two halves. Its syndrome isLet denote the length-twelve unit vector. For bounded-distance decoding, the three-error syndrome decoding of extended Golay code is the following finite search, returning the first successful candidate error:
Every returned candidate has total Hamming weight at most three and the required syndrome. Conversely, an error of total weight at most three has a half of weight zero or one. The tests exhaust respectively , , , and , so they find every such error. Two distinct successful candidates would differ by a nonzero codeword of weight at most six, contradicting . Thus the result is unique, and the decoded word is . The condition still allows the first test when the weight is exactly three; for larger syndrome weight begin with the second test. A large syndrome weight alone does not imply more than three errors.
The decoder corrects every error of weight at most three; failure means that the received word is outside all radius-three decoding balls. Unlike its puncture, is not a perfect code: its radius-three balls cover only words. Without the three-error assumption, a successful test identifies a nearby codeword but need not identify the transmitted word.
For an arbitrary received word, a complete minimum-distance decoding fallback is to enumerate and minimize . Every error with the observed syndrome has exactly the form , so a minimizer gives a nearest codeword . Report all minimizers if there is a tie. This also decodes outside the guaranteed radius in the nearest-word sense, while making no unsupported claim that the transmitted word is determined. Thus a syndrome of weight at least three alone is insufficient for guaranteed recovery; either the three-error hypothesis or a choice among nearest words is needed.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 75 2 c Solution Created 2026-10-03 Updated 2026-10-07
Take to be an even number for a perfectly bipartite periodic chain and make the bipartite spin rotation by about the axis on alternating sites. In the local frame the Néel state has all spins up, while a bond becomesThe linear spin-wave approximation keeps and . ThereforeEvery site has two neighbours. Fourier transform gives and pairing coefficient , soThe bosonic Nambu normal-ordering shift follows from . It adds inside the matrix expression, which must be subtracted in its constant. HenceA periodic chain with an odd number of sites is frustrated at the boundary and lacks this exact two-sublattice reference; the bulk thermodynamic calculation uses the even-chain sequence.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 75 3 b Solution Created 2026-10-03 Updated 2026-10-07
For a trajectory connecting the degenerate minima in infinite Euclidean time, the first integral gives . The quartic double-well instanton and its reverse areTheir action isThe instanton fluctuation prefactor has dimensions of inverse time. It incorporates nonzero Gaussian fluctuation eigenvalues and the translation zero-mode Jacobian; a conventional determinant expression iswith common endpoint regularization and the prime removing the translation mode. Only its positive quantum tunnelling rate is needed here.
In the dilute instanton gas, well-separated crossings alternate in direction. Integrating ordered centers gives . A path returning to the same well has an even number, and one connecting opposite wells has an odd number. The common leading harmonic endpoint factor follows from the supplied harmonic oscillator transition kernel:Expanding these functions gives the sums over even numbers and odd numbers, with the position-kernel normalization that its abbreviated formula suppresses. Validity requires , and , so typical crossing separation greatly exceeds an instanton width. Local anharmonic corrections replace the harmonic well energy by its perturbatively corrected value; the leading formula does not claim uniformly negligible relative error at arbitrarily large .
The two exponents identify the double-well tunneling splitting:The superposition with an even spatial wavefunction is the lower state. Coherent quantum tunnelling removes the classical degeneracy, and the exponentially small splitting sets the long quantum tunnelling timescale.
Past exam of the mathematics course of the University of Cambridge 2017 ia Paper 4 1D b Solution Created 2026-09-24 Updated 2026-10-05
For a Pythagorean triple, each square number is or modulo . If neither nor were divisible by , modular congruence would give , impossible for a square number. Thus at least one of is divisible by ; both can be divisible, as in .
An odd number has square number congruent to modulo , whereas an even number has square number congruent to . If both and were odd numbers, their sum of square numbers would again be modulo , which no square number can be. Hence and cannot both be odd. They can both be even; the conclusion does not require the Pythagorean triple to be primitive.
Past exam of the mathematics course of the University of Cambridge 2019 ii Paper 3 1I Solution Created 2026-09-24 Updated 2026-10-03
A reduced positive definite binary quadratic form satisfieswith when or . Its discriminant of a binary quadratic form is . The first displayed inequality already gives , while givesTaking the positive square root yieldsMoreover, , so . For fixed negative , the displayed bounds leave only finitely many possible integers and , and then is uniquely determined. Hence only finitely many reduced forms have discriminant .
For , the bound gives , so . The modular congruence condition makes odd. If , then and ; the boundary convention retains . If , then and ; the boundary convention retains . Thus the complete list is
Past exam of the mathematics course of the University of Cambridge 2021 ia Paper 4 5E b Solution Created 2026-09-24 Updated 2026-09-25
The binomial theorem statesThe required sum is the coefficient of inThere is no term when is odd. When is even, the relevant term has exponent and coefficient . Hence
The identity theorem says that two holomorphic functions on a connected domain which agree on a set with an accumulation point inside that domain agree everywhere there.
No such entire function exists. On the subsequence indexed by even numbers, the proposed function equals . The identity theorem would force throughout . At the points indexed by odd numbers it is instead required to equal , a contradiction since for positive . The accumulation point zero lies inside the assumed domain of holomorphy, which is essential to this argument.
The contrapositive is that an integer perfect square has residue or modulo . Let for an integer . If is an even number, then . If is an odd number, then . These exhaust the possible parities of an integer. Thus a residue of or excludes being a perfect square, as required by the contrapositive.
Suppose, for a proof by contradiction, that an integer is both an even number and an odd number. Then and for some integers . Subtracting yields . The left side is an integer, while is not. This contradiction proves that no integer is both even and odd.
For a finite source alphabet with at least two symbols and strictly positive weights, every ternary prefix code minimizing weighted codeword length has all internal vertices of outdegree three, except possibly one of outdegree two whose tree children are deepest tree leaves.
To prove this, let be the greatest tree leaf depth. A missing tree child at any depth would permit moving a deepest tree leaf into that vacant branch, strictly reducing its positive weighted cost. Thus all internal vertices above depth have three tree children. Tree parents at depth have only tree leaves as tree children; one tree child would permit contraction and strict improvement. If two such tree parents each had two tree children, move one tree child of the second into the first tree parent's third slot, preserving its depth, and contract the second tree parent's remaining tree child. This again strictly improves cost. There is therefore at most one binary tree parent. If the number of symbols is an odd number, the leaf-count formula for a full ternary tree forces to be an even integer; since , there is no binary tree parent.
Strict positivity matters. For probabilities , the prefix code minimizes expected codeword length at one trit, yet has unary vertices and a deepest tree leaf without a sibling codeword. Removing or rearranging zero-weight branches can select a reduced minimizer, but arbitrary minimizers need not have the positive-weight shape.