- 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

# Write the smallest digit and the greatest digit in the blank space of each of the following numbers so that the number formed is divisible by 3 :

**(a)** _ 6724

**(b)** 4765 _ 2

To do :

We have to find the smallest digit and the greatest digit in the blank spaces so that the numbers formed are divisible by 3.

Solution :

Divisibility rule of 3:

Divisibility rule for 3 states that a number is completely divisible by 3 if the sum of its digits is divisible by 3.

(a) Let the digit in the blank space be $x$ where $0 \leq x \leq 9$.

x6724

Sum of the digits $= x + 6 + 7 + 2 + 4$

$= x + 19$

Now, $x+19$ is divisible by 3.

21 is the smallest multiple of 3 which comes after 19

This implies,

The smallest digit $x= 21 - 19$

$= 2$

The largest possible value of $x$ is,

$x+19$ is divisible by 3.

If $x=9, x+19=9+19=28$ which is not divisible by 3.

If $x=8, x+19=8+19=27$ which is divisible by 3.

Therefore,

The largest possible value of $x$ is 8.

Hence, the smallest digit is 2 and the greatest digit is 8.

(b) Let the digit in the blank space be $x$ where $0 \leq x \leq 9$.

4765x2

Sum of the digits $= 4 + 7 + 6 + 5 + x + 2$

$= x + 24$

Now, $x+24$ is divisible by 3.

In this case, 24 is the smallest multiple of 3.

This implies,

The smallest digit $x= 24 - 24$

$= 0$

The largest possible value of $x$ is,

$x+24$ is divisible by 3.

If $x=9, x+24=9+24=33$ which is divisible by 3.

Therefore,

The largest possible value of $x$ is 9.

Hence, the smallest digit is 0 and the greatest digit is 9.

- Related Questions & Answers
- Is the digit divisible by the previous digit of the number in JavaScript
- Finding difference of greatest and the smallest digit in a number - JavaScript
- N digit numbers divisible by 5 formed from the M digits in C++
- Finding the greatest and smallest number in a space separated string of numbers using JavaScript
- Check if frequency of each digit is less than the digit in Python
- Find nth number that contains the digit k or divisible by k in C++
- Finding all the n digit numbers that have sum of even and odd positioned digits divisible by given numbers - JavaScript
- Smallest number formed by shuffling one digit at most in JavaScript
- Checking digit sum of smallest number in the array in JavaScript
- C++ Program for Smallest K digit number divisible by X?
- C++ Programming for Smallest K digit number divisible by X?
- Python Program for Smallest K digit number divisible by X
- Java Program for Smallest K digit number divisible by X
- C++ Program for the Largest K digit number divisible by X?
- Greatest digit of a number in JavaScript
- Count of Numbers in Range where first digit is equal to last digit of the number in C++