221. Natural Numbers - JulTob/Mathematics GitHub Wiki
The integers came from God, everything else is man-made.
$Leopold$ $Kronecker$
Natural Numbers
In mathematics, Natural Numbers
โโฐ = {0,1,2,3,4,5,6,7,8,9,10...}
โโบ = {1,2,3,4,5,6,7,8,9,10...}
We begin counting with these numbers, and they represent an infinite set.
Despite their antiquity, the algebra of these numbers holds endless mysteries and leads to new discoveries.
Important
In Natural Numbers, each element
โ๐{โ๐ (๐)}
๐ (๐): โโถโ -- Mapping for natural numbers
(โ)<โ> Input (โ); Output <โ>
๐โ ๐ โ ๐ (๐)โ ๐ (๐) -- Injective property
Injective property
The Inyective Property stablishes that every successor is unique to each number.Definition of Addition
๐+1 = ๐ (m)
๐+๐ = ๐ (๐ (๐ (๐ (๐ (...๐ (๐)๏ฝ โจ๏ฝ = ๐ โฟ(๐)
๏ธธ๐ iterations
๐+๐ (๐) = ๐ (๐+๐)
function addition(n,m : Natural)return Natural is
begin
if m = 1 then return natural'succ(n);
else return natural'succ(addition(n,m-1));
end if;
end addition;
Hereโs a number line showing successive increments:
0 1 2 3 4 5 6
โ โโโโโโโโโโโโโโโโโโโโโ
๐ (๐)
โ โ โ โ โ โ โ
1 2 3 4 5 6 7
โ โโโโโโโโโโโโโโโโโโโโโ
Commutative
Associative
Cancellation
The product of two natural numbers is defined recursively.
๐ยท๐ท๏ผ๐
๐ยท๐ (๐)๏ผ๐ยท๐๏นข๐
Recursive Multiplication Algorithm
function product(n,m : Natural) return Natural is
begin
if n = 1 then return m;
else return product(n-1,m)+m;
end if;
end product;
0 1 2 3 4 5 6
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
โจ๐ โ
0 ๐ ๐ธ๐ ๐น๐ ๐บ๐ ๐ป๐ ๐ผ๐
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
0 1 2 3 4 5 6
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
โฌ๏ธ ๐ฆ ๐ฉ ๐จ ๐ง ๐ฅ ๐ช
โจ2
0 1 2 3 4 5 6 7 8 9 10 11 12
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โฌ๏ธ ๐ฆ ๐ฉ ๐จ ๐ง ๐ฅ ๐ช
Distributive
Associative
Commutative
Cancellation
Powering natural numbers builds from repeated multiplication.
function power(base, exponent : Natural) return Natural is
begin
if exponent = 1
then return base;
else return power(base, exponent - 1) * base;
end if;
end power;
0 1 2 3 4 5 6
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
โฌ๏ธ ๐ฆ ๐ฉ ๐จ ๐ง ๐ฅ ๐ช
โฑโฒ2
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โฌ๏ธ ๐ฆ ๐ฉ ๐จ ๐ง
Tip
Natural numbers have an intrinsic order:
- For
$m<n$ , there exists$p$ such that$m+p=n$ .
For any two natural numbers
A crucial property of natural numbers is that they are well-ordered.
This property might seem obvious for simple subsets, but it applies even to complex sets defined indirectly. For example, the set of all numbers that can be expressed as
Warning
- The well-ordering principle guarantees that we can always identify a minimal element within any non-empty subset of
$( \mathbb{N} )$ . This foundational property underpins the Principle of Mathematical Induction.
Mathematical induction is a powerful proof technique that relies on the well-ordering principle.
Important
Suppose
-
$( 1 \in X )$ . - If
$( k \in X )$ for all$( k < n )$ , then$( n \in X )$ .
- If these conditions hold, then
$( X = \mathbb{N} )$ .
๐ โ ๐ธ โ โ
๐(๐) : Injection Property -- ๐(๐): Congruent with the property ๐ on ๐
๐โ: ๐(๐) -- Base case, typically 0 or 1
๐:๐(๐) โ ๐+1:๐(๐) -- Inductive step
-- If ๐ was congruent to the property
-- then it implies ๐+1 must also be congruent
โดโ๐ โถ ๐(๐) -- Then all ๐ must be congruent with ๐
Prove by induction
n=1
n โถ n+1
-
Base Case: Show that the smallest element (often
$(1)$ or$( 0 )$ is in$( X )$ . -
Inductive Step (Bootstrap): Show that if the property holds for
$( k < n )$ , it must also hold for$( n )$ .
To prove by induction that a finite set with ( n ) elements has exactly ( 2^n ) subsets:
- Base Case: For ( n = 1 ), a set with one element has two subsets (itself and the empty set).
- Inductive Step: For a set with ( n ) elements, divide subsets into those containing a chosen element and those not containing it. This gives ( 2^{n-1} + 2^{n-1} = 2^n ) subsets.
The sum of the first
Quick Exercise
Try to prove the following formula by induction: ```math 1 + 3 + 5 + \dots + (2n - 1) = n^2 ```Hint: Use the base case
- Well Ordering Axiom
- Every nonempty subset of the set of nonnegative integers contains a smallest element.
These axioms provide a framework for defining the structure of
๐โโ
๐ : โโถโ
| โ๐( โ!๐ := ๐ (๐) --- Each n has a unique successor
| ๐โโโ | โ๐[ ๐ (๐)โ ๐โ ]
| ๐โโ:
| ๐โโ๐
| ๐โ๐โถ๐ (๐)โ๐
โด ๐๏ผโ
๐โค๐ : { ๐<๐ โจ ๐=๐}
๐โฅ๐ : { ๐>๐ โจ ๐=๐}
๐โค๐ โน
๐+๐ โค ๐+๐
๐ยท๐ โค ๐ยท๐ ๐,๐,๐โโ
- Reflexiva
- ๐โค๐
- Antisimรฉtrica
- { mโคn โง nโคm } โน m=n
- Transitiva
- { mโคn โง nโค๐ } โน mโค๐
El conjunto โ con la relaciรณn โค es un conjunto bien ordenado.
El conjunto โ de los nรบmeros naturales es un semianillo ordenado conmutativo y con unidad.
โค
-
๏ผ
- Asociativa
- Conmutativa
-
ร
- Asociativo
- Distributivo en
๏ผ
- Conmutativo
-
๐ท
๐ทรn = n
In mathematics, we use axioms to define fundamental truths without proof to avoid circular reasoning or infinite regress. Here, we accept:
-
The Well-Ordering Principle as an axiom about
$( \mathbb{N} )$ . - The elementary arithmetic operations on
$( \mathbb{Z} )$ , such as addition, subtraction, and multiplication, as foundational knowledge.
[!NoOTE]
The axiomatic approach has roots in ancient Greek mathematics, particularly in Euclid's Elements, where geometry was derived from a small set of axioms. The power of this method lies in deriving vast mathematical truths from a minimal set of assumptions.
In this chapter, weโve laid the groundwork for exploring the structure and properties of
-
$( \mathbb{N} )$ is closed under addition and multiplication. -
Well-Ordering Principle: Every non-empty subset of
$( \mathbb{N} )$ has a least element. -
Principle of Mathematical Induction: Enables proofs that certain properties hold for all elements in
$( \mathbb{N} )$ . - Introduction of
$( \mathbb{Z} )$ as the smallest set containing$( \mathbb{N} )$ and closed under subtraction.
This structured understanding of
Letโs prove by mathematical induction that for all positive integers
We start by verifying the formula for
- For
$( n = 1 )$ , the left side of the equation is simply$( 1^2 = 1 )$ . - The right side of the equation, with
$( n = 1 )$ , becomes:
$\frac{1(2 \cdot 1 + 1)(1 + 1)}{6}$ $= \frac{1 \cdot 3 \cdot 2}{6}$ $= \frac{6}{6}$ $= 1$
- Since both sides are equal, the formula holds for
$( n = 1 )$ .
Thus, the base case is true.
Assume that the formula holds for some positive integer
This assumption is called the inductive hypothesis.
We need to prove that if the formula holds for
Starting with the left side of the equation for
By the inductive hypothesis, we know that:
So, we can substitute this into our expression:
Now, weโll simplify this expression by combining terms.
-
Rewrite
$( (k + 1)^2 )$ with a common denominator:
-
Factor out
$( (k + 1) )$ from the numerator:
- Expand the terms inside the brackets:
- Combine like terms:
- Factor the quadratic expression in the brackets:
This matches the right side of the expression we wanted to prove for
Since we have shown that:
- The formula holds for the base case
$( n = 1 )$ , - If the formula holds for
$( n = k )$ , then it also holds for$( n = k + 1 )$ ,
we conclude by the principle of mathematical induction that the formula is true for all positive integers
To prove the generalized triangle inequality, weโll use mathematical induction on
For
This is clearly correct, so the base case holds.
Assume that the statement holds for some positive integer
This assumption is called the inductive hypothesis.
We need to prove that if the statement holds for
Consider the expression
Now, we apply the triangle inequality for two terms
By the inductive hypothesis, we know that:
Substituting this into our inequality, we obtain:
This completes the inductive step.
Since we have shown that:
- The statement holds for the base case
$( n = 1 )$ , - If the statement holds for
$( n = k )$ , then it also holds for$( n = k + 1 )$ ,
we conclude by the principle of mathematical induction that the inequality is true for all positive integers