Introduction to sets
🖨 Print a self-study sheet Why print?
Group of Class A has students: An, Binh, Chi, Dung, Ha and Khoa. On Monday the teacher announces: "This week's cleaning team is An, Chi and Khoa." The whole class knows exactly who she means. If she had only said "a few hard-working students", everyone would understand something different. How can we describe a group of objects so that everyone who hears it understands the same thing?
Sets and elements
Let us try it with numbers. Your pencil case holds pens: blue, red and yellow. "The pens in the pencil case" is a clear group, because for any pen we know whether it is in the case or not. Likewise, "the natural numbers less than " are , , , , : the number is in this group, but the number is not.
For example, the group "the natural numbers less than 5" forms a set A. Then 3\in A and 7\notin A. In Grade 6, the natural numbers include 0: 0, 1, 2, 3, ...
Two ways to write a set
Way 1: list the elements. We write the elements inside curly brackets \{\ \}, separated by commas: A=\{0,1,2,3,4\}. Each element is written once, and the order does not matter: \{0,1,2,3,4\} and \{4,3,2,1,0\} are the same set.
Way 2: state a defining property. We give a property that every element has and that only the elements of the set have: A=\{x\mid x\text{ is a natural number less than }5\}. This is read: "A is the set of elements x such that x is a natural number less than 5".
The number of elements of a set is the number of different elements it has. The set A above has 5 elements.
Why is each element written only once? A set only tells us "what is in the group", not "how many times". Consider the digits of the number 2023: the digit 2 appears twice but it is only one element. So the set of digits of 2023 is \{0,2,3\}.
Examples
The next problem comes from the calendar, so we go step by step: Understand, Plan, Solve, Look back.
Key terms
Summary
- A set is a clearly defined group of objects; each object is an element.
- a\in A: a belongs to A; a\notin A: a does not belong to A.
- Write a set by listing \{a,b,c\} or by a defining property \{x\mid\ldots\}.
- Each element is written once; the order of the elements does not matter.
- The natural numbers include 0.
Practice
Try each one yourself first, then open the solution.
Question 1. Let A=\{2,4,6,8\}. Fill in \in or \notin: a) 4\ ?\ A; b) 5\ ?\ A; c) 8\ ?\ A; d) 0\ ?\ A.
What you need: a\in A when a is one of the elements listed in A.
Steps:
- Check whether each number appears inside the curly brackets.
Show solution
a) 4\in A. b) 5\notin A. c) 8\in A. d) 0\notin A.
Answer. \in; \notin; \in; \notin.
Question 2. Write the set B of natural numbers greater than 7 and less than 13 by listing.
What you need: "greater than 7" does not include 7; "less than 13" does not include 13.
Steps:
- Write the first natural number after 7.
- Keep going up to the number just before 13.
Show solution
The numbers are 8, 9, 10, 11, 12. So B=\{8,9,10,11,12\}.
Answer. B=\{8,9,10,11,12\}.
Question 3. Let C=\{10,20,30,40,50\}. Write C by stating a defining property.
What you need: find what all the elements have in common.
Steps:
- What kind of numbers are these?
- What are the smallest and largest numbers?
Show solution
Every element is a whole number of tens (it ends in 0), is not 0, and is not more than 50. So C=\{x\mid x\text{ is a whole number of tens, }x\ne0\text{ and }x\le50\}. Answer. As above.
Question 4. A fruit basket has 5 oranges, 3 apples and 4 mangoes. Write the set F of kinds of fruit in the basket and state how many elements F has.
What you need: the elements are kinds of fruit, not individual fruits.
Steps:
- What is given? What is asked?
- List the different kinds of fruit.
Show solution
F=\{\text{orange},\text{apple},\text{mango}\} and F has 3 elements. The number 5+3+4=12 counts the fruits, not the elements.
Answer. 3 elements.
Question 5. Write the set G of digits of the number 4554. How many elements does G have?
What you need: a repeated element is written only once.
Steps:
- Write each digit of 4554.
- Remove the repeats.
Show solution
The digits are 4, 5, 5, 4. So G=\{4,5\} and G has 2 elements.
Answer. G=\{4,5\}, 2 elements.
Question 6. Write the set N of calendar months with exactly 31 days (each month as its number) and state how many elements N has.
What you need: month 2 has 28 or 29 days; months 4, 6, 9, 11 have 30 days.
Steps:
- Go through months 1 to 12.
- Remove months 2, 4, 6, 9, 11.
Show solution
N=\{1,3,5,7,8,10,12\} and N has 7 elements.
Check. 7+4+1=12 months (including the 4 months with 30 days and month 2).
Answer. 7 elements.
Question 7. Lan writes: "The set P of natural numbers less than 4 is P=\{1,2,3,4\}." Where is Lan wrong? Rewrite it correctly.
What you need: 0 is a natural number; "less than 4" does not include 4.
Steps:
- What is the smallest number in P?
- Is the largest number in P less than 4?
Show solution
Lan forgot 0 and wrongly included 4 (which is not less than 4). Correct: P=\{0,1,2,3\}.
Answer. P=\{0,1,2,3\}.
Question 8. Write the set S of natural numbers with two digits whose digits add up to 5. How many elements does S have?
What you need: a two-digit number has a tens digit that is not 0.
Steps:
- Let the tens digit be 1, then 2, ... and find the ones digit.
- Stop when the tens digit is 5.
Show solution
Tens digit 1 gives ones digit 4: the number 14. Similarly we get 23, 32, 41, 50. So S=\{14,23,32,41,50\} and S has 5 elements.
Answer. 5 elements.
Question 9. The chess club sign-up list reads, in order: An, Binh, An, Chi, Dung, Binh, Ha, An. Write the set H of students who signed up and state how many students signed up.
What you need: a student who signs up several times is still only one element.
Steps:
- What is given? What is asked?
- Cross out the repeated names.
Show solution
H=\{\text{An},\text{Binh},\text{Chi},\text{Dung},\text{Ha}\}, so 5 students. The list has 8 lines but only 5 different students.
Answer. 5 students.
Question 10. Write the set T of three-digit natural numbers whose hundreds digit is 2 and whose three digits add up to 4. How many elements does T have? Does 220 belong to T?
What you need: the other two digits add up to 4-2=2.
Steps:
- List the pairs (tens; ones) with sum 2.
- Attach the hundreds digit 2.
Show solution
The pairs (tens; ones) with sum 2 are (0;2), (1;1), (2;0). This gives the numbers 202, 211, 220. So T=\{202,211,220\} and T has 3 elements. Since 2+2+0=4, we have 220\in T.
Answer. T=\{202,211,220\}, 3 elements; 220\in T.
Mini test
Marked like the Vietnamese graduation exam: Part I 0.25 points per question; Part II up to 1 point per question (1, 2, 3, 4 correct statements give 0.1, 0.25, 0.5, 1 point); Part III 0.5 points per question.
Part I. Multiple choice
6 is an element of A. The others are false: 2 and 8 are in A, but 5 is not.
0 is a natural number and 4 is not less than 4. Option B forgets 0, C includes 4, A forgets 0 and includes 4.
The different digits are 4 and 5, so there are 2 elements. Option D counts the repeated digits.
They are months 4, 6, 9, 11. Option A adds month 2, C is the number of months with 31 days, D is the whole year.
Part II. True or false
| a) 10\in B. | ||
| b) 16\in B. | ||
| c) B has 4 elements. | ||
| d) B has 5 elements. |
a) False: 10 is not greater than 10. b) True. c) True: 12, 14, 16, 18. d) False: there are only 4 elements.
Part III. Short answer
They are 1, 3, 5, 7, 9, 11.
They are months 1, 3, 5, 7, 8, 10, 12.
Show answers and explanations
- Part I, question 1: C. 6 is an element of A. The others are false: 2 and 8 are in A, but 5 is not.
- Part I, question 2: D. 0 is a natural number and 4 is not less than 4. Option B forgets 0, C includes 4, A forgets 0 and includes 4.
- Part I, question 3: A. The different digits are 4 and 5, so there are 2 elements. Option D counts the repeated digits.
- Part I, question 4: B. They are months 4, 6, 9, 11. Option A adds month 2, C is the number of months with 31 days, D is the whole year.
- Part II, question 1: a) False; b) True; c) True; d) False. a) False: 10 is not greater than 10. b) True. c) True: 12, 14, 16, 18. d) False: there are only 4 elements.
- Part III, question 1: 6. They are 1, 3, 5, 7, 9, 11.
- Part III, question 2: 7. They are months 1, 3, 5, 7, 8, 10, 12.