All Questions Topic List
None Questions
Previous in All Question Next in All Question
Previous in None Next in None
Question Number 118043 by prakash jain last updated on 14/Oct/20
Howmanynumbersintherange[1,10n−1]aredivisibleby9?digitrepetitionsarenotallowed.
Commented by mr W last updated on 15/Oct/20
withoutrepetitionmeansmax.10digitsareallowed,i.e.n⩽10.10digitnumbers:0+1+2+..+9=45✓⇒910×10!=9×9!9digitnumbers:1+2+..+9=45✓⇒9!0+1+2+..+8=36✓⇒89×9!=8×8!⇒9!+8×8!=17×8!8digitnumbers:without0+9⇒8!without1+8,2+7,3+6,4+5⇒4×78×8!=4×7×7!⇒8!+4×7×7!=36×7!7digitnumbers:without0+1+8,0+2+7,0+3+6,0+4+5⇒4×7!without1+8+9,2+7+9,3+6+9,4+5+9⇒4×67×7!=4×6×6!without1+2+6,1+3+5⇒2×67×7!=2×6×6!without2+3+4⇒67×7!=6×6!⇒(4×7+4×6+2×6+6)6!=10×7!6digitnumbers:without0+1+2+6,0+1+3+5,0+2+3+4⇒3×6!without1+2+6+8,1+3+5+9,2+3+4+9⇒3×56×6!=3×5×5!⇒3(6+5)5!=33×5!5digitnumbers:9+8+7+2+19+8+6+3+19+8+5+4+19+8+5+3+29+7+6+4+19+7+6+3+29+7+5+4+29+6+5+4+3......
Commented by prakash jain last updated on 15/Oct/20
Thankssir.Itlookslistingistheonlypossibleway.IthoughtIhadseenaclosedforumexpressionsomewherebutwasnotabletoderive.
Answered by floor(10²Eta[1]) last updated on 24/Dec/20
from1to10n−1wehave10n−19multiplesof9(consideringthenumberswiththesamedigits)solet′scalculatehowmanynumbershavethesamedigitsandaredivisibleby9[aa...a](ndigits)a.n≡0(mod9),a∈[1,9]∧n⩾2a∈{1,2,4,5,7,8}⇒n=9k,k⩾1a∈{3,6}⇒n=3k,k⩾1a=9⇒n=k⩾22digits:(99)3digits:(333,666,999)4digits:(9999)5digits:(99999)6digits:(333333,666666,999999)[...]9digits:(11...1,22...2,33...3,...,99..9)2digitsto9digits:5+3.2+9=20cases10digitsto19:7+3.2+9=22casesfrom1toxwehavex−⌊x3⌋numbersthatarecoprimewith3(because⌊x3⌋isthenumberofmultiplesof3,from1tox)from2toxwehave(x−⌊x3⌋−1)+3(⌊x3⌋−⌊x9⌋)+9⌊x9⌋x−1+2⌊x3⌋+6⌊x9⌋numbersthataredivisibleby9andhavethesamedigitsfrom2digitstondigitswehaven−1+2⌊n3⌋+6⌊n9⌋numbersthathavethesamedigitsandaredivisibleby9Ans:10n−19−(n−1+2⌊n3⌋+6⌊n9⌋)
Terms of Service
Privacy Policy
Contact: info@tinkutara.com