0% found this document useful (0 votes)
5 views3 pages

01. Logic

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 3

National Higher School of Mathematics

Preparatory Cycle Academic Year : 2023/2024


First Year Course : Algebra 1

Worksheet 1 :
Mathematical logic and mathematical reasoning

Exercise 1.
1. Give two statements P and Q such that
(a) P =⇒ Q is true and Q =⇒ P is true.
(b) P =⇒ Q is true and Q =⇒ P is false.
(c) P =⇒ Q is false and Q =⇒ P true.
2. Is it possible to find two statements P and Q such that P =⇒ Q is false and Q =⇒ P is false ?

Exercise 2.
Let P , Q and R be three statements.
1. Show the following compound statements are logically equivalent by using two different methods.

(a) P =⇒ (Q ∨ R) and (P ∧ R) =⇒ Q. (c) (P ∧ (P ∨ Q)) ∨ (P ∧ Q) and P .


(b) (P ∨ Q) ∨ (P ∧ Q) and P .

2. Without using the truth table, simplify the statement (P ∧ Q) ∨ (P ∧ Q) ∨ (P ∧ Q).


3. Verify whether the following compound statements are tautologies, contradictions, or contingencies.

(a) (P ∧ Q) ∧ (P ∨ Q). (c) (P =⇒ Q) ⇐⇒ (P =⇒ Q).


(b) (P ∨ Q) ∧ P ) =⇒ Q. (d) ((P =⇒ Q) ∧ (Q =⇒ R)) =⇒ (P =⇒ R).

Exercise 3.
Give the logical relationships between the following statements

1. P1 : All men are mortal. 4. P4 : No man is immortal.


2. P2 : All men are immortal. 5. P5 : There are immortal men.
3. P3 : No man is mortal. 6. P6 : There are mortal men.

Exercise 4.
1. Let f : R → R be a map. Using the syntax of the predicates write the following sentences and then
give their negation.

(a) f is positive. (f ) f is strictly monotonic.


(b) f is the zero function. (g) f changes the sign.
(c) f is even. (h) f is upper bounded.
(d) f is odd. (i) f is constant.
(e) f is decreasing. (j) f is the identity map.

1
(k) f is periodic. (o) f is not constant.
(l) f is strictly increasing.
(m) f possesses a maximum. (p) f never has the same values at two different
(n) f does not vanish on R. points.

2. Using the syntax of the predicates write the following sentences and then give their negation.
(a) The square of any real number is positive or zero.
(b) Any positive integer is the sum of three squares.
(c) For any real number, we can find a real number such that their product is greater than 1.
(d) Any nonempty part of N admits a smallest element.

Exercise 5.
Say if the following statements are true or false and write their negation.

1. ∀x ∈ R, x < 3 =⇒ x2 < 9. 10. ∀x ∈ R∗+ , ∀y ∈ R, ∃n ∈ Z, 0 ≤ y − nx < x.


2. ∀x, y ∈ R, x < y ⇐⇒ x2 < y 2 . 11. ∀x ∈ R∗+ , ∀y ∈ R, ∃m ∈ Z : m+1 ≤ y −mx < m.
3. ∃a ∈ R, ∀ε > 0, |a| < ε. 12. ∀x ∈ Z, ∃y ∈ Z, ∀z ∈ Z, z = x − y.
4. ∀a, b ∈ Z, a + ab + b = 0 ⇐⇒ a = b = 0. 13. ∃x ∈ Z, ∀y ∈ Z, ∀z ∈ Z, z = x − y.
3
5. ∃x ∈ R, (x + 3 = 0 ∧ x + 3 = 0). 14. ∀x ∈ R, ∀y ∈ R, x2 + y 2 ∈ R+ .
6. (∃x ∈ R, x3 + 3 = 0) ∧ (∃x ∈ R, x + 3 = 0). 15. ∀x ∈ R, ∃y ∈ R, x2 − y 2 ∈ R+ .
7. ∀x, y ∈ R, ∃n ∈ N, nx > y. 16. ∃x ∈ R, ∀y ∈ R, x2 − y 2 ∈ R+ .
8. ∀x ∈ R∗+ , ∀y ∈ R, ∃n ∈ N, nx > y. 17. ∀A ⊂ E, ∃B ⊂ E, A ∪ B = E.
9. ∀x ∈ R, ∃m ∈ Z, m ≤ x < m + 1. 18. ∃A ⊂ E, ∀B ⊂ E, A ∪ B = E.

