Notes Flashcards

1
Q

What is the formula for lcm(a, b)

A

ab / gcd(a,b)

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

What can be said about the gcd and lcm of a, b?

A

The gcd * lcm = a * b

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

What is the size of the cartesian product equal to?

A

The size of A x B equals size A * size B

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

Difference between () and {} in counting.

A

() means order is important.
{} means order is not important.

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

Formula for the amount of subsets of length k from a set A. (Repetitions are allowed!!!)

A

=|A|^k
where |A| is the number of different elements in A
and k is the length of the subsets.

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

How many subsets of the set {1,2…n} are there?

A

Powerset of A = 2^n

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

When does a bijection exist between two sets X and Y?

A

If X and Y are two finite sets, then there exists a bijection between X and Y iff |X| = |Y|

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

Formula for choosing k events from n outcomes where order matters and repetition is allowed.

A

n^k
where n is the number of outcomes
and k is the number of events to be chosen

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

Formula for choosing k events from n outcomes where order matters and repetition is not allowed.

A

n! / (n-k)!

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

Formula for choosing k events from n outcomes where order doesn’t matter and repetitions are allowed.

A

(n + k -1
k)

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

Formula for choosing k events from n outcomes where order doesn’t matter and repetitions are not allowed.

A

n! / (n-k)!k!

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

Formula for the binomial identity of equal chooses.

A

(n) ( n )
(k) = (n-k)

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

Formula for binomial identity splitting (n)
(k)?

A

(n) = (n-1) + (n-1)
(k) (k) (k-1)

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

Formula for binomial identity (n) (k)
(k) (r)?

A

(n) (n-r)
(r) (k-r)

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

What is multiplicity in a multiset?

A

The number of times a certain element appears in a multiset.

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

Define a multiset A with three 5’s and two 2’s.

A

{2,2,5,5,5} (stars around list)

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

What are multisets?

A

Sets where the order doesn’t matter and repetitions are allowed.

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

Formula for binomial theorem.

A

(Sum from k=0 up to n) (n choose k) * x ^ n-k * y^k

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

Formula to resolve: (x1 + x2 + … xn)^k for multisets.

A

(Sum of i1 … in)(k choose i1,i2…in) x^ i1x^i2…*x^in

where in is number of xn’s.

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

Define congruent modulo n?

A

a equivls b (mod n) if n | a-b

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

What is zero divisor rule for primes in modular arithemtic?

A

If n is prime, then ab equivls 0 mod n means that a equivls 0 mod n or b equivls 0 mod n.

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

Condition in modular arithmetic to check if there is a solution.

A

ax + by = d (ax equivls d (mod b)) has a solution iff gcd(a, b) | d

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

How do we know if the inverse exists in the equation ax equivls d (mod n)? How do we find it?

A

if gcd(a,n) = 1
find the value of x when d = 1. This is the inverse as a * a^-1 = 1

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

What is the constant rule for modular arithmetic?

A

ca equivls cb (mod n)
a equivls b (mod n / gcd(c,n))

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

How do we know how many solutions there are and how much there are separated for the equation. ax equivls b (mod n)

A

There are gcd(a, n) solutions separated by n / gcd(a,n)

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

Let p and q be different primes. How many integers in the set {1…pq} are not divisible by p or q?

A

(p - 1)(q -1)

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

T or F. If two primes divide a number than their product doesn’t neccesarily also divide the same number.

A

False. The product always divides aswell.

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

If n and k are positive integers, the number of integers in {1…n} divisible by k is what

A

⌊ n / k ⌋

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

What is φ?

A

Function that returns the number of positive integers less than the input that are relatively prime to the input.

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

What is φ(pq) when p and q are distinct primes?

A

(p - 1)(q - 1)

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

Give the principle of inclusion/exclusion for 3 sets A,B,C.

A

|A| + |B| + |C| - |A ∩ B| - |A ∩ C| - |B ∩ C| + |A ∩ B ∩ C|

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

Formulas for simplifying φ(n).

A

If n is prime. φ(n) = n - 1
φ(n) = φ(k^p) = (k^(p - 1))(p - 1) where p>= 1
φ(mn) = φ(m) x φ(n) where gcd(n, m) = 1.

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

Define the Pigeonhole Principle.

A

If we have n objects distributed among k boxes, then there exists at least one box containing at least ⌈n/k⌉ objects.

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

Formula for counting permutations.

A

|Sn| = n!

