- 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

# Find the sum of the integers between 100 and 200 that are divisible by 9

To do:

We have to find the sum of all

(i) divisible by 9

(ii) not divisible by 9

Solution:

(i) Integers between 100 and 200, that are divisible by 9 are \( 108,117,126, \ldots, 198 \).

The sequence is in A.P.

Here,

\( a=108 \) and \( d=117-108=9 \)

\( l=198 \)

We know that,

$l=a+(n-1) d$

$\Rightarrow 198=108+(n-1) \times 9$

$\Rightarrow 198=108+9n-9$

$\Rightarrow 198-99=9 n$

$\Rightarrow n=\frac{99}{9}=11$

Therefore,

$n=11$

$\mathrm{S}_{n}=\frac{n}{2}[2 a+(n-1) d]$

$S_{11}=\frac{11}{2}[2 \times 108+(11-1) \times 9]$

$=\frac{11}{2}[216+10 \times 9]$

$=11(108+45)$

$=11 \times 153$

$=1683$

The sum of all integers between 100 and 200 that are divisible by 9 is $1683$.

(ii) Sum of the integers between 100 and 200, which are not divisible by 9 $=$ Sum of the integers between 100 and 200 $-$ Sum of the integers between 100 and 200, which are divisible by 9

Integers between 100 and 200 are \( 101,102,103, \ldots, 199 \).

The sequence is in A.P.

Here,

\( a=101 \) and \( d=102-101=1 \) \( l=199 \)

We know that,

$l=a+(n-1) d$

$\Rightarrow 199=101+(n-1) \times 1$

$\Rightarrow 199=101+n-1$

$\Rightarrow 199-100=n$

$\Rightarrow n=99$

$\mathrm{S}_{n}=\frac{n}{2}[2 a+(n-1) d]$

$=\frac{99}{2}[2 \times 101+(99-1) \times 1]$

$=\frac{99}{2}[202+98 \times 1]$

$=\frac{99}{2}(202+98)$

$=99 \times 150$

$=14850$

From (i)

The sum of all integers between 100 and 200 that are divisible by 9 is $1683$.

Therefore,

Sum of all

$=13167$

The sum of all integers between 100 and 200 which are not divisible by 9 is $13167$.

- Related Questions & Answers
- Count of m digit integers that are divisible by an integer n in C++
- Python Program to Print all Integers that are not Divisible by Either 2 or 3 and Lie between 1 and 50
- Sum of the numbers up to N that are divisible by 2 or 5 in c programming
- Maximize the number of sum pairs which are divisible by K in C++
- Find a non empty subset in an array of N integers such that sum of elements of subset is divisible by N in C++
- Find the Numbers that are not divisible by any number in the range [2, 10] using C++
- Find the minimum positive integer such that it is divisible by A and sum of its digits is equal to B in Python
- Find the minimum and maximum values that can be calculated by summing exactly four of the five integers in JavaScript
- Finding all the n digit numbers that have sum of even and odd positioned digits divisible by given numbers - JavaScript
- Print all the combinations of N elements by changing sign such that their sum is divisible by M in C++
- Find an array element such that all elements are divisible by it using c++
- Find N integers with given difference between product and sum in C++
- Find nth number that contains the digit k or divisible by k in C++
- Sum of first N natural numbers which are divisible by 2 and 7 in C++
- PHP program to find the sum of first n natural numbers that are divisible by a number ‘x’ or a number ‘y’
- Golang Program to print all integers between a range that aren't divisible by either 2 or 3