- 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 not divisible by 9

Given:

To do:

We have to find the sum of the integers between 100 and 200 that are not divisible by 9.

Solution:

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$

Integers between 100 and 200, which 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]$

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

$=11[108+5 \times 9]$

$=11(108+45)$

$=11 \times 153$

$=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
- Python Program to Print all Integers that are not Divisible by Either 2 or 3 and Lie between 1 and 50
- Find the Numbers that are not divisible by any number in the range [2, 10] using C++
- Count of m digit integers that are divisible by an integer n in C++
- 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++
- Elements of an array that are not divisible by any element of another array in C++
- 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++
- Check if a large number is divisible by 9 or not in 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
- Return the indices of unmasked elements that are not zero and group the indices by element in NumPy
- 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++