Download MATH 1700 Midterm 1 February 16, 2017

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Continued fraction wikipedia , lookup

Irrational number wikipedia , lookup

Transcript
MATH 1700
Midterm 1
NAME_________________________
1) Construct a truth table for (𝑝 β†’βˆΌ π‘ž) β†’ (∼ 𝑝 β†’ π‘ž). Is the statement a tautology, a contradiction
or neither? (4 pts)
𝑝 π‘ž
βˆΌπ‘ βˆΌπ‘ž
𝑝 β†’βˆΌ π‘ž
βˆΌπ‘β†’π‘ž
(𝑝 β†’βˆΌ π‘ž) β†’ (∼ 𝑝 β†’ π‘ž)
T
T
F
F
F
T
T
T
F
F
T
T
T
T
F
T
T
F
T
T
T
F
F
T
T
T
F
F
So, it is neither one.
2) Explain why the following argument is invalid: (3 pts)
𝑝 β†’βˆΌ π‘ž
π‘ž β†’βˆΌ 𝑝
βˆ΄π‘βˆ¨π‘ž
By the last row of the following table
𝑝
𝑇
𝑇
𝐹
𝐹
π‘ž
𝑇
𝐹
𝑇
𝐹
βˆΌπ‘ βˆΌπ‘ž
𝐹
𝐹
𝐹
𝑇
𝑇
𝐹
𝑇
𝑇
𝑝 β†’βˆΌ π‘ž
𝐹
𝑇
𝑇
𝑇
π‘ž β†’βˆΌ 𝑝 𝑝 ∨ π‘ž
𝐹
𝑇
𝑇
𝑇
𝑇
𝑇
𝑇
𝐹
the argument is invalid, because if 𝑝 and π‘ž are both 𝐹, then the premises are 𝑇 while the
conclusion is 𝐹.
3) Write the negation of the following statement: (3 pts)
For all real numbers π‘Ÿ, there exists a real number 𝑠 such that π‘Ÿπ‘  = 10.
There is a real number π‘Ÿ such that for all real numbers 𝑠, π‘Ÿπ‘  β‰  10.
4) Prove the following statement using the contrapositive: (3 pts)
For all integers 𝑛, if 𝑛2 is not a multiple of 5, then 𝑛 is not a multiple of 5.
The contrapositive of the statement is the following:
For all integers 𝑛, if 𝑛 is a multiple of 5, then 𝑛2 is a multiple of 5.
Assume 𝑛 is a multiple of 5. So, for an integer π‘˜, we have 𝑛 = 5π‘˜ and hence
𝑛2 = (5π‘˜)2 = 25π‘˜ 2 = 5(5π‘˜ 2 )
2
which means 𝑛 is a multiple of 5. Therefore, the contrapositive and hence the statement itself
are correct.
5) Is the following statement true or false? If false find a counterexample and if true prove it. (2 pts)
For all real numbers π‘₯ and 𝑦, ⌈π‘₯ β‹… π‘¦βŒ‰ = ⌈π‘₯βŒ‰ β‹… βŒŠπ‘¦βŒ‹.
For π‘₯ = 𝑦 = 0.1, we have ⌈π‘₯ β‹… π‘¦βŒ‰ = ⌈0.1 × 0.1βŒ‰ = ⌈0.01βŒ‰ = 1 while ⌈π‘₯βŒ‰ = ⌈0.1βŒ‰ = 1 and βŒŠπ‘¦βŒ‹ =
⌊0.1βŒ‹ = 0 and hence 1 = ⌈π‘₯ β‹… π‘¦βŒ‰ β‰  ⌈π‘₯βŒ‰ β‹… βŒŠπ‘¦βŒ‹ = 1 × 0. Therefore, the statement is false.
February 16, 2017
1
MATH 1700
Midterm 1
6) Find each of the following. (3 pts)
a) 43 div 8 = 5
b) βŒˆβˆ’2.185βŒ‰ = βˆ’2
c) 1013 mod 5 = 3
7) Indicate whether the statements below are true or false. (3 pts)
a) βˆ€ real numbers π‘₯, βˆƒ real number 𝑦 such that π‘₯ < 𝑦. T
b) βˆƒ real number 𝑦 such that βˆ€ real numbers π‘₯, π‘₯ < 𝑦. F
c) βˆ€ real numbers π‘₯, and βˆ€ real numbers 𝑦, π‘₯ 2 + 𝑦 2 β‰₯ 3π‘₯𝑦. F
8) Prove the following statement by contradiction: (4 pts)
There is no largest rational number.
Suppose not. That is, assume there is the largest rational number and call it 𝑁. Since 1 is a rational
number and we know that the sum of two rational numbers is a rational number, 𝑁 + 1 is also a
rational number. But 𝑁 + 1 is strictly larger than 𝑁, which is in contradiction with 𝑁 being the
largest rational number. So, the original assumption is false and hence there is no largest rational
number.
9) Use mathematical induction to show that for all integers 𝑛 β‰₯ 0
8𝑛 βˆ’ 1 is divisible by 7.
Let 𝑃(𝑛): 8𝑛 βˆ’ 1 is divisible by 7.
a) State what you need to prove in the base step and carry out the proof. (1pt)
b) State what you need to prove in the inductive step and carry out the proof. (4 pts)
a) We need to prove 𝑃(0): 80 βˆ’ 1 is divisible by 7. Since 80 βˆ’ 1 = 1 βˆ’ 1 = 0 it is divisible by 7.
b) We need to assume 𝑃(π‘˜): 8π‘˜ βˆ’ 1 is divisible by 7 and prove 𝑃(π‘˜ + 1): 8π‘˜+1 βˆ’ 1 is divisible
by 7.
By induction assumption we have 8π‘˜ βˆ’ 1 = 7π‘˜, for some integer π‘˜. Therefore,
8π‘˜+1 βˆ’ 1 = 8 β‹… 8π‘˜ βˆ’ 1 = (7 + 1) β‹… 8π‘˜ βˆ’ 1 = 7 β‹… 8π‘˜ + 8βŸπ‘˜ βˆ’ 1 = 7 β‹… 8π‘˜ + 7π‘˜ = 7 β‹… (8π‘˜ + π‘˜)
=7π‘˜
and hence 8π‘˜+1 βˆ’ 1 is divisible by 7.
February 16, 2017
2