Need help with easy math problem.

SP33Demon

Lifer
Jun 22, 2001
27,928
143
106
Ok this is really simple, need to know how many numbers would be missing from 0 to 999 counting by 3, for example 0,3,6,9,12. It's been awhile since I did this and I forget the equation (15 years since basic math haha).

Thanks.
 

MiLLeRTiMe

Junior Member
Jan 28, 2003
15
0
0
ummm unless im looking at it wrong would it just be 666?

999/3 = 333

999-333=666

hope this helps..

l8rz,
~miller

edit* add 1 to the anwser for zero
 

Kyteland

Diamond Member
Dec 30, 2002
5,747
1
81
334

There are exactly 999 numbers from 1-999 so there are 333 number in that range regardless of position. Then you just add the 0 on to that to get 334.

Edit: oops, misread. 1000-334 = 666 ( :evil: )
 

SP33Demon

Lifer
Jun 22, 2001
27,928
143
106
Thanks guys! I got the same answer [(999/3) + 1], but just wanted to be 100% since this has to be perfect for some code I'm doing.

~Rob :)