View Full Version : Statistic Question.
Abderrahim
Aug17-10, 11:04 PM
How many times will the number 3 appear in counting numbers from 1 to 1000?
PS: Just joined the forums.
Simon_Tyler
Aug18-10, 05:44 AM
Hi there,
I'm not sure if it's really statistics, and it sounds a bit like a homework question...
Here's a hint:
there's 1 3 in the units digit in every nnn0..nnn9
there's 10 3s in the tens digit in ever nn00..nn99
etc....
Mathematica can construct all of the digits and count the number of 3s using
Count[Flatten[IntegerDigits/@Range[1000]], 3]
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.