Question

5. (20). Write the WTEX code you would use to typeset the entire) following line (text and mathematical symbols): Given sets
0 0
Add a comment Improve this question Transcribed image text
Answer #1

5(a). Given sets $S$ and $T$, then $(x \in S) \land (x \in T) \Rightarrow x\in(S \cap T)$.

5(b). Given any two sets such that some element belongs to both these sets, then the element belongs to the intersection of the two sets.

Bonus problem: We will prove by contradiction. Let S= a+b, where S, a and b are some natural numbers such that S is an odd natural number.

case 1: Assume both a and are odd. Since a and b are odd, a and b can be expressed as follows. a=2m+1 and b=2n+1, where n and m are natural numbers greater than or equal to 0. So, S=a+b=2m+1+2n+1=2(m+n+1). This means, S is multiple of 2 and is therefore an even number. This contradicts the fact that S is an odd number. Therefore, by contradiction, both a and b cannot be odd numbers.

case2: Assume none of a and b are odd. Then, both a and b are even numbers. So, we can express a and b as follows: a=2p and b=2q, where p and q are natural numbers greater than or equal to 0. Then, S=a+b=2p+2q=2(p+q). This means, S is a multiple of 2 and is therefore an even number. This contradicts the fact that S is an odd number. Therefore, by contradiction, both a and b cannot be even numbers.

Since a and b cannot be both odd(case1) and cannot be both even (case 2), the only possiblilty is that exactly one of them is odd. Hence proved.

Add a comment
Know the answer?
Add Answer to:
5. (20). Write the WTEX code you would use to typeset the entire) following line (text...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • MATLAB question I need the code exactly as you would write it in MATLAB. thank you...

    MATLAB question I need the code exactly as you would write it in MATLAB. thank you 1. Consider a Gaussian solution of the traveling-wave form ψ(z,t)-exp(-a(z-vt)2). The parameter values are a 1, 2. (a) Explain the physical meaning of these parameters (eg. what would happen if we took a = 10 instead?) Determine the direction of propagation of this solution: Is it traweling to the left or to the right? (2pts) (b) Write a Matlab code to plot the Gaussian...

  • Write a C++ code to make a simple program that imports the input file in and...

    Write a C++ code to make a simple program that imports the input file in and gets the results as specified Please follow the instructions and paste the code below as the answer with a screenshot of the output to prove it worked. Input file -> https://www.dropbox.com/s/444jofkchu6ylwr/names.txt?dl=0 Scoring Names You will be using the provided names.txt file, text file containing over five-thousand first names, and you will calculate a score for each name. Begin by reading the names from the...

  • Code the following example and screenshot the text output. After you have the test code working,...

    Code the following example and screenshot the text output. After you have the test code working, modify it so that it has the following features: ○ The ‘while’ loop is inside a try/except error check. This allows a <CTRL>C to break out of the loop ○ Keep track of the number of button presses with an accumulator variable ○ After the loop is ended with an exception, create an attractive output which tells the user that the program has ended...

  • Three C Code Questions: 5. Write a C program that declares an array of 10 strings,...

    Three C Code Questions: 5. Write a C program that declares an array of 10 strings, each of max length 50 characters, and then reads an entire line of text from the keyboard into each string. 6. Write C code that finds the longest name in this array of strings that you read in Q5. Hint: find the position of the longest string, not the string itself. 7. Write a C program that creates a 4 x 6 two dimensional...

  • use java and write in text a. Rewrite the following code segment using if statements. Assume...

    use java and write in text a. Rewrite the following code segment using if statements. Assume that grade has been declared as of type char. char grade= 'B';; switch (grade) { case 'A': System.out.println("Excellent"); break case 'B': System.out.println("Good"); default: System.out.println("you can do better”); } - b. write Java code that inputs an integer and prints each of its digit followed by ** e.gif the integer is 1234 then it should print 1**2**3**4 e.g. if the integer is 85 then it...

  • 5) Write TOY AL subprogram that implements the following subprogram interface: Label: SumEven On entry: Register $1...

    5) Write TOY AL subprogram that implements the following subprogram interface: Label: SumEven On entry: Register $1 is the return address of the caller. Register $A is the address in memory of an array A. Register $s is the size of the array A. On exit: Register $F is the sum of the entries of A that are even (divisible by 2) No values in memory have changed. Any of the registers may have changed value. Hint: The TOY assembly...

  • Use Python and only while loops For this part of the homework you will write code...

    Use Python and only while loops For this part of the homework you will write code to draw an isosceles right triangle. (A right triangle in which the height and base are the same size.) Your program should prompt the user for these inputs, in exactly this order: 1. The height of their triangle 2. The symbol the triangle will be outlined in 3. The symbol the triangle will be filled with For these inputs, you can assume the following:...

  • In Java: Assume the "ferrets" variable points to a linked list of "LLNode." Write code that...

    In Java: Assume the "ferrets" variable points to a linked list of "LLNode." Write code that traverses the list and prints the following. Do not forget to consider the case where the list is empty. The "LLNode" class is given: public class LLNode { protected T info; protected LLNode link; public LLNode(T info) { this.info = info; link = null; } public void setInfo(T info) { this.info = info; } public T getInfo() { return info; } public void setLink(LLNode...

  • ANSWER USING JAVA CODE (1)The sum of the squares of the first ten natural numbers is,...

    ANSWER USING JAVA CODE (1)The sum of the squares of the first ten natural numbers is, 12 + 22 + ... + 102 = 385 The square of the sum of the first ten natural numbers is, (1 + 2 + ... + 10)2 = 552 = 3025 Hence the difference between the sum of the squares of the first ten natural numbers and the square of the sum is 3025 − 385 = 2640. Find the difference between the...

  • Modify your asm code further so that you can copy the entire array of numbers (1...

    Modify your asm code further so that you can copy the entire array of numbers (1 to 100) to a different location in the memory (starting from 0x0000_0200h location, i.e. offset of 200h). Lab6.s (MIPS assemblv code .data tmpval: .word 5 globl main .text main # above codes are mandat ry (entry to main function) ######### only modify the c des below ########### # L ad address # initialize N addiu ŞvO, $zero, 1 loopl SW $vO, 0 ($s0) $t0,...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT