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

In summary, the conversation discusses how to find the number of integers between 1000 and 9999 that have at least one digit 5 or 7. The total number of possible outcomes is 9000. The desired outcomes can be calculated using the formula (2*8^3) + (2^2*8^2)+(2^3*8)+(2^4), since 5 or 7 can be chosen in 2 ways and any other number in 8 ways. This results in 5440 desired outcomes. However, the textbook answer is 5416, which leads to a discussion about subtracting outcomes with leading zeros. The conversation ends with a request for clarification and help.
  • #1
z.js
57
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
  • #2
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?
 

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

What is probability?

Probability is a measure of the likelihood that a specific event will occur. It is expressed as a number between 0 and 1, where 0 indicates impossibility and 1 indicates certainty.

How do I calculate probability?

To calculate probability, you must determine the number of favorable outcomes and divide it by the total number of possible outcomes. This will give you a decimal value, which can be converted to a percentage if desired.

What is the difference between theoretical and experimental probability?

Theoretical probability is based on mathematical calculations and assumes that all outcomes are equally likely to occur. Experimental probability is based on actual data collected from experiments or real-life events.

Can probability be greater than 1?

No, probability cannot be greater than 1. This would indicate that an event is certain to occur, which is not possible.

Why is understanding probability important?

Understanding probability is important in many fields, such as science, statistics, and economics. It allows us to make informed decisions and predictions based on the likelihood of certain events occurring.

Back
Top