- 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

# Given an example of a number which is divisible by

**(i)** 2 but not by 4.

**(ii) **3 but not by 6.

**(iii)** 4 but not by 8.

**(iv) **both 4 and 8 but not 32.

To do:

We have to give an example of a number which is divisible by

(i) 2 but not by 4.

(ii) 3 but not by 6.

(iii) 4 but not by 8.

(iv) both 4 and 8 but not 32.

Solution:

(i) We know that,

A number is divisible by 2 if the units digit of it is even but it is divisible by 4 if the number formed by tens digit and ones digit is divisible by 4.

Therefore,

Numbers which are divisible by 2 but not by 4 are 14, 18, 122, 222, etc.

(ii) We know that,

A number is divisible by 3 if the sum of its digits is divisible by 3 but a number is divisible by 6, if it is divided by 2 and 3 both.

Therefore,

Numbers which are divisible by 3 but not by 6 are 9, 21, 123, 333, etc.

(iii) We know that,

A number is divisible by 4 if the number formed by the tens digit and ones digit is divisible by 4 but a number is divisible by 8, if the number formed by hundreds digit, tens digit and ones digit is divisible by 8.

Therefore,

Numbers which are divisible by 4 but not by 8 are 124, 244, 324, etc.

(iv) We know that,

A number is divisible by 8 if the number formed by hundreds digit, tens digit and ones digit is divisible by 8.

A number divisible by 8 is also divisible by 4.

A number which is divisible by both 4 and 8 is not necessarily divisible by 32.

Therefore,

Numbers which are divisible by both 4 and 8 but not by 32 are 152, 328, etc.

- Related Questions & Answers
- Find permutation of n which is divisible by 3 but not divisible by 6 in C++
- Number of substrings divisible by 8 and not by 3 in C++
- Count numbers in range 1 to N which are divisible by X but not by Y in C++
- Sum of the series 2 + (2+4) + (2+4+6) + (2+4+6+8) + ... + (2+4+6+8+...+2n) in C++
- Query with values prepended by ampersand works in Oracle but not in MySQL?
- Check if a large number is divisible by 8 or not in C++
- innerHTML adds text but not HTML tags
- STR_TO_DATE as column, but column not found?
- C++ program to find nth Term of the Series 1 2 2 4 4 4 4 8 8 8 8 8 8 8 8 …
- Create a column on my table that allows null but is set by default to empty (not null)?
- Check if a large number is divisible by 2, 3 and 5 or not in C++
- Python Program that Displays which Letters are in the Two Strings but not in Both
- Number is divisible by 29 or not in C++
- Check if a large number is divisible by 3 or not in java
- Check if a large number is divisible by 3 or not in C++
- Find the nth term of the given series 0, 0, 2, 1, 4, 2, 6, 3, 8, 4… in C++