How Many 4-Digit Numbers Have at Least One 5 or 7?

  • Thread starter Thread starter z.js
  • Start date Start date
  • Tags Tags
    Probability
Click For Summary
To determine how many 4-digit numbers from 1000 to 9999 contain at least one digit that is a 5 or 7, the total possible outcomes are 9000. The user initially calculated desired outcomes using a complex formula but arrived at 5440, which is inconsistent with the textbook answer of 5416. A suggestion was made to solve the problem by calculating the complement—finding the count of numbers without a 5 or 7 and subtracting that from the total. The user expressed confusion about the correct approach and the formula used. Clarification on the complement method is needed to resolve the discrepancy in the calculations.
z.js
Messages
57
Reaction score
0
Hi everyone, I'm having a hard time with this problem:

Of the integers from 1000 to 9999, how many have at least one digit a 5 or 7?

My working :
[1000, 9999] = 9000 outcomes
∴ 9000 possible outcomes
Desired outcomes : (2*8^3) + (2^2*8^2)+(2^3*8)+(2^4), since 5 or 7 = 2 choices, any other numbers = 8 choices (from 0 - 9)
∴ 1360*4 desired outcomes (there are 4 places, and order matters here) = 5440 desired outcomes

But the textbook answers say 5416.

I was thinking :
maybe I should subtract from 5440 all desired outcomes which have a leading '0':
(1*8*8)+(1*2*8)+(1*2*2) = 84
∴ 5440 - 84 = 5356 (wrong!)
I'm not going to try and do numbers that have 2 leading '0's or more since the first is already proven that the answer is wrong.

Really confused about what I'm doing.
Any help would be very appreciated!
Thanks
Steve
 
Physics news on Phys.org
z.js said:
Desired outcomes : (2*8^3) + (2^2*8^2)+(2^3*8)+(2^4)

I don't understand where got you this expression from.

"At least" problems are solved by "calculate the opposite and subtract from the total sample space".
Do understand what the opposite of problem would be?
 
First trick I learned this one a long time ago and have used it to entertain and amuse young kids. Ask your friend to write down a three-digit number without showing it to you. Then ask him or her to rearrange the digits to form a new three-digit number. After that, write whichever is the larger number above the other number, and then subtract the smaller from the larger, making sure that you don't see any of the numbers. Then ask the young "victim" to tell you any two of the digits of the...

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
6
Views
2K
Replies
3
Views
2K
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
147
Views
10K
  • · Replies 7 ·
Replies
7
Views
2K