Lecture 3 Flashcards

1
Q

What is weak induction?

A

Weak math induction assumes P(k) is true and uses that and only that to show P(k+1) is true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is Strong induction

A

assumes P(1), P(2),…P(k) are all true and uses that to show that P(k+1) is true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the definition of Divisors

A

Let a,b and c be integers such that a= bc
Then b and c are said to divide (or are factors) of a while a is said to be a multiple of b (as well as of c).
b|a ^ c|a

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the formula for number of multiples up to Given n

A

In general: the number of d-multiples less than N is given by:
|(m in a set of Z+ | d|m and m <= N)| = N/d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the 2 equations related to ‘a congruent b (mod n)

A
a = kn+b 
n|(a-b)
Ex. 10 congruent 14 (mod 4)
4 divides 10 with a remainder of 2 
Same for 14
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the definition of Mod N

A

a and b have the same remainder when they are divided by n.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do you find 1’s compliment?

A

Invert all the 1s and 0s in a binary value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do you find 2’s compliment?

A

Find 1s compliment and then add 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

When dealing with signed numbers what bit is the signed bit?

A

The leftmost bit. A 0 indicates a positive magnitude and a 1 indicates a negative magnitude.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the range of values for 2’s complement form?

A

The equation is : -(2^n-1) to + (2^n-1 (-1))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the range for an 8 bit number using 2’s complement

A

n=8
-(2^8-1) = -128
(2^8-1)-1 = 2^7-1= 127
Total combination of numbers would be 256

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the 3 parts to the divisor theorem?

A

Let a, b, and c be integers. Then:

  1. a | b ^ a | c then a | (b+c)
  2. a | b then a | bc
  3. a | b ^ b | c then a | c
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the definition of a Prime Number

A

A number n >= 2 is prime if it is only divisble by 1 and itself. Numbers that aren’t prime are called composite

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the fundamental Theorem of Arithmetic?

A

Any number n >= 2 is expressible asa a unique product of 1 or more prime numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly