# Unit fraction

A unit fraction is a positive fraction with one as its numerator, 1/n. It is the multiplicative inverse (reciprocal) of the denominator of the fraction, which must be a positive natural number. Examples are 1/1, 1/2, 1/3, 1/4, 1/5, etc. When an object is divided into equal parts, each part is a unit fraction of the whole.
Multiplying two unit fractions produces another unit fraction, but other arithmetic operations do not preserve unit fractions. In modular arithmetic, unit fractions can be converted into equivalent whole numbers, allowing modular division to be transformed into multiplication. Every rational number can be represented as a sum of distinct unit fractions; these representations are called Egyptian fractions based on their use in ancient Egyptian mathematics. Many infinite sums of unit fractions are meaningful mathematically.
In geometry, unit fractions can be used to characterize the curvature of triangle groups and the tangencies of Ford circles. Unit fractions are commonly used in fair division, and this familiar application is used in mathematics education as an early step toward the understanding of other fractions. Unit fractions are common in probability theory due to the principle of indifference. They also have applications in combinatorial optimization and in analyzing the pattern of frequencies in the hydrogen spectral series.

## Arithmetic

The unit fractions are the rational numbers that can be written in the form ${\frac {1}{n}},$ where $n$ can be any positive natural number. They are thus the multiplicative inverses of the positive integers. When something is divided into $n$ equal parts, each part is a $1/n$ fraction of the whole.

### Elementary arithmetic

Multiplying any two unit fractions results in a product that is another unit fraction: ${\frac {1}{x}}\times {\frac {1}{y}}={\frac {1}{xy}}.$ However, adding, subtracting, or dividing two unit fractions produces a result that is generally not a unit fraction: ${\frac {1}{x}}+{\frac {1}{y}}={\frac {x+y}{xy}}$
${\frac {1}{x}}-{\frac {1}{y}}={\frac {y-x}{xy}}$
${\frac {1}{x}}\div {\frac {1}{y}}={\frac {y}{x}}.$
As the last of these formulas shows, every fraction can be expressed as a quotient of two unit fractions.

### Modular arithmetic

In modular arithmetic, any unit fraction can be converted into an equivalent whole number using the extended Euclidean algorithm. This conversion can be used to perform modular division: dividing by a number $x$, modulo $y$, can be performed by converting the unit fraction $1/x$ into an equivalent whole number modulo $y$, and then multiplying by that number.
In more detail, suppose that $x$ is relatively prime to $y$ (otherwise, division by $x$ is not defined modulo $y$). The extended Euclidean algorithm for the greatest common divisor can be used to find integers $a$ and $b$ such that Bézout's identity is satisfied: $\displaystyle ax+by=\gcd(x,y)=1.$ In modulo-$y$ arithmetic, the term $by$ can be eliminated as it is zero modulo $y$. This leaves $\displaystyle ax\equiv 1{\pmod {y}}.$ That is, $a$ is the modular inverse of $x$, the number that when multiplied by $x$ produces one. Equivalently, $a\equiv {\frac {1}{x}}{\pmod {y}}.$ Thus division by $x$ (modulo $y$) can instead be performed by multiplying by the integer $a$.

## Combinations

Several constructions in mathematics involve combining multiple unit fractions together, often by adding them.

### Finite sums

Any positive rational number can be written as the sum of distinct unit fractions, in multiple ways. For example,
    ${\frac {4}{5}}={\frac {1}{2}}+{\frac {1}{4}}+{\frac {1}{20}}={\frac {1}{3}}+{\frac {1}{5}}+{\frac {1}{6}}+{\frac {1}{10}}.$
These sums are called Egyptian fractions, because the ancient Egyptian civilisations used them as notation for more general rational numbers. There is still interest today in analyzing the methods used by the ancients to choose among the possible representations for a fractional number, and to calculate with such representations. The topic of Egyptian fractions has also seen interest in modern number theory; for instance, the Erdős–Graham problem and the Erdős–Straus conjecture concern sums of unit fractions, as does the definition of Ore's harmonic numbers.
In geometric group theory, triangle groups are classified into Euclidean, spherical, and hyperbolic cases according to whether an associated sum of unit fractions is equal to one, greater than one, or less than one respectively.

### Infinite series

Many well-known infinite series have terms that are unit fractions. These include:
* The harmonic series, the sum of all positive unit fractions. This sum diverges, and its partial sums ${\frac {1}{1}}+{\frac {1}{2}}+{\frac {1}{3}}+\cdots +{\frac {1}{n}}$ closely approximate the natural logarithm of $n$ plus the Euler–Mascheroni constant. Changing every other addition to a subtraction produces the alternating harmonic series, which sums to the natural logarithm of 2: $\sum _{n=1}^{\infty }{\frac {(-1)^{n+1}}{n}}=1-{\frac {1}{2}}+{\frac {1}{3}}-{\frac {1}{4}}+{\frac {1}{5}}-\cdots =\ln 2.$
* The Leibniz formula for π is $1-{\frac {1}{3}}+{\frac {1}{5}}-{\frac {1}{7}}+{\frac {1}{9}}-\cdots ={\frac {\pi }{4}}.$
* The Basel problem concerns the sum of the square unit fractions: $1+{\frac {1}{4}}+{\frac {1}{9}}+{\frac {1}{16}}+\cdots ={\frac {\pi ^{2}}{6}}.$ Similarly, Apéry's constant is an irrational number, the sum of the cubed unit fractions.
* The binary geometric series is $1+{\frac {1}{2}}+{\frac {1}{4}}+{\frac {1}{8}}+{\frac {1}{16}}+\cdots =2.$

