document.write( "Question 252455: Evaluate: What is the sum of all the one’s digits in the following finite sequence?\r
\n" ); document.write( "\n" ); document.write( "3^0 ,3^1,3^2 ,3^3 ,...,3^2006
\n" ); document.write( "

Algebra.Com's Answer #184374 by drk(1908)\"\" \"About 
You can put this solution on YOUR website!
There is a pattern for the 3's\r
\n" ); document.write( "\n" ); document.write( "3^1 = 3
\n" ); document.write( "3^2 = 9
\n" ); document.write( "3^3 = 27
\n" ); document.write( "3^4 = 81.
\n" ); document.write( "3^5 = 243
\n" ); document.write( "Notice the pattern {3,9,7,1} repeats after every fourth group. The sum of 3,9,7,and 1 is 20. 2006 / 4 will get you the number of groups. That quotient is 501 remainder 2.\r
\n" ); document.write( "\n" ); document.write( "20*501 = 10020. This is the sum of the first 501 groups. Remainder 2 means add 3+9, or 3^2005 + 3^2006 = 3^1 + 3^2 in terms of units digits.\r
\n" ); document.write( "\n" ); document.write( "So, 20*501 + 12 = 10032. Don't forget to add back in 3^0 = 1.
\n" ); document.write( "The units digit is 2+1 = 3.
\n" ); document.write( "
\n" );