Solveeit Logo

Question

Question: How many different 7 digit numbers are there the sum of whose digits is even? The answer is expresse...

How many different 7 digit numbers are there the sum of whose digits is even? The answer is expressed as k×105k\times {{10}^{5}}. Find the value of k.

Explanation

Solution

Hint: Consider numbers of the form a1a2a3a4a5a6i{{a}_{1}}{{a}_{2}}{{a}_{3}}{{a}_{4}}{{a}_{5}}{{a}_{6}}i where ii can take the values 090-9. Count the number of possible values for each of ai{{a}_{i}}. Count the possible values of ii for a given set of numbers a1a6{{a}_{1}}-{{a}_{6}}. Multiply all the values to get the total number of seven digit numbers which have even sum.

Complete step-by-step answer:
We have to count the possible number of 7 digit numbers which can be formed such that the sum of digits is even.
We will consider numbers of the form a1a2a3a4a5a6i{{a}_{1}}{{a}_{2}}{{a}_{3}}{{a}_{4}}{{a}_{5}}{{a}_{6}}i, where ii can have any of the digits from 090-9.
So, the possible seven digit numbers are of the form a1a2a3a4a5a60,a1a2a3a4a5a61,...a1a2a3a4a5a69{{a}_{1}}{{a}_{2}}{{a}_{3}}{{a}_{4}}{{a}_{5}}{{a}_{6}}0,{{a}_{1}}{{a}_{2}}{{a}_{3}}{{a}_{4}}{{a}_{5}}{{a}_{6}}1,...{{a}_{1}}{{a}_{2}}{{a}_{3}}{{a}_{4}}{{a}_{5}}{{a}_{6}}9.
We observe that a1{{a}_{1}} can have any of the digits from 191-9, while a2a6{{a}_{2}}-{{a}_{6}} can have any of the digits from 090-9.
So, the number of digits possible at a1{{a}_{1}} are 9 and number of digits possible at each of a2a6{{a}_{2}}-{{a}_{6}} is 10.
For a fixed value of a1a6{{a}_{1}}-{{a}_{6}}, ii can take only odd values or even values. So the number of possible values of ii for fixed values of a1a6{{a}_{1}}-{{a}_{6}} is 5.
To calculate the number of possible seven digit numbers which have an even sum of digits, multiply the number of possible digits which can be placed at each place.
First place from right side i.e a1{{a}_{1}} place, numbers can be filled in 9 ways and a2a6{{a}_{2}}-{{a}_{6}} numbers can be filled in 10×10×10×10×1010\times10\times10\times10\times10 ways (as repetition is allowed) and last digit can be filled in 5 ways.
Thus, the number of possible seven digit numbers which have an even sum of digits =9×10×10×10×10×10×5=9\times10\times10\times10\times10\times10\times 5
=9×105×5=9\times {{10}^{5}}\times 5.
So, the number of possible seven digit numbers which have even sum of digits =45×105=45\times {{10}^{5}}.
We know that the number of possible seven digit numbers which have an even sum of digits expressed as k×105k\times {{10}^{5}}.
Thus, we have k×105=45×105k\times {{10}^{5}}=45\times {{10}^{5}}.
So, we have k=45k=45.
Hence, the value of k is 45.

Note: We can also solve this question by calculating the total number of seven digits numbers which can be formed and dividing it by 2 because half of them will have odd sum and half of them will have even sum. This is a shorter trick to solve the question and it will also save our time.