Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
= (a
1
, b
1
), (a
1
, b
3
), (a
2
, b
2
), (a
2
, b
3
), (a
3
, b
1
), (a
3
, b
3
), (a
4
, b
1
)
b
1
b
2
b
3
a
1
1 0 1
a
2
0 1 1
a
3
1 0 1
a
4
1 0 0
M
=
1 0 1
0 1 1
1 0 1
1 0 0
Relation Example
Example
A = a
1
, a
2
, a
3
, a
4
, B = b
1
, b
2
, b
3
= (a
1
, b
1
), (a
1
, b
3
), (a
2
, b
2
), (a
2
, b
3
), (a
3
, b
1
), (a
3
, b
3
), (a
4
, b
1
)
b
1
b
2
b
3
a
1
1 0 1
a
2
0 1 1
a
3
1 0 1
a
4
1 0 0
M
=
1 0 1
0 1 1
1 0 1
1 0 0
Relation Composition
Denition
relation composition:
let A B, B C
= (a, c) [ a A, c C, b B [ab bc]
M
= M
=
1 0 0
0 0 1
0 1 1
0 1 0
1 0 1
M
=
1 1 0 0
0 0 1 1
0 1 1 0
M
=
1 1 0 0
0 1 1 0
0 1 1 1
0 0 1 1
1 1 1 0
Relation Composition Associativity
relation composition is associative
() = ().
(a, d) ()
c [(a, c) (c, d) ]
c [b [(a, b) (b, c) ] (c, d) ]
b [(a, b) c [(b, c) (c, d) ]]
b [(a, b) (b, d) ]
(a, d) ()
Relation Composition Associativity
relation composition is associative
() = ().
(a, d) ()
c [(a, c) (c, d) ]
c [b [(a, b) (b, c) ] (c, d) ]
b [(a, b) c [(b, c) (c, d) ]]
b [(a, b) (b, d) ]
(a, d) ()
Relation Composition Associativity
relation composition is associative
() = ().
(a, d) ()
c [(a, c) (c, d) ]
c [b [(a, b) (b, c) ] (c, d) ]
b [(a, b) c [(b, c) (c, d) ]]
b [(a, b) (b, d) ]
(a, d) ()
Relation Composition Associativity
relation composition is associative
() = ().
(a, d) ()
c [(a, c) (c, d) ]
c [b [(a, b) (b, c) ] (c, d) ]
b [(a, b) c [(b, c) (c, d) ]]
b [(a, b) (b, d) ]
(a, d) ()
Relation Composition Associativity
relation composition is associative
() = ().
(a, d) ()
c [(a, c) (c, d) ]
c [b [(a, b) (b, c) ] (c, d) ]
b [(a, b) c [(b, c) (c, d) ]]
b [(a, b) (b, d) ]
(a, d) ()
Relation Composition Associativity
relation composition is associative
() = ().
(a, d) ()
c [(a, c) (c, d) ]
c [b [(a, b) (b, c) ] (c, d) ]
b [(a, b) c [(b, c) (c, d) ]]
b [(a, b) (b, d) ]
(a, d) ()
Relation Composition Associativity
relation composition is associative
() = ().
(a, d) ()
c [(a, c) (c, d) ]
c [b [(a, b) (b, c) ] (c, d) ]
b [(a, b) c [(b, c) (c, d) ]]
b [(a, b) (b, d) ]
(a, d) ()
Relation Composition Theorems
let , A B, and
let , B C
( ) =
( )
( ) =
( )
( )
Relation Composition Theorems
( ) = .
(a, c) ( )
b [(a, b) (b, c) ( )]
b [(a, b) ((b, c) (b, c) )]
b [((a, b) (b, c) )
((a, b) (b, c) )]
(a, c) (a, c)
(a, c)
Relation Composition Theorems
( ) = .
(a, c) ( )
b [(a, b) (b, c) ( )]
b [(a, b) ((b, c) (b, c) )]
b [((a, b) (b, c) )
((a, b) (b, c) )]
(a, c) (a, c)
(a, c)
Relation Composition Theorems
( ) = .
(a, c) ( )
b [(a, b) (b, c) ( )]
b [(a, b) ((b, c) (b, c) )]
b [((a, b) (b, c) )
((a, b) (b, c) )]
(a, c) (a, c)
(a, c)
Relation Composition Theorems
( ) = .
(a, c) ( )
b [(a, b) (b, c) ( )]
b [(a, b) ((b, c) (b, c) )]
b [((a, b) (b, c) )
((a, b) (b, c) )]
(a, c) (a, c)
(a, c)
Relation Composition Theorems
( ) = .
(a, c) ( )
b [(a, b) (b, c) ( )]
b [(a, b) ((b, c) (b, c) )]
b [((a, b) (b, c) )
((a, b) (b, c) )]
(a, c) (a, c)
(a, c)
Relation Composition Theorems
( ) = .
(a, c) ( )
b [(a, b) (b, c) ( )]
b [(a, b) ((b, c) (b, c) )]
b [((a, b) (b, c) )
((a, b) (b, c) )]
(a, c) (a, c)
(a, c)
Converse Relation
Denition
1
= (b, a) [ (a, b)
M
1 = M
T
1
=
1
( )
1
=
1
1
1
1
Converse Relation Theorems
1
=
1
.
(b, a)
1
(a, b)
(a, b) /
(b, a) /
1
(b, a)
1
Converse Relation Theorems
1
=
1
.
(b, a)
1
(a, b)
(a, b) /
(b, a) /
1
(b, a)
1
Converse Relation Theorems
1
=
1
.
(b, a)
1
(a, b)
(a, b) /
(b, a) /
1
(b, a)
1
Converse Relation Theorems
1
=
1
.
(b, a)
1
(a, b)
(a, b) /
(b, a) /
1
(b, a)
1
Converse Relation Theorems
1
=
1
.
(b, a)
1
(a, b)
(a, b) /
(b, a) /
1
(b, a)
1
Converse Relation Theorems
( )
1
=
1
1
.
(b, a) ( )
1
(a, b) ( )
(a, b) (a, b)
(b, a)
1
(b, a)
1
(b, a)
1
1
Converse Relation Theorems
( )
1
=
1
1
.
(b, a) ( )
1
(a, b) ( )
(a, b) (a, b)
(b, a)
1
(b, a)
1
(b, a)
1
1
Converse Relation Theorems
( )
1
=
1
1
.
(b, a) ( )
1
(a, b) ( )
(a, b) (a, b)
(b, a)
1
(b, a)
1
(b, a)
1
1
Converse Relation Theorems
( )
1
=
1
1
.
(b, a) ( )
1
(a, b) ( )
(a, b) (a, b)
(b, a)
1
(b, a)
1
(b, a)
1
1
Converse Relation Theorems
( )
1
=
1
1
.
(b, a) ( )
1
(a, b) ( )
(a, b) (a, b)
(b, a)
1
(b, a)
1
(b, a)
1
1
Converse Relation Theorems
( )
1
=
1
1
.
( )
1
= ( )
1
=
1
1
=
1
1
=
1
1
Converse Relation Theorems
( )
1
=
1
1
.
( )
1
= ( )
1
=
1
1
=
1
1
=
1
1
Converse Relation Theorems
( )
1
=
1
1
.
( )
1
= ( )
1
=
1
1
=
1
1
=
1
1
Converse Relation Theorems
( )
1
=
1
1
.
( )
1
= ( )
1
=
1
1
=
1
1
=
1
1
Relation Composition Converse
Theorem
()
1
=
1
1
Proof.
(c, a) ()
1
(a, c)
b [(a, b) (b, c) ]
b [(b, a)
1
(c, b)
1
]
(c, a)
1
1
Relation Composition Converse
Theorem
()
1
=
1
1
Proof.
(c, a) ()
1
(a, c)
b [(a, b) (b, c) ]
b [(b, a)
1
(c, b)
1
]
(c, a)
1
1
Relation Composition Converse
Theorem
()
1
=
1
1
Proof.
(c, a) ()
1
(a, c)
b [(a, b) (b, c) ]
b [(b, a)
1
(c, b)
1
]
(c, a)
1
1
Relation Composition Converse
Theorem
()
1
=
1
1
Proof.
(c, a) ()
1
(a, c)
b [(a, b) (b, c) ]
b [(b, a)
1
(c, b)
1
]
(c, a)
1
1
Relation Composition Converse
Theorem
()
1
=
1
1
Proof.
(c, a) ()
1
(a, c)
b [(a, b) (b, c) ]
b [(b, a)
1
(c, b)
1
]
(c, a)
1
1
Relation Composition Converse
Theorem
()
1
=
1
1
Proof.
(c, a) ()
1
(a, c)
b [(a, b) (b, c) ]
b [(b, a)
1
(c, b)
1
]
(c, a)
1
1
Topics
1 Relations
Introduction
Relation Properties
Equivalence Relations
2 Functions
Introduction
Pigeonhole Principle
Recursion
Relation Properties
A A
binary relation on A
let
n
mean
identity relation: E = (x, x) [ x A
Relation Properties
A A
binary relation on A
let
n
mean
identity relation: E = (x, x) [ x A
Relation Properties
A A
binary relation on A
let
n
mean
identity relation: E = (x, x) [ x A
Reexivity
reexive
A A
a [aa]
E
nonreexive:
a [(aa)]
irreexive:
a [(aa)]
Reexivity
reexive
A A
a [aa]
E
nonreexive:
a [(aa)]
irreexive:
a [(aa)]
Reexivity
reexive
A A
a [aa]
E
nonreexive:
a [(aa)]
irreexive:
a [(aa)]
Reexivity
reexive
A A
a [aa]
E
nonreexive:
a [(aa)]
irreexive:
a [(aa)]
Reexivity Examples
Example
1
1, 2 1, 2
1
= (1, 1), (1, 2), (2, 2)
1
is reexive
Example
2
1, 2, 3 1, 2, 3
2
= (1, 1), (1, 2), (2, 2)
2
is nonreexive
Reexivity Examples
Example
1
1, 2 1, 2
1
= (1, 1), (1, 2), (2, 2)
1
is reexive
Example
2
1, 2, 3 1, 2, 3
2
= (1, 1), (1, 2), (2, 2)
2
is nonreexive
Reexivity Examples
Example
1, 2, 3 1, 2, 3
= (1, 2), (2, 1), (2, 3)
is irreexive
Reexivity Examples
Example
Z Z
= (a, b) [ ab 0
is reexive
Symmetry
symmetric
A A
a, b [(a = b) (ab ba) ((ab) (ba))]
a, b [(a = b) (ab ba)]
1
=
asymmetric:
a, b [(a ,= b) (ab (ba)) ((ab) ba))]
antisymmetric:
a, b [(a = b) (ab (ba))]
a, b [(a = b) (ab) (ba)]
a, b [(ab ba) (a = b)]
a, b [(ab ba) (a = b)]
Symmetry
symmetric
A A
a, b [(a = b) (ab ba) ((ab) (ba))]
a, b [(a = b) (ab ba)]
1
=
asymmetric:
a, b [(a ,= b) (ab (ba)) ((ab) ba))]
antisymmetric:
a, b [(a = b) (ab (ba))]
a, b [(a = b) (ab) (ba)]
a, b [(ab ba) (a = b)]
a, b [(ab ba) (a = b)]
Symmetry
symmetric
A A
a, b [(a = b) (ab ba) ((ab) (ba))]
a, b [(a = b) (ab ba)]
1
=
asymmetric:
a, b [(a ,= b) (ab (ba)) ((ab) ba))]
antisymmetric:
a, b [(a = b) (ab (ba))]
a, b [(a = b) (ab) (ba)]
a, b [(ab ba) (a = b)]
a, b [(ab ba) (a = b)]
Symmetry
symmetric
A A
a, b [(a = b) (ab ba) ((ab) (ba))]
a, b [(a = b) (ab ba)]
1
=
asymmetric:
a, b [(a ,= b) (ab (ba)) ((ab) ba))]
antisymmetric:
a, b [(a = b) (ab (ba))]
a, b [(a = b) (ab) (ba)]
a, b [(ab ba) (a = b)]
a, b [(ab ba) (a = b)]
Symmetry
symmetric
A A
a, b [(a = b) (ab ba) ((ab) (ba))]
a, b [(a = b) (ab ba)]
1
=
asymmetric:
a, b [(a ,= b) (ab (ba)) ((ab) ba))]
antisymmetric:
a, b [(a = b) (ab (ba))]
a, b [(a = b) (ab) (ba)]
a, b [(ab ba) (a = b)]
a, b [(ab ba) (a = b)]
Symmetry
symmetric
A A
a, b [(a = b) (ab ba) ((ab) (ba))]
a, b [(a = b) (ab ba)]
1
=
asymmetric:
a, b [(a ,= b) (ab (ba)) ((ab) ba))]
antisymmetric:
a, b [(a = b) (ab (ba))]
a, b [(a = b) (ab) (ba)]
a, b [(ab ba) (a = b)]
a, b [(ab ba) (a = b)]
Symmetry
symmetric
A A
a, b [(a = b) (ab ba) ((ab) (ba))]
a, b [(a = b) (ab ba)]
1
=
asymmetric:
a, b [(a ,= b) (ab (ba)) ((ab) ba))]
antisymmetric:
a, b [(a = b) (ab (ba))]
a, b [(a = b) (ab) (ba)]
a, b [(ab ba) (a = b)]
a, b [(ab ba) (a = b)]
Symmetry
symmetric
A A
a, b [(a = b) (ab ba) ((ab) (ba))]
a, b [(a = b) (ab ba)]
1
=
asymmetric:
a, b [(a ,= b) (ab (ba)) ((ab) ba))]
antisymmetric:
a, b [(a = b) (ab (ba))]
a, b [(a = b) (ab) (ba)]
a, b [(ab ba) (a = b)]
a, b [(ab ba) (a = b)]
Symmetry Examples
Example
1, 2, 3 1, 2, 3
= (1, 2), (2, 1), (2, 3)
is asymmetric
Symmetry Examples
Example
Z Z
= (a, b) [ ab 0
is symmetric
Symmetry Examples
Example
1, 2, 3 1, 2, 3
= (1, 1), (2, 2)
is symmetric and antisymmetric
Transitivity
transitive
A A
a, b, c [(ab bc) (ac)]
2
nontransitive:
a, b, c [(ab bc) (ac)]
antitransitive:
a, b, c [(ab bc) (ac)]
Transitivity
transitive
A A
a, b, c [(ab bc) (ac)]
2
nontransitive:
a, b, c [(ab bc) (ac)]
antitransitive:
a, b, c [(ab bc) (ac)]
Transitivity
transitive
A A
a, b, c [(ab bc) (ac)]
2
nontransitive:
a, b, c [(ab bc) (ac)]
antitransitive:
a, b, c [(ab bc) (ac)]
Transitivity
transitive
A A
a, b, c [(ab bc) (ac)]
2
nontransitive:
a, b, c [(ab bc) (ac)]
antitransitive:
a, b, c [(ab bc) (ac)]
Transitivity Examples
Example
1, 2, 3 1, 2, 3
= (1, 2), (2, 1), (2, 3)
is antitransitive
Transitivity Examples
Example
Z Z
= (a, b) [ ab 0
is nontransitive
Converse Relation Properties
Theorem
The reexivity, symmetry and transitivity properties
are preserved in the converse relation.
Closures
reexive closure:
r
= E
symmetric closure:
s
=
1
transitive closure:
t
i =1,2,3,...
i
=
2
3
Closures
reexive closure:
r
= E
symmetric closure:
s
=
1
transitive closure:
t
i =1,2,3,...
i
=
2
3
Closures
reexive closure:
r
= E
symmetric closure:
s
=
1
transitive closure:
t
i =1,2,3,...
i
=
2
3
Special Relations
predecessor - successor
Z Z
= (a, b) [ a b = 1
irreexive
antisymmetric
antitransitive
Special Relations
adjacency
Z Z
= (a, b) [ [a b[ = 1
irreexive
symmetric
antitransitive
Special Relations
strict order
Z Z
= (a, b) [ a < b
irreexive
antisymmetric
transitive
Special Relations
partial order
Z Z
= (a, b) [ a b
reexive
antisymmetric
transitive
Special Relations
preorder
Z Z
= (a, b) [ [a[ [b[
reexive
asymmetric
transitive
Special Relations
limited dierence
Z Z, m Z
+
= (a, b) [ [a b[ m
reexive
symmetric
nontransitive
Special Relations
comparability
U U
= (a, b) [ (a b) (b a)
reexive
symmetric
nontransitive
Special Relations
sibling
irreexive
symmetric
transitive
how can a relation be symmetric, transitive and nonreexive?
Special Relations
sibling
irreexive
symmetric
transitive
how can a relation be symmetric, transitive and nonreexive?
Topics
1 Relations
Introduction
Relation Properties
Equivalence Relations
2 Functions
Introduction
Pigeonhole Principle
Recursion
Compatibility Relations
Denition
compatibility relation:
reexive
symmetric
when drawing, lines instead of arrows
matrix representation as a triangle matrix
1
is a compatibility relation
Compatibility Relations
Denition
compatibility relation:
reexive
symmetric
when drawing, lines instead of arrows
matrix representation as a triangle matrix
1
is a compatibility relation
Compatibility Relations
Denition
compatibility relation:
reexive
symmetric
when drawing, lines instead of arrows
matrix representation as a triangle matrix
1
is a compatibility relation
Compatibility Relation Example
Example
A = a
1
, a
2
, a
3
, a
4
= (a
1
, a
1
), (a
2
, a
2
),
(a
3
, a
3
), (a
4
, a
4
),
(a
1
, a
2
), (a
2
, a
1
),
(a
2
, a
4
), (a
4
, a
2
),
(a
3
, a
4
), (a
4
, a
3
)
1 1 0 0
1 1 0 1
0 0 1 1
0 1 1 1
1
0 0
0 1 1
Compatibility Relation Example
Example
A = a
1
, a
2
, a
3
, a
4
= (a
1
, a
1
), (a
2
, a
2
),
(a
3
, a
3
), (a
4
, a
4
),
(a
1
, a
2
), (a
2
, a
1
),
(a
2
, a
4
), (a
4
, a
2
),
(a
3
, a
4
), (a
4
, a
3
)
1 1 0 0
1 1 0 1
0 0 1 1
0 1 1 1
1
0 0
0 1 1
Compatibility Relation Example
Example (
1
)
P: persons, L: languages
P = p
1
, p
2
, p
3
, p
4
, p
5
, p
6
L = l
1
, l
2
, l
3
, l
4
, l
5
P L
M
=
1 1 0 0 0
1 1 0 0 0
0 0 1 0 1
1 0 1 1 0
0 0 0 1 0
0 1 1 0 0
M
1 =
1 1 0 1 0 0
1 1 0 0 0 1
0 0 1 1 0 1
0 0 0 1 1 0
0 0 1 0 0 0
Compatibility Relation Example
Example (
1
)
P: persons, L: languages
P = p
1
, p
2
, p
3
, p
4
, p
5
, p
6
L = l
1
, l
2
, l
3
, l
4
, l
5
P L
M
=
1 1 0 0 0
1 1 0 0 0
0 0 1 0 1
1 0 1 1 0
0 0 0 1 0
0 1 1 0 0
M
1 =
1 1 0 1 0 0
1 1 0 0 0 1
0 0 1 1 0 1
0 0 0 1 1 0
0 0 1 0 0 0
Compatibility Relation Example
Example (
1
)
1
P P
M
1 =
1 1 0 1 0 1
1 1 0 1 0 1
0 0 1 1 0 1
1 1 1 1 1 1
0 0 0 1 1 0
1 1 1 1 0 1
Compatibility Block
Denition
compatibility block: C A
a, b [a C b C ab]
maximal compatibility block:
not a subset of another compatibility block
an element can be a member of more than one MCB
complete cover: C
C
2
= a
2
, a
4
, a
6
C
3
= a
1
, a
2
, a
4
, a
6
(MCB)
C
(A) = a
1
, a
2
, a
4
, a
6
,
a
3
, a
4
, a
6
,
a
4
, a
5
C
2
= a
2
, a
4
, a
6
C
3
= a
1
, a
2
, a
4
, a
6
(MCB)
C
(A) = a
1
, a
2
, a
4
, a
6
,
a
3
, a
4
, a
6
,
a
4
, a
5
C
2
= a
2
, a
4
, a
6
C
3
= a
1
, a
2
, a
4
, a
6
(MCB)
C
(A) = a
1
, a
2
, a
4
, a
6
,
a
3
, a
4
, a
6
,
a
4
, a
5
Equivalence Relations
Denition
equivalence relation:
reexive
symmetric
transitive
equivalence classes (partitions)
every element is a member of exactly one equivalence class
complete cover: C
Equivalence Relations
Denition
equivalence relation:
reexive
symmetric
transitive
equivalence classes (partitions)
every element is a member of exactly one equivalence class
complete cover: C
Functions
Denition
function: f : X Y
x X y
1
, y
2
Y (x, y
1
), (x, y
2
) f y
1
= y
2
X: domain, Y: codomain (or range)
y = f (x) is the same as (x, y) f
y is the image of x under f
let f : X Y, and X
1
X
subset image: f (X
1
) = f (x) [ x X
1
Functions
Denition
function: f : X Y
x X y
1
, y
2
Y (x, y
1
), (x, y
2
) f y
1
= y
2
X: domain, Y: codomain (or range)
y = f (x) is the same as (x, y) f
y is the image of x under f
let f : X Y, and X
1
X
subset image: f (X
1
) = f (x) [ x X
1
k n = 0
h(f (n 1)) n > 0
Recursion Examples
Example
f 91(n) =
n 10 n > 100
f 91(f 91(n + 11)) n 100
Example (factorial)
f (n) =
1 n = 0
n f (n 1) n > 0
Recursion Examples
Example
f 91(n) =
n 10 n > 100
f 91(f 91(n + 11)) n 100
Example (factorial)
f (n) =
1 n = 0
n f (n 1) n > 0
Euclid Algorithm
Example (greatest common divisor)
gcd(a, b) =
b b[a
gcd(b, a mod b) b a
gcd(333, 84) = gcd(84, 333 mod 84)
= gcd(84, 81)
= gcd(81, 84 mod 81)
= gcd(81, 3)
= 3
Euclid Algorithm
Example (greatest common divisor)
gcd(a, b) =
b b[a
gcd(b, a mod b) b a
gcd(333, 84) = gcd(84, 333 mod 84)
= gcd(84, 81)
= gcd(81, 84 mod 81)
= gcd(81, 3)
= 3
Fibonacci Series
Fibonacci series
F
n
= b(n) =
1 n = 1
1 n = 2
b(n 1) + b(n 2) n > 2
F
1
F
2
F
3
F
4
F
5
F
6
F
7
F
8
. . .
1 1 2 3 5 8 13 21 . . .
Fibonacci Series
Theorem
n
i =1
F
i
2
= F
n
F
n+1
Proof.
n = 2 :
2
i =1
F
i
2
= F
1
2
+ F
2
2
= 1 + 1 = 1 2 = F
2
F
3
n = k :
k
i =1
F
i
2
= F
k
F
k+1
n = k + 1 :
k+1
i =1
F
i
2
=
k
i =1
F
i
2
+ F
k+1
2
= F
k
F
k+1
+ F
k+1
2
= F
k+1
(F
k
+ F
k+1
)
= F
k+1
F
k+2
Fibonacci Series
Theorem
n
i =1
F
i
2
= F
n
F
n+1
Proof.
n = 2 :
2
i =1
F
i
2
= F
1
2
+ F
2
2
= 1 + 1 = 1 2 = F
2
F
3
n = k :
k
i =1
F
i
2
= F
k
F
k+1
n = k + 1 :
k+1
i =1
F
i
2
=
k
i =1
F
i
2
+ F
k+1
2
= F
k
F
k+1
+ F
k+1
2
= F
k+1
(F
k
+ F
k+1
)
= F
k+1
F
k+2
Fibonacci Series
Theorem
n
i =1
F
i
2
= F
n
F
n+1
Proof.
n = 2 :
2
i =1
F
i
2
= F
1
2
+ F
2
2
= 1 + 1 = 1 2 = F
2
F
3
n = k :
k
i =1
F
i
2
= F
k
F
k+1
n = k + 1 :
k+1
i =1
F
i
2
=
k
i =1
F
i
2
+ F
k+1
2
= F
k
F
k+1
+ F
k+1
2
= F
k+1
(F
k
+ F
k+1
)
= F
k+1
F
k+2
Fibonacci Series
Theorem
n
i =1
F
i
2
= F
n
F
n+1
Proof.
n = 2 :
2
i =1
F
i
2
= F
1
2
+ F
2
2
= 1 + 1 = 1 2 = F
2
F
3
n = k :
k
i =1
F
i
2
= F
k
F
k+1
n = k + 1 :
k+1
i =1
F
i
2
=
k
i =1
F
i
2
+ F
k+1
2
= F
k
F
k+1
+ F
k+1
2
= F
k+1
(F
k
+ F
k+1
)
= F
k+1
F
k+2
Fibonacci Series
Theorem
n
i =1
F
i
2
= F
n
F
n+1
Proof.
n = 2 :
2
i =1
F
i
2
= F
1
2
+ F
2
2
= 1 + 1 = 1 2 = F
2
F
3
n = k :
k
i =1
F
i
2
= F
k
F
k+1
n = k + 1 :
k+1
i =1
F
i
2
=
k
i =1
F
i
2
+ F
k+1
2
= F
k
F
k+1
+ F
k+1
2
= F
k+1
(F
k
+ F
k+1
)
= F
k+1
F
k+2
Fibonacci Series
Theorem
n
i =1
F
i
2
= F
n
F
n+1
Proof.
n = 2 :
2
i =1
F
i
2
= F
1
2
+ F
2
2
= 1 + 1 = 1 2 = F
2
F
3
n = k :
k
i =1
F
i
2
= F
k
F
k+1
n = k + 1 :
k+1
i =1
F
i
2
=
k
i =1
F
i
2
+ F
k+1
2
= F
k
F
k+1
+ F
k+1
2
= F
k+1
(F
k
+ F
k+1
)
= F
k+1
F
k+2
Fibonacci Series
Theorem
n
i =1
F
i
2
= F
n
F
n+1
Proof.
n = 2 :
2
i =1
F
i
2
= F
1
2
+ F
2
2
= 1 + 1 = 1 2 = F
2
F
3
n = k :
k
i =1
F
i
2
= F
k
F
k+1
n = k + 1 :
k+1
i =1
F
i
2
=
k
i =1
F
i
2
+ F
k+1
2
= F
k
F
k+1
+ F
k+1
2
= F
k+1
(F
k
+ F
k+1
)
= F
k+1
F
k+2
Ackermann Function
Ackermann function
ack(x, y) =
y + 1 x = 0
ack(x 1, 1) y = 0
ack(x 1, ack(x, y 1)) x > 0 y > 0
References
Required Reading: Grimaldi
Chapter 5: Relations and Functions
5.2. Functions: Plain and One-to-One
5.3. Onto Functions: Stirling Numbers of the Second Kind
5.5. The Pigeonhole Principle
5.6. Function Composition and Inverse Functions
Supplementary Reading: ODonnell, Hall, Page
Chapter 11: Functions