QUESTION 1–
By tracing successive value of r find the output from the following algorithm when
Check your essay before you submit. See exactly what your professor sees.
See your AI and plagiarism results before your instructor does.Get the exact same report your professor uses. Trusted by 50,000+ students worldwide.
a) n =13, b) n =20
begin
Input n;
R:=n;
While r>5 do
R; = r -5;
Output r; end
What can be said about n when the output from the algorithm is zero?
Question 3-
Prove by induction on n, that
(1×2) + (2×3) + (3×4) + ….. + n (n+1) = 1/3 n (n+1)(n+2)
For all integers n>1
Question4
Consider the following subsets of the set Z of all integers.
For each of the following propositions state whether it is true or false. In each case brief reason for your answer.
Question 5-
A relation R on Z is given by x + 3y is an even integer.
a) Show that if integers x and y are R-related then either x and y are both even or x and y are both odd.
b) With the help of part (a) prove that R is an equivalence relation.
Welcome to one of the most trusted essay writing services with track record among students. We specialize in connecting students in need of high-quality essay writing help with skilled writers who can deliver just that. Explore the ratings of our essay writers and choose the one that best aligns with your requirements. When you rely on our online essay writing service, rest assured that you will receive a top-notch, plagiarism-free A-level paper. Our experienced professionals write each paper from scratch, carefully following your instructions. Request a paper from us and experience 100% originality.


