Let $R$ be a nonempty set and $+,\times:R^2\to R$ two operations on $R$.
We say that $\times$
distributes over $+$ if for every $a,b,c\in R$ we have both
$$ a\times (b+c) = (a\times b)+(a\times c) $$
and
$$ (b + c)\times a = (b\times a)+(c\times a) $$
We say that the triple $(R, +,\times)$ is a
ring if
- Both $+$ and $\times$ are associative.
- $(R,+)$ is a commutative group with identity 0, which we call the additive identity.
- $\times$ has an identity element, 1, which we call the multaplicative identity.
- $\times$ distributes over $+$.
For rings we use the familiar notation for addition and multiplication. In particular $a+(-b)$ is written $a-b$, and $a\times b$ is written $ab$, and $a\times b^{-1}$ is written $a/b$. We also assume the familiar
PEMDAS order of operations.
For a natural number $n\in\Bbb N$ and element $a\in R$, we define $na$ as "repeated addition", similar to the corresponding definition for group elements. Likewise $a^n$ is defined as repeated multiplication. The definition also extends to $0a$ and $(-n)a$ and $a^0$ and $a^{-n}$ in the same ways.
If moreover $(R\smallsetminus \{0\}, \times)$ forms a commutative group, then we say that $(R,+,\times)$ is a
field.
For the rest of this section, assume that $(R,+,\times)$ is a ring.