Question

In: Math

Find the number of integers between 100 and 1000 that are

Find the number of integers between 100 and 1000 that are

(i) divisible by 7 

(ii) not divisible by 7

 

 

 

Solutions

Expert Solution

(i) We have to find out the number of integers between 100 and 1000 that are divisible by 7 and the number of terms that are not divisible by 7.

 

We can see that every consecutive number that is divisible by 7 has a common difference of 7. So, all the numbers that we will get between 100 and 1000 that are divisible by 7 will form an AP.

The next number after 100 which is divisible by 7 is 105.

The largest three-digit number divisible by 7 :

1000÷7 has 6 as remainder.

1000-6 = 994

So nth term of AP = 994

First term = 105

Common difference, d = 7

a+(n-1)d = an

=> 105+(n-1)7 = 994

=> n-1 = (994-105)/7

= 127

=> n = 128

 

 Hence there are 128 integers which are divisible by 7.

 

(ii) There are 899 numbers between 100 and 1000.

128 integers are divisible by 7.

Number of integers which are not divisible by 7 = 899-128 = 771.

 

 


• 128 integers are divisible by 7.

• 771 integers are not divisible by 7.

Related Solutions

Consider all positive integers less than 100. Find the number of integers divisible by 3 or...
Consider all positive integers less than 100. Find the number of integers divisible by 3 or 5? Consider strings formed from the 26 English letters. How many strings are there of length 5? How many ways are there to arrange the letters `a',`b', `c', `d', and `e' such that `a' is not immediately followed by`e' (no repeats since it is an arrangement)?
Pick a number between 100 and 1000. For that energy in kJ/mol, what are the associated...
Pick a number between 100 and 1000. For that energy in kJ/mol, what are the associated wavelength (nm), frequency (1/s = Hz) and wavenumber (cm-1)?
write code to count the number of odd integers in an array of 100 random integers...
write code to count the number of odd integers in an array of 100 random integers in the range [0,99].
JAVA Write a program that reads the integers between -100 and 100 and counts the occurrences...
JAVA Write a program that reads the integers between -100 and 100 and counts the occurrences of each with ascending order. input: line1:number of figures line2:number Sample Input 5 -3 100 -1 -2 -1 Sample Output -3 1 -2 1 -1 2 100 1
Construct an array of 1000 random integers within range [0, 100] An input file input.txt is...
Construct an array of 1000 random integers within range [0, 100] An input file input.txt is provide. Each line of input.txt is a query integer that you need to check how many of that number is in your random integer array. For each query integer, fork a new child process to do the counting. The output is for each input query, output the count and child process id. For example: $> query: 13    count: 5    pid: 13342 $> query: 22   ...
Find two positive integers such that the sum of the first number and four times the...
Find two positive integers such that the sum of the first number and four times the second number is 100 and the product of the numbers is as large as possible. please double check answer
Write a C++ program to find the number of pairs of integers in a given array...
Write a C++ program to find the number of pairs of integers in a given array of integers whose sum is equal to a specified number.
Develop a C++ function to find the number of even and odd integers in a given...
Develop a C++ function to find the number of even and odd integers in a given array of integers Pass in an array of integers Pass in the size of the array of integers Pass in a reference parameter for the number of even values Pass in a reference parameter for the number of odd values The function doesn't return anything Develop a C++ program to test your function
DISCRETE MATH a. How many integers between 1 and 1000 are divisible by either 7 or...
DISCRETE MATH a. How many integers between 1 and 1000 are divisible by either 7 or 11? b . How many integers between 1 and 1000 have distinct digits? c .A student council consists of 15 students. Two council members always insist on serving on committees together. If they cannot serve together, they will not serve at all. How many ways can a committee of six be selected from the council membership? d. A set of five distinct computer science...
Create a random matrix of size 10x10, of integers between 1 and 1000, and use nested...
Create a random matrix of size 10x10, of integers between 1 and 1000, and use nested for loops over the elements of the matrix to find the number of prime elements , as well as the sum of the prime elements in the matrix. You can use MATLAB's built-in function isprime to check if an element is a prime number. You should have these variable: cnt (counts the number of prime elements) sm (sum of prime elements) In the command...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT