# math (data management)

How many n-digit decimal sequences (using digits 0-9) are there with k 1s?

I'm not entirely sure what you question is asking, but I'll take a guess.
You have n digits and k 1's with k<n
There are n choose k ways to arrange the 1's in your number.
You now have n-k places to choose the other 9 numbers. There are two cases to consider: when the fist digit is 1 and when it isn't. If it's not 1 then there are only 8 digits you can use, since a number wouldn't have 0 in the lead position. If it is a 1 then there are 9 possible choices for each of the n-k position or 9n-k * n choose k numbers. I'll let you finish it for the case when it's not a 1 in the first place, then add the two together for the total.

I see someone else posted this question too and they said leading 0's are acceptable, so you can disregard part of the previous post if you have the same quesiton as them.
There are n choose k ways to arrange the 1's and 9n-k ways to select the other numbers, so
n choose k * 9n-k total numbers here.

1. 👍
2. 👎
3. 👁

## Similar Questions

1. ### math

How many different sequences of 4 digits are possible if the first digit must be 3, 4, or 5 and if the sequence may not end in 000? Repetition of digits is allowed. A) 2000 B) 2997 C) 2999 D) 1512

2. ### math

Solve the mathematical puzzle. Determine the digits of Q from these clues. The first and third digits of Q are even. The second and fourth digits of Q are odd. The first digit is two times the fourth digit. The first and second

3. ### math

Form the greatest possible 5-digit number using the clues.All five digits are different. None of the five digit are 1.The digit in the ten thousands place is greater than 7.The sum of all five digit is 18.The greatest digit is

4. ### LSAT PREP

A company employee generates a series of five-digit product codes in accordance with the following rules: The codes use the digits 0, 1, 2, 3, and 4, and no others. Each digit occurs exactly once in any code. The second digit has

1. ### Math

Use the clues to figure out the six-digit decimal number. 1. It is greater than 3,000 and less than 3,200 2. All the digits are different 3. The digit in the undredths place isa multiple of 5. 4. The product of 5 and th digit in

2. ### math rounding

this 7 digit number is 8,920,000 when rounded to the nearest ten thousand? The digits in the tens and hundreds place are the least and same value . THe value of the thousands digit is double that of the the thousands digit. THe

3. ### math

i have four digits i am more than 2500 i am less than 3000 my hundred digits id 6 my tens digit is one less than my hundreds digit my unit digit is 0 what number am i?

4. ### math

it is a 6 digit number. there is no repetition of digits. It is divisible by 5 and is more than 3000,000. The digit in the hundreds place is 3 more than the digit in the ones place. The digit in the ten thousands place is 3 times

1. ### math

Rich chooses a 4-digit positive integer. He erases one of the digits of this integer. The remaining digits, in their original order, form a 3-digit positive integer. When Rich adds this 3-digit integer to the original 4-digit

2. ### math

Find a six-digit even number containing no zeros and no repeating digits in which the first digit is four more than the second digit, the third digit is one less than the sixth digit, and the fourth and fifth digits when read as a

3. ### Math

Determine the digits of Y from these clues. The digits of Y add to 18. The first digit is 3 times the third digit. The second digit is 2 times the third digit. Y is a three digit number.

4. ### math

The digits 2, 4, 6, 8 and 0 are used to make five-digit numbers with no digits repeated. What is the probability that a number chosen at random from these numbers has the property that the digits in the thousands place and ten's