Jump to content

Integer: Difference between revisions

From Wikibase
Created page with "'''Integers''' are numbers that can be written as the difference between two natural numbers. The set of all integers is often denoted by $\mathbb{Z}$, and $$ z \in \mathbb{Z} \iff \exists a,b \in \mathbb{N}, z=a-b $$ == Formal definition == $$ \mathbb{Z} = \left(\mathbb{N} \times \mathbb{N}\right)/\sim, $$ where $\sim: \forall a,b,c,d \in \mathbb{N},\, (a,b) \sim (c,d) \iff a-b = c-d$."
 
 
Line 14: Line 14:


where $\sim: \forall a,b,c,d \in \mathbb{N},\, (a,b) \sim (c,d) \iff a-b = c-d$.
where $\sim: \forall a,b,c,d \in \mathbb{N},\, (a,b) \sim (c,d) \iff a-b = c-d$.
== Properties ==
=== [[set#Cardinality|Countability]] ===
{{Hidden proof}}
Let
$$
f(n)=
\begin{cases}
\dfrac{n}{2}, & n \text{ even},\\[6pt]
-\dfrac{n+1}{2}, & n \text{ odd}.
\end{cases}
$$
then
$$
f(\mathbb{N})=\mathbb{Z}
$$
{{End hidden}}

Latest revision as of 15:55, 28 October 2026

Languages: English · français · Esperanto

Integers are numbers that can be written as the difference between two natural numbers.

The set of all integers is often denoted by $\mathbb{Z}$, and

$$ z \in \mathbb{Z} \iff \exists a,b \in \mathbb{N}, z=a-b $$

Formal definition

$$ \mathbb{Z} = \left(\mathbb{N} \times \mathbb{N}\right)/\sim, $$

where $\sim: \forall a,b,c,d \in \mathbb{N},\, (a,b) \sim (c,d) \iff a-b = c-d$.

Properties