Modular Arithmetic Flashcards

1
Q

What is a residue class?

A

The collection of all integers congruent to a modulo n. For example, the residue class of 0 modulo 3 contains all the integers that are exactly divisible by 3.

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

Why is every odd number congruent to 1(mod 2)?

A

Every odd number has remainder 2 after division by 1.

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

What is Fermat’s little theorem?

A

If p is prime and a is not a multiple of p, then:

a^p-1 = 1(mod p)

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

What is the Hardy-Ramanujan number and why is it special?

A

It is the number 1729, which is the smallest number that can be expressed as the sum of two cubes in two different ways.

1729 = 1^3 + 12^3 = 9^3 + 10^3

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

State the test for divisibility by 3.

A

If an integer is divisible by 3, then so is it’s digit sum.

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

State the test for divisibility by 9.

A

If an integer is divisible by 9, then so is it’s digit sum.

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

State the test for divisibility by 4.

A

If an integer is divisible by 4, then the number formed from the final two digits of the integer is also divisible by 4.

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

What are co-prime integers?

A

Two integers for which the highest common factor they share is 1.

If two integers a and n are co-prime, then there exists a multiplicative inverse of a modulo n.

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

What is a multiplicative inverse of a modulo n?

A

An integer v, such that av=1(mod n).

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

The solution set of a linear congruence ax=b(mod n) is given as…?

A

x=vb(mod n), where v is a multiplicative inverse of a modulo n.

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

If a linear congruence ax=b(mod n) has integers a and n that are not co-prime, when does it have solutions? State an equivalent linear congruence.

A

It has solutions when b is divisible by d, the highest common factor of he integers a and n.

a/d(x) = b/d(mod n/d)

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

What is the rule E for an affine cipher modulo 26?

A

E(x) = ax + b (mod 26)

Where a and b are integers, and a and 26 are co-prime.

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

What is the rule D for deciphering a message encoded by an affine cipher modulo 26 with rule E?

A

D(y) is the inverse function of the rule E(x).

D(y) = v(y-b)(mod 26)

Where v is any multiplicative inverse of (a) modulo 26.

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