- Trending Categories
- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP

- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who

# “The product of two consecutive positive integers is divisible by 2”. Is this statement true or false? Give reasons.

Given:

"Product of two consecutive positive integers is divisible by 2".

To do:

We have to find whether the given statement is true or false.

Solution:

Let the 2 consecutive numbers be, $x$ and $x\ +\ 1$.

Now,

Product $=\ x\ \times\ (x\ +\ 1)$

If $x$ is even:

Let, $x\ =\ 2k$

Then,

Product $=\ 2k(2k\ +\ 1)$

Product $=\ 2(2k^2\ +\ k)$

From the above equation, it is clear that the product is divisible by 2.

If $x$ is odd:

Then,

Let, $x\ =\ 2k\ +\ 1$

Product $=\ (2k\ +\ 1)[(2k\ +\ 1)\ +\ 1]$

Product $=\ (2k\ +\ 1)[2k\ +\ 2]$

Product $=\ 2(2k^2\ +\ 3k\ +\ 1)$

From the above equation, it is clear that the product is divisible by 2.

Therefore, the given statement is true.- Related Questions & Answers
- Check whether product of integers from a to b is positive, negative or zero in Python
- If ([] == false) is true, why does ([] || true) result in []? - JavaScript
- Geolocation HTML5 enableHighAccuracy True, False or What?
- C# Program to find whether the Number is Divisible by 2
- Why does MySQL evaluate “TRUE or TRUE and FALSE” to true?
- Count subarrays whose product is divisible by k in C++
- How to find whether the Number is Divisible by 2 using C#?
- MongoDB query to find on the basis of true or false values
- Number is divisible by 29 or not in C++
- Check if a large number is divisible by 2, 3 and 5 or not in C++
- Ways to write N as sum of two or more positive integers in C++
- Maximum positive integer divisible by C and is in the range [A, B] in C++
- Why in JavaScript, “if ('0' == false)” is equal to false whereas it gives true in “if(0)” statement?
- Program to find number of consecutive subsequences whose sum is divisible by k in Python
- Golang Program to print all integers between a range that aren't divisible by either 2 or 3
- How to get the product of two integers without using * JavaScript

Advertisements