Lec1. Numeral System Flashcards
Explain each term: a = dq + r
a is the dividend
d is the divisor
q is the quotient
r is the remainder
what is a div d?
q
what is a mod d?
r
True/False: Base b expansion: b > 1 and n ≥ 0
False. b must be larger than 1 and n must be larger than 0 since (0)b = 0 –> not giving a unique case
True/False: if the base b = 7, a possibilities is ak = 8
False, ak < b
What is the domain and codomain of div?
div: N x N* -> N
(a,d) -> q
div ((a,d)) = q or a div d = q
What is the domain and codomain of mod?
mod: N x N* -> N
(a,d) -> r
mod((a,d)) or a mod d = r
True/False: r is the number expansion of base b
true
True/False: 0 ≤ r ≤ d
false -> 0 ≤ r ≤ d-1
A digit in binary notation is called ____
bit
A ___ which consists of 8 bits, can be represented by 2 digit-hexadecimal number
byte