Find number of positive integers n less than 100 for which 3 n n 2 is divisible by 5
415 Review for Midterm1. For propositions P and Q below, state whether or not P � Q. Write a truth table to justify your answer. Show
ANSWER: P � Q. Truth table is as follows.
2. Determine the truth value of the following proposition. If it is true, prove it using direct proof. If it is false, state the negation explicitly and give a counterexample.
ANSWER: True.
3. Determine the truth value of the following proposition. If it is true, prove it using direct proof. If it is false, state the negation explicitly and give a counterexample.
ANSWER: False.
4. Prove the following proposition by using proof by contradiction.
ANSWER: Proof by contradiction.
5. (Section 1.6, #4; p. 46) Using induction, verify the following equation is true for every positive integer n.
ANSWER: Proof by induction
6. (Section 1.6, #17; p. 47) Using induction, verify the following inequality.
ANSWER: Proof by induction
7. (Section 1.6, #22; p. 47) By experimenting with small values of n, guess a formula for the given sum: 1 1 1 --- + --- + .. + ----- 1*2 2*3 n(n+1) ANSWER:
8. Write an algorithm that counts the number of even numbers in a sequence s = {s1, s2, .., sn}, where si (1 <= i <= n) is an integer. ANSWER: procedure count_even(s, n) 1. count := 0 2. i := 1 3. while (i <= n) 4. begin 5. if (si mod 2 = 0) then 6. count := count + 1 7. i := i + 1 8. end 9. return count end count_even 9. Use the Euclidean algorithm to find the greatest common divisor of 527 and 62. Show the values of variables a, b and r in each iteration. ANSWER: The gcd of 527 and 62 is 31, as shown in the following table.
How many integers less than 100 are divisible by either 2/3 or 5?No. s divisible by 2,3,5=3.
How many positive numbers less than 100 which is multiple of 2 or 5?Therefore, the number of numbers from 1 to 100 divisible by 2 or by 5 is: 50 + 20 - 10 = 60. Good luck!
How many positive integers not exceeding 100 and are divisible by neither 3 nor 5?This is an Expert-Verified Answer
Hence,42 is the answer.
What is the sum of all positive integers less than or equal to 100?Therefore, the sum of 100 first positive integers is 5050.
|