Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Statistic Question.

  1. Aug 17, 2010 #1
    How many times will the number 3 appear in counting numbers from 1 to 1000?

    PS: Just joined the forums.
  2. jcsd
  3. Aug 18, 2010 #2
    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

    Mathematica can construct all of the digits and count the number of 3s using
    Count[Flatten[IntegerDigits/@Range[1000]], 3]
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook