SOLUTION: What is the sum of all the 4-digit numbers all of whose digits are odd?

Algebra.Com
Question 464325: What is the sum of all the 4-digit numbers all of whose digits are odd?

Found 2 solutions by jorel1380, Edwin McCravy:
Answer by jorel1380(3719)   (Show Source): You can put this solution on YOUR website!
The sum of all numbers between 1 and n can be found using the equation:n(n+1)/2
So, therefore, the sum of all numbers between 1 and 1000 is
1000(1001)/2=500500
Likewise, the sum of all numbers between 1 and 9999 is
9999(10000)/2=49995000
Thus, the total of all numbers between 1000 and 9999 is the difference between the two, or
49995000-500500=49494500
The sum of all the odd integers in that span is roughly 1/2 of all the integers so our answer is
49494500/2=24747250..

Answer by Edwin McCravy(20056)   (Show Source): You can put this solution on YOUR website!
What is the sum of all the 4-digit numbers all of whose digits are odd?

The other tutor's answer is incorrect.

There are 5 ways to choose each digit as 1,3,5,7,or 9,
so the total number of 4 digit numbers with only odd
digits is 5^4 or 625.  Think of all 625 numbers added 
up like this: 

 1111
 1113
 1135
 ....
 ....
 9995
 9997
+9999
-----

Each of the 4 columns of 625 digits contains the
same number of 1's as 3's as 5's as 7's and as 9's.  
Therefore each of the 4 columns of 625 digits 
contains 125 1's, 125 3's, 125 5's, 125 7's, and 125 9's

So the sum of each column of digits is 

125(1 + 3 + 5 + 7 + 9) = 125(25) = 3125
 
The column of thousands digits accounts for 3125000 toward the sum
The column of  hundreds digits accounts for  312500 toward the sum
The column of      tens digits accounts for   31250 toward the sum
The column of      ones digits accounts for    3125 toward the sum
------------------------------------------------------------------
So the sum is is the sum of those numbers-> 3471875               
   
An easier way to do it is to realize it is the same as if all
the digits were the average of the odd digits, which is 5. So
the answer is the same as if every number among the 625 were 
replaced by 5555.  So 5555×625 = 3471875.

Edwin

RELATED QUESTIONS

What is the sum of all the four-digit numbers whose digits are permutations 1,2,3, and... (answered by stanbon)
Find three consecutive odd whole numbers such that the sum of their squares is a... (answered by ankor@dixie-net.com)
I am a 3 number. All of my digits are ODD numbers and each digit is different. The sum of (answered by richard1234)
Randy writes down a 5-digit number whose digits are all different, and whose first digit (answered by ikleyn)
I am a 3 digit number.all my digits are odd numbers and each digit is different.the sum... (answered by ewatrrr,advanced_Learner)
I am a two digit odd number. The sum of my digits is 5. I am the sum of five different (answered by Edwin McCravy)
Find all two-digit numbers such that the sum of the digits is... (answered by Edwin McCravy)
What is the sum of all the positive 3-digit whole numbers with even digits... (answered by robertb)
What is the sum of all odd one digit prime positive numbers (answered by Edwin McCravy)