### Matrices

A Hilbert matrix is a square matrix in which the elements on the $i$th antidiagonal all equal the unit fraction $1/i$. That is, it has elements $B_{i,j}={\frac {1}{i+j-1}}.$ For example, the matrix ${\begin{bmatrix}1&{\frac {1}{2}}&{\frac {1}{3}}\\{\frac {1}{2}}&{\frac {1}{3}}&{\frac {1}{4}}\\{\frac {1}{3}}&{\frac {1}{4}}&{\frac {1}{5}}\end{bmatrix}}$ is a Hilbert matrix. It has the unusual property that all elements in its inverse matrix are integers. Similarly, Richardson (2001) defined a matrix whose elements are unit fractions whose denominators are Fibonacci numbers: $C_{i,j}={\frac {1}{F_{i+j-1}}},$ where $F_{i}$ denotes the $i$th Fibonacci number. He calls this matrix the Filbert matrix and it has the same property of having an integer inverse.

### Adjacency and Ford circles

Two fractions $a/b$ and $c/d$ (in lowest terms) are called adjacent if $ad-bc=\pm 1,$ which implies that they differ from each other by a unit fraction: $\left|{\frac {1}{a}}-{\frac {1}{b}}\right|={\frac {|ad-bc|}{bd}}={\frac {1}{bd}}.$ For instance, ${\tfrac {1}{2}}$ and ${\tfrac {3}{5}}$ are adjacent: $1\cdot 5-2\cdot 3=-1$ and ${\tfrac {3}{5}}-{\tfrac {1}{2}}={\tfrac {1}{10}}$. However, some pairs of fractions whose difference is a unit fraction are not adjacent in this sense: for instance, ${\tfrac {1}{3}}$ and ${\tfrac {2}{3}}$ differ by a unit fraction, but are not adjacent, because for them $ad-bc=3$.
This terminology comes from the study of Ford circles. These are a system of circles that are tangent to the number line at a given fraction and have the squared denominator of the fraction as their diameter. Fractions $a/b$ and $c/d$ are adjacent if and only if their Ford circles are tangent circles.

## Applications
### Fair division and mathematics education

In mathematics education, unit fractions are often introduced earlier than other kinds of fractions, because of the ease of explaining them visually as equal parts of a whole. A common practical use of unit fractions is to divide food equally among a number of people, and exercises in performing this sort of fair division are a standard classroom example in teaching students to work with unit fractions.

### Probability and statistics

In a uniform distribution on a discrete space, all probabilities are equal unit fractions. Due to the principle of indifference, probabilities of this form arise frequently in statistical calculations.
Unequal probabilities related to unit fractions arise in Zipf's law. This states that, for many observed phenomena involving the selection of items from an ordered sequence, the probability that the $n$th item is selected is proportional to the unit fraction $1/n$.

### Combinatorial optimization

In the study of combinatorial optimization problems, bin packing problems involve an input sequence of items with fractional sizes, which must be placed into bins whose capacity (the total size of items placed into each bin) is one. Research into these problems has included the study of restricted bin packing problems where the item sizes are unit fractions.
One motivation for this is as a test case for more general bin packing methods. Another involves a form of pinwheel scheduling, in which a collection of messages of equal length must each be repeatedly broadcast on a limited number of communication channels, with each message having a maximum delay between the start times of its repeated broadcasts. An item whose delay is $k$ times the length of a message must occupy a fraction of at least $1/k$ of the time slots on the channel it is assigned to, so a solution to the scheduling problem can only come from a solution to the unit fraction bin packing problem with the channels as bins and the fractions $1/k$ as item sizes.
Even for bin packing problems with arbitrary item sizes, it can be helpful to round each item size up to the next larger unit fraction, and then apply a bin packing algorithm specialized for unit fraction sizes. In particular, the harmonic bin packing method does exactly this, and then packs each bin using items of only a single rounded unit fraction size.

### Physics

The energy levels of photons that can be absorbed or emitted by a hydrogen atom are, according to the Rydberg formula, proportional to the differences of two unit fractions. An explanation for this phenomenon is provided by the Bohr model, according to which the energy levels of electron orbitals in a hydrogen atom are inversely proportional to square unit fractions, and the energy of a photon is quantized to the difference between two levels.
Arthur Eddington argued that the fine-structure constant was a unit fraction. He initially thought it to be 1/136 and later changed his theory to 1/137. This contention has been falsified, given that current estimates of the fine structure constant are (to 6 significant digits) 1/137.036.