Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Write the numbers \(1, 2,..., 2n\) on a blackboard, where \(n\)is an odd integer. Pick any two of the numbers,\(j and k\), write \(\left| {j - k} \right|\)on the board and erase\(j and k\). Continue this process until only one integer is written on the board. Prove that this integer must be odd.

Short Answer

Expert verified

“The last integer left on the board at the end of the process will to be odd value”.

Step by step solution

01

Introduction

An integer m is said to be an odd integer if it has the following form

\(m = 2n + 1\), for some\(n \in Z\).

02

Writing given numbers and solving

Write the numbers\(1,2,.....2n\) on a blackboard, where n is to be an odd integer.

The addition of the numbers written on the board will be,

\(1 + 2 + 3 + ..... + x = \frac{{x\left( {x + 1} \right)}}{2}\).

Using the formula above for the addition of first x natural numbers,

\(1 + 2 + 3 + ..... + x = \frac{{x\left( {x + 1} \right)}}{2}\)

The addition defined above is given as follows:

\(\begin{aligned}{}1 + 2 + 3 + ..... + 2n = \frac{{2n\left( {2n + 1} \right)}}{2}\\ = n\left( {2n + 1} \right)\end{aligned}\)

As n and\(2n + 1\)both are odd numbers, the addition of the numbers written on the board\(n\left( {2n + 1} \right)\)will be an odd number.

Now pick any two values j and k from the board.

Erase them and write\(\left| {j - k} \right|\)on the board.

So, the addition of the numbers left on the board is given by

\(n\left( {2n + 1} \right) + \left| {j - k} \right| - j - k = n\left( {2n + 1} \right) + \left| {j - k} \right| - \left( {j + k} \right)\).

03

Three cases arise

  1. One of j and k is an odd value and the other is an even value.
  2. Both j and kare even numbers.
  3. Both j and k are odd numbers.
04

Case 1- If only one of j and k is an odd value

Then by property of odd and even values, the addition \(j + k\) and the difference\(\left| {j - k} \right|\)will be odd.

05

Case 2- If both j and k are even values

Then by property of even numbers, the addition \(j + k\)and then difference \(\left| {j - k} \right|\)will be even.

06

Case 3- If both j and k are odd numbers

Then by property of odd numbers, the addition \(j + k\)and the difference \(\left| {j - k} \right|\)will be even.

07

Conclusion

So, if the addition of the numbers left on the board is decreased by an odd number\(j + k\), it is increased by another odd number\(\left| {j - k} \right|\).

And if the sum of numbers left on the board is decreased by an even number\(j + k\), it is increased by another even number\(\left| {j - k} \right|\).

Thus, in both cases, the parity of the addition of the numbers written on the board never changes.

The addition of the numbers\(1,2,.....2n\)written initially on the board is odd; the addition of the numbers left at the end will also be odd.

Therefore, “the last integer left on the board at the end of the process will to be odd value”.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Construct a combinatorial circuit using inverters, OR gates, and AND gates that produces the output¬p¬r¬q¬pqr from input bits p,qand r

Write each of these statements in the form “if p, then q” in English. [Hint: Refer to the list of common ways to express conditional statements provided in this section.]


a) It is necessary to wash the boss’s car to get promoted.
b) Winds from the south imply a spring thaw.
c) A sufficient condition for the warranty to be good is that you bought the computer less than a year ago.
d) Willy gets caught whenever he cheats.
e) You can access the website only if you pay a subscription fee.
f ) Getting elected follows from knowing the right people.
g) Carol gets seasick whenever she is on a boat.

For each of these sentences, determine whether an inclusive or, or an exclusive or, is intended. Explain your answer

a) Coffee or tea comes with dinner.
b) A password must have at least three digits or be at least eight characters long.
c) The prerequisite for the course is a course in number theory or a course in cryptography.
d) You can pay using U.S. dollars or euros

Construct a truth table for each of these compound propositions.

a)p(¬qr)b)¬p(qr)c)(pq)(¬pr)d)(pq)(¬pr)e)(pq)(¬qr)f)(¬p¬q)(qr)


Suppose that Prolog facts are used to define the predicates mother(M,Y)and father(F,X)which represent that Mis the mother of Yand Fis the father of X, respectively. Give a Prolog rule to define the predicate grandfather (X,Y),which represents that Xis the grandfather of Y. [Hint: You can write a disjunction in Prolog either by using a semicolon to separate predicates or by putting these predicates on separate lines.]

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free