Menu Close

From-1-to-12345-how-many-numbers-contain-the-digit-0-Find-the-number-of-zeros-in-all-these-numbers-Example-10020-has-three-zeros-




Question Number 105791 by mr W last updated on 01/Aug/20
From 1 to 12345, how many numbers  contain the digit 0? Find the number  of zeros in all these numbers.  Example: 10020 has three zeros.
From1to12345,howmanynumberscontainthedigit0?Findthenumberofzerosinallthesenumbers.Example:10020hasthreezeros.
Commented by PRITHWISH SEN 2 last updated on 01/Aug/20
189+2700+1630 = 4519  The answer is 4519  please check
189+2700+1630=4519Theansweris4519pleasecheck
Answered by mr W last updated on 02/Aug/20
N=number of numbers containing  at least one zero  S=number of zeros in the numbers    X,Y,Z=placeholder non−zero digits    one digit numbers:  X ⇒N=0, S=0    two digit numbers:  X0 ⇒N=9, S=9    three digit numbers:  X0Y, XY0 ⇒N=2×9^2 =162, S=162  X00 ⇒N=9, S=2×9=18  ⇒total N=162+9=171  ⇒total S=162+18=180    four digit numbers:  X0YZ,XY0Z,XYZ0 ⇒N=3×9^3 =2187, S=2187  X00Y,XY00,X0Y0 ⇒N=3×9^2 =243, S=486  X000 ⇒N=9, S=27  ⇒total N=2187+243+9=2439  ⇒total S=2187+486+27=2700    five digit numbers:  10000 ⇒N=1, S=4  1X000,10X00,100X0,1000X  ⇒N=2+9+9+9=29, S=87  1XY00,10XY0,100XY,1X0Y0,1X00Y,10X0Y  ⇒N=(9+3)+3×9^2 +2×2×9=291  ⇒S=2×291=582  10XYZ,1X0YZ,1XY0Z,1XYZ0  ⇒N=9^3 +2×9^2 +(9^2 +3×9)+(9^2 +2×9+4)=1102  ⇒S=1102  ⇒total N=1+29+291+1102=1423  ⇒total S=4+87+582+1102=1775    totally:  N=9+171+2439+1423=4042  S=9+180+2700+1775=4664
N=numberofnumberscontainingatleastonezeroS=numberofzerosinthenumbersX,Y,Z=placeholdernonzerodigitsonedigitnumbers:XN=0,S=0twodigitnumbers:X0N=9,S=9threedigitnumbers:X0Y,XY0N=2×92=162,S=162X00N=9,S=2×9=18totalN=162+9=171totalS=162+18=180fourdigitnumbers:X0YZ,XY0Z,XYZ0N=3×93=2187,S=2187X00Y,XY00,X0Y0N=3×92=243,S=486X000N=9,S=27totalN=2187+243+9=2439totalS=2187+486+27=2700fivedigitnumbers:10000N=1,S=41X000,10X00,100X0,1000XN=2+9+9+9=29,S=871XY00,10XY0,100XY,1X0Y0,1X00Y,10X0YN=(9+3)+3×92+2×2×9=291S=2×291=58210XYZ,1X0YZ,1XY0Z,1XYZ0N=93+2×92+(92+3×9)+(92+2×9+4)=1102S=1102totalN=1+29+291+1102=1423totalS=4+87+582+1102=1775totally:N=9+171+2439+1423=4042S=9+180+2700+1775=4664
Commented by PRITHWISH SEN 2 last updated on 01/Aug/20
considering 2 zero of 5 digits  the no. of zero will be = 285×2=570 instead of  285×3= 855  ∴ the total zero = 4519   please check sir .
considering2zeroof5digitstheno.ofzerowillbe=285×2=570insteadof285×3=855thetotalzero=4519pleasechecksir.
Commented by mr W last updated on 01/Aug/20
it was wrong for five digit numbers.  now the answer is correct.
itwaswrongforfivedigitnumbers.nowtheansweriscorrect.

Leave a Reply

Your email address will not be published. Required fields are marked *