Maths five algera problems | Mathematics homework help
By tracing successive value of r find the output from the following algorithm when
a) n =13, b) n =20
While r>5 do
R; = r -5;
Output r; end
What can be said about n when the output from the algorithm is zero?
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
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.
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.