Set: A group of numbers!

Definition

A set is simply a collection of things (in our case, numbers).

Why Matters?

Why Concept of Set Matters in Cryptography

Since there are so many types of numbers (integers, decimals, rationals, etc. ), we need a way to categorize and organize them based on shared properties, helping us to better understand and use them in Math. That is where "Set" comes in.

Notations

The symbol ∈\in means "is a member of a set." Basically, the element on the left side of ∈\in belongs to the collection (set) on the right side.

Example on Notation

(We clarify what the example is about) Given the set S={1,4,7,8,9}\mathbb{S} = \{1, 4, 7, 8, 9\}: We can write 4 ∈S\in \mathbb{S} (4 is in the set S\mathbb{S}) 9 ∈S\in \mathbb{S} (9 is in the set S\mathbb{S}) 0 βˆ‰S\notin \mathbb{S} (0 is not in the set S\mathbb{S}) 5 βˆ‰S\notin \mathbb{S} (5 is not in the set S\mathbb{S})

How to Define Set

As seen above, we can define set by listing all of its members like S={1,4,7,8,9}\mathbb{S} = \{1, 4, 7, 8, 9\} explicitly. However, writing all of set's members is not really possible if the set has so many members or event infinite. Instead, we can define sets more broadly, using patterns or criteria that describe their shared properties.

Example on How to Define Set

  • By Pattern We list only some members enough to make people able to recognize the pattern, hence being able to imply the rest in ...

    • Z={...,βˆ’3,βˆ’2,βˆ’1,0,1,2,3,...}\mathbb{Z} = \{..., -3, -2, -1, 0, 1, 2, 3,...\} represents the set of all integers (whole numbers).

    • Z+={1,2,3,...}\mathbb{Z^+} = \{1, 2, 3,...\} represents the set of positive integers. (Another common notation for positive integers or natural numbers is N\mathbb{N}.)

    • Even Numbers: {...,βˆ’4,βˆ’2,0,2,4,6,...}\{..., -4, -2, 0, 2, 4, 6,...\} represents the set of all even integers.

    • Prime Numbers: {2,3,5,7,11,13,17,19,...}\{2, 3, 5, 7, 11, 13, 17, 19,...\} represents the set of prime numbers.

    • Fibonacci Numbers: {0,1,1,2,3,5,8,13,...}\{0, 1, 1, 2, 3, 5, 8, 13,...\} represents the set of Fibonacci numbers, where each number is the sum of the two preceding numbers.

  • By Criteria We explicitly state the criteria such that every number that satisfies the criteria belong to the set.

    • Q={x:x=a/b;Β a,b∈Z,Β bβ‰ 0}\mathbb{Q} = \{x : x = a/b;\ a, b \in \mathbb{Z},\ b \neq 0\} represents the set of rational numbers, which includes any number that can be written as a fraction of two integers.

    • Even Numbers: {x:x=2n;n∈Z}\{x : x = 2n; n \in \mathbb{Z}\} represents the set of all even integers, where each element is a multiple of 2.

    • Prime Numbers: {p:p∈Z+,Β p>1,Β βˆ€d∈Z+,Β (d∣pβ€…β€ŠβŸΉβ€…β€Šd=1Β orΒ d=p)}\{p : p \in \mathbb{Z}^+,\ p > 1,\ \forall d \in \mathbb{Z}^+,\ (d\mid p \implies d = 1\ \text{or}\ d = p)\} represents the set of prime numbers, where a number is only divisible by 1 and itself. (Notation: Aβ€…β€ŠβŸΉβ€…β€ŠBA \implies B is equivalent to "If A, then B")

    • Fibonacci Numbers: {Fn:F0=0,Β F1=1,Β Fn=Fnβˆ’1+Fnβˆ’2,Β n∈Z+}\{F_n : F_0 = 0,\ F_1 = 1,\ F_n = F_{n-1} + F_{n-2},\ n \in \mathbb{Z}^+\} represents the Fibonacci sequence, where each element is defined recursively.

Open Ended

Write a set that represents square of integers

Open Ended

Write a set that represents irrational numbers

Sets let us define and organize collections of numbers based on shared characteristics. But in cryptography, we are not only interested in what collection of numbers we are using, but also how these numbers interact with each other. This is where operation comes in.

When we combine a set with an operation, under specific rules, we arrive at a special mathematical structure called a 'Group.' Groups are the building blocks of many cryptographic algorithms, offering powerful properties we’ll soon explore.