Integers 0-9999999 containing 2 3's and 2 5's

  • Thread starter SneakyArab
  • Start date
  • Tags
    Integers
In summary, the question asks how many integers from 0-9,999,999 have exactly two 3's and two 5's as digits. The correct answer is 107520, which can be found by choosing 2 positions out of the 7 for the 3's, 2 positions out of the remaining 5 for the 5's, and any of 8 digits for the remaining 3 spots, giving a total of 7 choose 2 * 5 choose 2 * 8^3. The logic used is crucial in arriving at the correct answer.
  • #1
SneakyArab
17
0

Homework Statement


How many integers from 0-9,999,999 have exactly two 3's and two 5's as digits.


Homework Equations


I'm not really sure...


The Attempt at a Solution


The answer is 107520, if I'm not mistaken. I made a program to count it up for me, so I'm fairly sure that that is the correct answer. I'm just trying to figure out how to do it manually now.

So I know there are 7 digits, 4 of which are 3, 3, 5, 5, and the other 3 are 0,1,2,4,6,7,8,9.
So the remaining 3 digits each have 8 possibilities. So there are 8^3 different combos for the other 3 digits. But then all of the digits can be rearranged, so I thought it would be 7! * 8^3. That was not even close to correct.
 
Physics news on Phys.org
  • #2
Well, each of the 7 digits can be any digit from 0...9. So we have the numbers

0 0 0 0 0 0 0
0 0 0 0 0 0 1
...
9 9 9 9 9 9 8
9 9 9 9 9 9 9

Clearly, there are 10^7, or 10 million, of these.

So, you have to pick 2 from 7 to call "3". Then you have to pick 2 from the remaining 5 places to call "5". Then you can choose any of 8 digits to fill the last three spots.

If you use this information, you WILL get the right answer. If I were to do the next step, you would get the answer. That's how close you are now. Focus on the logic I used and understand that, as that's what's most important.
 
  • #3
Not all rearrangements give rise to different numbers. You are over counting. First pick two positions out of the 7 to place the 3's. How many ways to do that?
 
  • #4
Ooooh ok, I see.
so its 7 choose 2 * 5 choose 2 * 8^3
Thank you so much!
 

Related to Integers 0-9999999 containing 2 3's and 2 5's

1. What is the total number of integers between 0 and 9999999 that contain exactly 2 3's and 2 5's?

The total number of integers between 0 and 9999999 that contain exactly 2 3's and 2 5's is 4500. This can be calculated by first finding the total number of integers between 0 and 9999999, which is 10000000. Then, subtracting the number of integers that do not contain any 3's or 5's (9000000) and the number of integers that contain only 2 3's or 2 5's (2000 each), leaving us with 4500.

2. How do you determine if an integer contains exactly 2 3's and 2 5's?

To determine if an integer contains exactly 2 3's and 2 5's, we can use the following steps:

  1. Convert the integer to a string to easily access its individual digits.
  2. Use the count() function to count the number of 3's and 5's in the string.
  3. If the count for both 3's and 5's is equal to 2, then the integer contains exactly 2 3's and 2 5's.

3. What is the smallest integer between 0 and 9999999 that contains exactly 2 3's and 2 5's?

The smallest integer between 0 and 9999999 that contains exactly 2 3's and 2 5's is 3355. This can be found by starting at 33 and incrementing by 5 until we reach a number that contains exactly 2 3's and 2 5's.

4. Can an integer between 0 and 9999999 contain more than 2 3's and 2 5's?

No, an integer between 0 and 9999999 cannot contain more than 2 3's and 2 5's. This is because the number of digits in the integer is limited to 7, and in order to contain more than 2 3's and 2 5's, it would require at least 8 digits.

5. Is there a pattern or formula for finding integers between 0 and 9999999 that contain exactly 2 3's and 2 5's?

Yes, there is a pattern for finding integers between 0 and 9999999 that contain exactly 2 3's and 2 5's. We can observe that these integers follow the form 3x + 2y, where x and y represent the number of 3's and 5's respectively. For example, 5335 (3x = 15, 2y = 20) and 33355 (3x = 30, 2y = 10) both follow this pattern.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
3
Views
897
  • Calculus and Beyond Homework Help
Replies
32
Views
2K
  • Precalculus Mathematics Homework Help
Replies
3
Views
1K
  • Precalculus Mathematics Homework Help
Replies
7
Views
1K
  • Precalculus Mathematics Homework Help
Replies
19
Views
1K
  • Precalculus Mathematics Homework Help
Replies
6
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
564
  • Calculus and Beyond Homework Help
Replies
22
Views
2K
  • Precalculus Mathematics Homework Help
Replies
1
Views
967
  • Precalculus Mathematics Homework Help
Replies
6
Views
804
Back
Top