Sn is the number of permutations of size n
|| is the number/length of function
n is the number of choices

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

Are compositions of permutations always commutative?

A

No.

p1 ◦ p2 != p2 ◦ p1

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

Define the composition of two permutations p1 and p2 in S(X).

A

(p1 ◦ p2)(x) := p1(p2(x))

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

Formula to calculate permutations with repeated elements.

A

n! / k1! x k2! … x kn!

37
Q

How do you calculate the inverse of a permutation?

A

Switch the order of the rows, and re-order the columns using the new first row as an index.

38
Q

pi . pi^-1? pi^-1^-1?

A

=id
=pi

39
Q

What is the symmetric group?

A

The set of permutations on the set {1, …, n} is denoted by Sn and is called the symmetric group.

40
Q

What is a group? What are it’s properties?

A

A group is a set G with an operation ◦.
Properties:
- If pi and sigma are in G, then pi ◦ sigma is also in G.
- Associativity holds for elements in G.
- All pi in G multiplied by id = pi.
- All pi in G multiplied by pi^-1 = id

41
Q

Define a cycle?

A

A cycle maps some elements around in a cyclic fashion and leaves ALL other elements unchanged.

42
Q

What does a product of disjoint cycles represent? What is a disjoint cycle?

A

Product of cycles can represent a permutation that is not a cycle.
A cycle used as part of this representation.

43
Q

If C1 and C2 are disjoint cycles are they commutative?

A

Yes
C1C2 = C2C1

44
Q

What is a consequence of a pair of cycles being disjoint?

A

They share no elements.

45
Q

How many times must a permutation mapping occur for the identity to be reached?

A

the order of the permutation times

46
Q

Define order of pi?

A

o(pi) = l where pi^l = id

47
Q

How is the order of a cycle found?

A

lcm of lengths of cycles in disjoint cycle form.

48
Q

Define a transposition.

A

A cycle of length 2.

49
Q

Can all cycles be written as a product of transpositions?

A

All cycles of length k can be written as the product of k - 1 transpositions.

50
Q

What can be said about the parity of the product of transpositions of a cycle?

A

The parity is constant, we can write the product of transpositions differently but the parity will always be the same.

51
Q

Define the sign of a permutation.

A

sign(pi) := (-1)^k where k is the number of transpositions.

52
Q

What is an even permutation?

A

A permutation with sign +1.

53
Q

Is the sign function multiplicative.

A

Yes.
sign(pi * sigma) = sign(pi) * sign(sigma)

54
Q

What is the sign of a cycle of length l?

A

sign = (-1)^(l - 1)

55
Q

sign(pi) = +1. What is sign(pi^-1)?

A

+1

56
Q

How many odd/even permutations are there?

A

number of even = number of odd = n! / 2

57
Q

What us the set of even permutations known as?

A

the alternating group

58
Q

What is the cycle type of a permutation?

A

If a1…ak are pairwise disjoint cycles with the length of ai being li then we define the cycle type of pi to be xl1xl2….xlk.

I.e. : x sub length of disjoint cycle

59
Q

What is the dihedral group?

A

The group of symmetries.

60
Q

How many rotations and reflections in D sub n?

A

n * 2

61
Q

What can you say if pi and sigma are both elements of D sub 4? (2)

A

pi * sigma elements of D4 and sigma * pi elements of D4
pi ^ - 1 is an element of D4

62
Q

What is a subgroup?

A

A nonempty subset G of Sn where if pi is an element of G than pi^-1 is an element of G, and if pi and sigma are elements of G than pi * sigma is an element of G.

63
Q

What is the cyclic group?

A

Rotations only no reflections.
Cn = {id, p, p^2, …, p ^ n -1}

64
Q

What is the cycle index?

A

For a group G subset of Sn, cycle index is.
Z sub G = 1 / |G| * (Sum of cycle types for each permutation)

65
Q

What is a colouring?

A

A colouring is a function from a set of n objects X to a set of k
colours C.

66
Q

Define Polya’s Colouring Theorem

A

Suppose we have n objects, with equivalence defined by a
group of permutations G. Let ZG be the cycle index of the
group G. Then the number distinct colourings using k colours
is given by ZG(k, k, … , k)

67
Q

How many different bracelets can we make using four beads which can be three colors if (a) no restrictions are imposed (b) rotations are the same (c) rotations and reflections are the same (d) all permutations with the same amount of each color are the same, explain your reasoning for each?