Exercise 6.
1. Prove that
n
n(n + 1)(2n + 1) n
1 √
k2 =
P P
(a) . (d) √ < 2 n.
k=1
6 k=1 k
n
n2 (n + 1)2 (e) ∀n ∈ N, 2n−1 ≤ n! ≤ nn .
k3 =
P
(b) .
k=1
4 n−1
(f ) ∀n ∈ N, an − bn = (a − b) ak bn−1−k , where
P
n
P 1 n k=0
(c) = . a, b ∈ C.
k=1
k(k + 1) n+1

2. Prove each of the following statements using induction


(a) if x > −1 is any real number, then (1 + x)n ≥ 1 + nx for all n ∈ N.
n!
(b) The number of parts with k elements of a set with n elements is equal to .
k!(n − k)!
i=n
Q i=n
P
(c) For any x1 , x2 , . . . , xn ∈ [0, 1] : (1 − xi ) ≥ 1 − xi .
i=1 i=1

(d) Any integer n > 2 is either prime or has a prime divisor p such that p is less or equal to n.
3. Using induction show that
(a) ∀n ∈ N, ∃(p, q) ∈ N20 , n = 2p (2q + 1).
(b) ∀n ∈ N0 , 10|(n5 − n).

2
(c) Every positive integer can be written as a product of prime factors, and this product is unique
up to reordering of the factors.

Exercise 7. n
X 1
For any integer n ≥ 2, let Hn := . Hn is called the n-th harmonic number. The goal of this exercise
k=1
k
is to show that Hn isn’t an integer for n ≥ 2.
1. Show that for any positive integer m, there exist a positive integer a and nonnegative integer b such
1 a
that H2m = Hm + .
2 2b + 1
2. Using induction, show that for any integer n ≥ 2, Hn is a quotient of an odd integer and an even
integer.
3. Deduce that Hn is not an integer for n ≥ 2.

Exercise 8.
1. Using the proof by contrapositive, show that the following statements are true.
(a) For n ∈ N, if 3n2 + n + 2 is odd then n is odd.
(b) If a2 is not an integer multiple of 16, then a/2 is not an even integer.
(c) For two positive integers a and n, if an − 1 is a prime number, then a = 2 and n is a prime
number.
x y
(d) ∀x ∈ R, ∀y ∈ R, if xy ̸= 1 and x ̸= y, then 2 ̸= 2 .
x +x+1 y +y+1
2. Using the proof by contradiction, show that the following statements are true.

(a) ∀n ∈ N, n2 + 1 ∈ / N.
(b) If a, b ∈ Z, then a2 − 4b − 2 ̸= 0.
(c) If a, b, c ∈ Z such that a2 + b2 = c2 , then a or b is even.

(d) p ∈ / Q, for any prime number p.
√ √
(e) 2 + 3 ∈ / Q.
ln 2
(f ) ∈/ Q.
ln 3
(g) cos 1◦ ∈ / Q.
(h) Let p1 , p2 , . . . , pr be prime numbers. The integer N = p1 p2 . . . pr + 1 is not divisible by any of the
integers pi .

Exercise 9.
Find two irrational numbers a, b such that ab is a rational number.

Exercise 10.
1. Find all maps f : N0 −→ N0 that satisfy, f (n + m) = f (n) + f (m) for all nonnegative integers n
and m.
2. Find all maps g : N0 −→ N0 that satisfy, g(n + m) = g(n) × g(m) for all nonnegative integers n
and m.
3. Find all functions h : R −→ R that satisfy, for all x, y ∈ R, h(y − h(x)) = 2 − x − y.

You might also like