Docsity

Unary and Binary: Understanding Numbers and Their Representations in Discrete Mathematics, Slides of Discrete Mathematics

Partial preview of the text

Download Unary and Binary: Understanding Numbers and Their Representations in Discrete Mathematics and more Slides Discrete Mathematics in PDF only on Docsity!

Introduction to Discrete

Mathematics

Lecture 5 (September 12, 2007)

Ancient Wisdom:

Unary and Binary

Hang on a minute!

Isn’t unary too literal as a

representation?

Does it deserve to be an

“abstract” representation?

It’s important to respect each

representation, no matter how

primitive

Unary is a perfect example

1 + 2 + 3 + … + n-1 + n = S

n + n-1 + n-2 + … + 2 + 1 = S

n+1 + n+1 + n+1 + … + n+1 + n+1 = 2S

n(n+1) = 2S

S =

n(n+1)

1 + 2 + 3 + … + n-1 + n = S

n + n-1 + n-2 + … + 2 + 1 = S

n(n+1) = 2S

1 2........ n

n....... 2 1

There are n(n+1)

S =dots in the grid!

n(n+1)

n th^ Square Number

n = n 2

= ∆n + ∆n-

Breaking a square up in a new way

Breaking a square up in a new way

Breaking a square up in a new way

Breaking a square up in a new way

Breaking a square up in a new way

Here is an

alternative dot

proof of the same

sum….

• n = ∆n + ∆n-

• = n 2

n th^ Square Number