A

(a) 3^4 (number of colours with four possible places)
(b) 24 (4 P 3)
(c) 21 (Cycle index calc)
(d) 20 (3 + 4 - 1 C 3) (No repetition, order matters)

68
Q

What is the sequence and sum for the closed form function 1 / 1 - x?

A

Sequence:
1 + x + x^2 + x^3 +…
n=0 sum infinity (x^n)

69
Q

n=0 sum infinity (x^n) What is the closed form?

A

1 / 1 - x

70
Q

What is the sequence and sum for the closed form function 1 / 1-ax?

A

1 + ax + a^2x^2 + …
n=0 sum infinity(a^n * x^n)

71
Q

n=0 sum infinity(a^n * x^n) What is the closed form?

A

1 / 1 - ax

72
Q

What is the sequence and sum for the closed form 1 / 1 + x?

A

1 - x + x^2 - x^3 + …
n=0 sum infinity(-1^n * x^n)

73
Q

n=0 sum infinity(-1^n * x^n) What is the closed form?

A

1 / 1 + x

74
Q

What is the sequence and sum for the closed form 1 / 1 - x^k?

A

1 + x^k + x^2k + x^3k + …
n=0 sum infinity x^(k*n)

75
Q

n=0 sum infinity x^(k*n) What is the closed form?

A

1 / 1-x^k

76
Q

What is the sequence and sum for the closed form 1 / (1 - x)^2?

A

(1 + x + x^2 + …)(1 + x + x^2 + …)
n=0 sum infinity
( (n+1) * x^n)

77
Q

n=0 sum infinity
( (n+1) * x^n) What is the closed form?

A

1 / (1-x)^2

78
Q

F(x) = 1 / (1+x)(1-x)^2. How is partial fractions done?

A

F(x) = A / 1+x + (B+Cx) / (1 - x)^2

79
Q

What must be watched when adding formal power series?

A

The powers must match x^n for both or equivalent.
The limits must match, 0 to infinity.

80
Q

A(x) = n=0 sum infinity (ai * x^n)
B(x) = n=0 sum infinity (bi * x^n).

What is A(x)B(x)?

A

n=0 sum infinity(
i=0 sum n (
ai * bn-i
)
*
x^n
)

81
Q

What is the convolution rule?

A

Let A(x) be the generating function for selecting items from a set A and let B(x) be the generating function for selecting items from a set B disjoint from A. The generating function for selecting items from the union A U B is the product A(x)B(x)

82
Q

Homogenous recursion relation formula for (a) distinct roots (b) equal roots?

A

an = A(r1)^n + B(r2)^n
an = A(r^n) + Bn(r^n)

83
Q

Non homogenous recursion relation explain how to solve.

A
  1. an = a + B where a is homogenous solution and B is non homogenous solution.
  2. a is found in the usual way by treating non-homogenous part as 0
  3. B is found by replacing an with the correct format depending on the expected answer, and solving for c, d, r and/or e.
  4. Simply add a and B for an.
84
Q

What are the different formats for B?

A

If non homogenous part is constant than replace an with c

If non homogenous part is linear than replace an with cn + d

If non homogenous part is n^2 than replace an with cn^2 + dn + e

If non homogenous part is r^n than replace an with cr^n.

85
Q

If (x, y) is an element of A x (B ∩ C)?

A

x ∈ A and y ∈ B ∩ C

86
Q

If Sp is prime what does that mean for the cycle index when only rotations are allowed?

A

Cycle Index = 1/p (x^p + (p-1)xsubp )
Every rotation will be a cycle of length p, and the identity is p cycle of length 1.

87
Q

Formula for splitting n objects in k groups of different sizes namely n1, n2 … nk?

A

n! / n1! * n2! *… * nk!

88
Q

State fermat’s little theorem. What is a^40 (mod 100)? Why?

A

a^(p-1) equivls 1 (mod p). If p is prime.

  1. phi(100) = 40.
89
Q

What is the formula for distributing n identical objects into k distinct containers?

A

(n + k - 1)
(k - 1)

90
Q

(x + y + z + a)^8 what is the coeffiecient of a^3x^2yz^2

A

( 8
3, 2, 1, 2)

= 8! / 3! * 2! * 1! * 2!

91
Q

Formula for phi(n) with prime factors.

A

phi(n) = n (1 - 1 / prime factor 1)(1 - 1 / prime factor 2)…(1 - 1 / prime factor n)