Find the sum of all 3-digit natural numbers which contain at least one odd digit and at least one even digit.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Great approach of finding the complement.
What is an easy way to find the sum of numbers containing only odd (even) digits?
Only odd digits sum easy way is by multiplying (111)(25)(1+3+5+7+9) to get 69375...
All 3-digit natural numbers with at least one odd digit and one even digit means all 3-digit natural numbers except those with 3 odd digits or 3 even digits.
The required sum S o e ∗ = the sum of all 3-digit numbers S ∗ ∗ ∗ − the sum of all 3-odd digit numbers S o o o − the sum of all 3-even digit numbers S e e e or S o e ∗ = S ∗ ∗ ∗ − S o o o − S e e e .
Three-digit numbers range from a = 1 0 0 to l = 9 9 9 , altogether n = 9 0 0 numbers. Therefore,
S ∗ ∗ ∗ = 2 n ( a + l ) = 2 9 0 0 ( 1 0 0 + 9 9 9 ) = 4 9 4 5 5 0
Since there are 5 odd digits (1, 3, 5, 7, 9), the number of 3-odd digit numbers n o o o = 5 × 5 × 5 = 1 2 5 . We note the each odd digit appear the same number of times as the unit, tenth and hundredth digit, that is 1 2 5 / 5 = 2 5 times. Therefore,
S o o o = ( 1 + 3 + 5 + 7 + 9 ) × 2 5 × 1 0 0 + ( 1 + 3 + 5 + 7 + 9 ) × 2 5 × 1 0 + ( 1 + 3 + 5 + 7 + 9 ) × 2 5 × 1 = 2 5 × 2 5 × 1 1 1 = 6 9 3 7 5
For 3-even digit numbers, however, starts with 200 to 888, and n e e e = 4 × 5 × 5 = 1 0 0 . Out of these 100 numbers, (2, 4, 6, 8) share as the 100 hundredth digit, that is 1 0 0 / 4 = 2 5 , but (0, 2, 4, 6, 8) share as the tenth and unit digits, that is 1 0 0 / 5 = 2 0 . Then, we have
S e e e = ( 2 + 4 + 6 + 8 ) × 2 5 × 1 0 0 + ( 0 + 2 + 4 + 6 + 8 ) × 2 0 × 1 0 + ( 0 + 2 + 4 + 6 + 8 ) × 2 0 × 1 = 2 0 ( 2 5 0 0 + 2 0 0 + 2 0 ) = 5 4 4 0 0
Therefore, S o e ∗ = S ∗ ∗ ∗ − S o o o − S e e e = 4 9 4 5 5 0 − 6 9 3 7 5 − 5 4 4 0 0 = 3 7 0 7 7 5 .
This question is indeed very very long,
First of all we sum all 3-digit numbers, S=450(1099) S=494550
Now we identify those numbers whose sum is not required and add them,
111,113,...,119 => 675
131,133,...,139 => 775
And so on,
As a whole the sum comes out to be 123775,
Now we subtract this from total,
494550-123775=370775
Problem Loading...
Note Loading...
Set Loading...
We can approach by complementary counting. The sum of numbers containing only odd numbers is obtained to be 69375 & the sum of the numbers containing only even numbers is obtained as 54400(55500-1100) Then we subtract the above results from the total sum of all 3-digit numbers(494550) to obtain 370775 as the answer...