Question

In: Computer Science

Roster method and Set builder notation 1. Use the roster method to list the members of...

Roster method and Set builder notation

1. Use the roster method to list the members of these sets.

A = { y | y is the square of an integer and y < 100}

B = {x ∈ ℚ | x = a / b, a = 3, b ∈ ℤ+ , x ≥ 2 }

C = { y | y is the remainder of x/5, x ∈ ℤ+ } another definition: C = {y | y = x%5, x∈ ℤ+ }

Solutions

Expert Solution

A = { y | y is the square of an integer and y < 100}

Let consider y starts from 1 and y<100

so set contains 1,4,9,16,25,36,49,64,81

Hence in roster form A={1,4,9,16,25,36,49,64,81}

B = {x ∈ ℚ | x = a / b, a = 3, b ∈ ℤ+ , x ≥ 2 }

z+ means positive integers and given x>=2, so x=a/b (>=2)

if b=1 , x=3/1 (>=2) ---->taken

if b=2 , x=3/2 (<2) -----> not taken

if b=3 , x=3/3 (<2) ------> not taken

if b=4, x=3/4 (<2) --------> not taken

if b=5, x=3/5(<2)-------> not taken

...

so only possible value of b is 1 , therefore x=a/b-->x=3/1--->x=3

roster form of B={3}

C = { y | y is the remainder of x/5, x ∈ ℤ+ }

y is remainder of x/5 that is, y=x%5

x belongs to z+ , i am not considering zero as positive integer , so x starts from 1,2,3,.....

if x=1,y=x%5--> y=1%5--->y=1

if x=2,y=x%5--> y=2%5--->y=2

if x=3,y=x%5--> y=3%5--->y=3

if x=4,y=x%5--> y=4%5--->y=4

if x=5,y=x%5--> y=5%5--->y=0

if x=6,y=x%5--> y=6%5--->y=1

...

therefore the remainders are 0,1,2,3,4,0,1,... are repeated

so, roster form of c={0,1,2,3,4}.


Related Solutions

Exercise 3.1.5: Expressing sets in set builder notation. About Express each set using set builder notation....
Exercise 3.1.5: Expressing sets in set builder notation. About Express each set using set builder notation. Then if the set is finite, give its cardinality. Otherwise, indicate that the set is infinite. PLEASE show some explanation how you got answer. Thanks! (a) {-2, -1, 0, 1, 2} (b) { 3, 6, 9, 12, .... } (c) { -3, -1, 1, 3, 5, 7, 9 } (d) { 0, 10, 20, 30, ...., 1000 } Exercise 3.2.4: A subset of a...
Use set notation to list the elements. 1.The set of positive integers between 5 and 9....
Use set notation to list the elements. 1.The set of positive integers between 5 and 9.    2. The set of seasons in a year. State whether the first set is a subset of the second set. 3. {7, 9, 11}; {The odd counting numbers}    4. {The integers larger than 5}; {7, 8, 9,…} Find the cardinality for the set. 5. A = {The number of seconds in a minute}    6. A = {-8, -7, -6,…, 0}
Why isn't set-builder notation used for defining functions?
In set-builder notation, we use | to show givens, yet there isn't really a standard symbol to show givens when defining functions. So why don't we just import the symbol from set-builder notation so that it becomes standardised?
For given list of members in a universal set U. Members A B 1 a1 b1...
For given list of members in a universal set U. Members A B 1 a1 b1 2 a2 b1 3 a3 b2 4 a1 b2 5 a1 b2 6 a2 b1 7 a3 b1 8 a1 b2 9 a1 b2 10 a3 b2 Write Probability distribution table for (a) P(A, B) (b) P(A) (c) P(B) (d) P(A|B=b1)
use python 1. Write a program that a. defines a list of countries that are members...
use python 1. Write a program that a. defines a list of countries that are members of BRICS (Brazil, Russia, India, China, Sri Lanka) b. Check whether a country is a member of BRICS or not Program run Enter the name of country: Pakistan Pakistan is not a member of BRICS Enter the name of country : India India is a member of BRICS 2. Write a program to create a list of numbers in the range of 1 to...
List the main members of the set of techniques known as the Seven Tools of Total...
List the main members of the set of techniques known as the Seven Tools of Total Quality Management (TQM). Then, mention two out of this list which are considered key techniques for defining processes and identifying sources of variation. At which stage in a CQI project life-cycle are these two key techniques needed the most?
Write the ground state electron configurations for the following. Use the noble gas shorthand notation. List...
Write the ground state electron configurations for the following. Use the noble gas shorthand notation. List orbitals in filling order Element number 14: Electron configuration of neutral: Electron configuration of doubly positive ion: Element number 34: Electron configuration of neutral: Electron configuration of doubly positive ion: Element number 92: Electron configuration of neutral: Electron configuration of doubly positive ion:
The notation used in the above problem is called symbolic notation. Alternatively, we can use the...
The notation used in the above problem is called symbolic notation. Alternatively, we can use the 4-digit octal notation to specify, which is defined as follows: • Digits from left (most significant) to right (least significant): [special bits][owner bits][group bits][world bits] • Special bit digit = (4 if setuid) + (2 if setgid) + (1 if sticky), 0 for none of them • All other digits = (4 if readable) + (2 if writable) + (1 if executable), 0 for...
We will use shorthand notation and probability notation for random variables when working with normally distributed...
We will use shorthand notation and probability notation for random variables when working with normally distributed random variables. Suppose the vitamin C content of a particular variety of orange is distributed normally with mean 720 IU and standard deviation 46 IU. If we designate X = the vitamin C content of a randomly selected orange, then our shorthand notation is X~N(720 IU, 46 IU). Use this distribution of vitamin C content to answer the following questions: 1) What is the...
Solve each compound inequality, write its solution set in interval notation, and graph the solution set...
Solve each compound inequality, write its solution set in interval notation, and graph the solution set on a number line. 5) -3 < 4 p - 3 ? 13
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT