[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math


View post   

File: 229 KB, 375x500, wide398.jpg [View same] [iqdb] [saucenao] [google]
3850605 No.3850605 [Reply] [Original]

How do I calculate how many positive integers from 0-1000 do not contain a seven? Finding the answer isn't hard (728) only doing it quickly.

>> No.3850621

Lol'd at the pic

>> No.3850626

upgrade your brain cells. it is not hard but doing it in this century?

>> No.3850635

9^3 - 1

>> No.3850637

That pic just reminded me of something I saw in the T-Mobile store last night... I should have taken a photo of it.

Every single phone had a little sign that said:

$199
or
$199 down payment + $10/month for 24 months

The amount was different for each phone, but every single one of them said $X or $X + $Y/month for Z months.

>> No.3850640
File: 60 KB, 266x263, place651.jpg [View same] [iqdb] [saucenao] [google]
3850640

>>3850635
How?

>> No.3850642

1 digit numbers: 9 different choices
2-digit numbers: 9 choices for first digit, 9 for second...

see where this is going?

>> No.3850646

Start by finding all the numbers which do contain 7.

Remember to count the numbers which contain 7, and not the individual 7s.

Concept behind the problem is simple.

>> No.3850657

>>3850605
lol @ pic
>planet fitness
Oh that makes sense.

>> No.3850662
File: 105 KB, 388x587, costanza wat.jpg [View same] [iqdb] [saucenao] [google]
3850662

>>3850605

>2011
>acting on this marketing bull shit thinking you get a better deal
>mfw

>> No.3850701
File: 27 KB, 240x160, 1317070680108.png [View same] [iqdb] [saucenao] [google]
3850701

10x18=180
199/18= approximately 11$ per month

>> No.3850707

You write a program that does it for you.

>> No.3850752

> answer isn't hard
> 728
729. There are 728 3-digit numbers that don't contain a '7'. But you forgot about 1000.

>> No.3850890

Of all the numbers except 1000 (1000 total), 10% have a 7 as their first digit (if you write zeroes whenever there are less digits). So subtract 10% to get to 900.
Of all the numbers that don't start with a 7, 10% will have a 7 as the second digit. So subtract 10% again to get to 810.
Of all the numbers that remain, 10% will have a 7 as their last digit. Subtract 10% of 810 to get to 729.
Add 1 because 1000 wasn't included yet and you'll have 730.

Not sure how you got to 728.. forgot 0 and 1000?

>> No.3850911

>>3850890
This is right, though the method is weird. I fucked up.

Removing one symbol from our base-10 symbols gives us base 9. So how many base-9 numbers are there in 3 positions? 9^3 = 729. Plus 1000 is 730.

So, just some blackup there. I feel embarrassed about my 729 answer.

>> No.3851036

>>3850911
Different anon here. 729 is right. 0 is not a positive integer, OP wants positive integers.

>> No.3851366

>>3851036
ooh, nice catch