in Combinatory
1,088 views
5 votes
5 votes
How many n length base 10 numbers are there with at least 3 zeros?
in Combinatory
1.1k views

25 Comments

edited by

When different number is asked :[9 * 10n-1] - [9n + 9n-1.n-1c1 + n-1c2 * 9n-2 ]

When no condition(different) on number :[10n] - [9n + 9n-1.nc1 + nc2 * 9n-2 ]

Whats the answer given .

0
0
Atleast 3 zeroes can also be interpreted as Atmost 2 zeroes so we can have total number of n length base 10 numbers - the n length numbers having no zeros - the n length numbers having 1 zero - numbers having 2 zeroes

so the answer would be 10^n - (9^n - nc1*9*10^(n-1) -nc2*(9^2)*10^(n-2))   

Correct me if i am wrong
0
0

if you take 1st place 0 then it becomes 9 digit number right.

nc2*(9^2)*10^(n-2) since you already choose 2 digit be 0 then 92 will be 1 only

0
0

10n - [ 9+ n9n-1 + n(n-1)9n-2 ]

Total Base 10 numbers with length n - [numbers with no zeros + numbers with 1 zero + numbers with 2 zeros] 

0
0

Total number of possible base 10 numbers of length n is 10n

1) numbers with no zeros = number of ways to fill n places with 9 digits 9n

its same as in binary n length so total 2n possible combinations 

2) numbers with 1 zero = number of ways to fill a zero in n places * number of ways to fill 9 digits in n-1 places
                                 n (9n-1     

3) number with 2 zeros = number of ways to fill 1 zero * number of ways to fill another zero * number of ways to fill 9 digits in n-2 places

                                n(n-1)9n-2

0
0
065 = 65

length of number is 2 isnt?

i consider valid numbers. otherwise all is same.
0
0
@Anu

it is not told different numbers

right?

So, 65 and 065, 0065

all u have to considered differently

right?
0
0
Yes ...
0
0
i'm not understanding the doubt let n = 3

so there can be only one possible way to form a 65 which is with one zero 065

other wise if there are 2 zeros or no zeros or 3 zeros we cannot form 65
0
0
I don't think first place 0 is allowed.

Otherwise, 065,0065,000065... all these numbers has same value but interpreted differently. There is no meaning then?
0
0

 Ashwin Kulkarni n is fixed there can be one unique number with n fixed

if you are changing n then n=4 (0065), n=3(065), n=2 (65)

but the generalized formula 10- [ 9+ n9n-1 + n(n-1)9n-2 ] for a specific n will give you a unique combination for 65

0
0
edited by

maybe i should rephrase the question with How many base 10 numbers of length n are there with at least 3 zeros?

0
0

why you guys are changing n? it is same as for binary number

let's consider n = 3, 

two = 010 and it is unique way out of 23 combinations of 0 and 1

n = 4

two = 0010 and it is also unique out of 24 possible combinations

Correct me if i am wrong

0
0

I think you have phrased and understood the question correctly and the correct way to do it that Mk Utkarsh mentioned.

10- [ 9+ n9n-1 + n(n-1)9n-2 ]

But the last term should have n(n-1)/2 and not n(n-1).

1
1
why?
0
0
We can chose any 2 of the n places for 0 in nC2 ways which is equal to n(n-1)/2. So shouldn't it be n(n-1)/2?
0
0

absolutely correct :)

10- [ 9+ nC19n-1 + nC9n-2 ]

thanks

0
0
@Ashwin

yes that is correct

what is ur ans then?
0
0
@ Mk Utkarsh
if there is any option?
really that would be helpful for ans
Actually arrarngement of 2 0's also not matter for calculation
0
0
Why total number of n digit (base 10) numbers = $10^n$??
Shouldn't it be $9*10^{n-1}$   ???
0
0
0
0
yes, u mean 1st position select in 9 way and rest position select 10 ways

Correct one.
0
0

Rishabh Gupta 2 

number of 1 digit 10 base numbers are 10 :P(pretty obvious)

10= 10 and

9 * 100 is 9

0
0
@Utkarsh What about 2 digit numbers?

You can say that's 100. But this 100 includes 10 1-digit numbers(0 through 9) and 90 2-digit numbers(10 to 99).

So, when you say n-digit number. $10^n$ will include 1-digit numbers, 2- digit numbers ...., n-digit numbers.

In the question you fixed the digits to be n.
0
0

So, when you say n-digit number. 10will include 1-digit numbers, 2- digit numbers ...., n-digit numbers

yeah correct but 10n also includes 2 digit base 10 number(with 0 as first digit) and other numbers till 99

that adds upto 100.

01 is a 2 digit base 10 number and a (single digit) whole number

0
0

Please log in or register to answer this question.

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true