Menu Close

An-n-digit-decimal-number-has-been-conveerted-into-octal-number-Say-it-has-m-digits-What-are-possible-minimum-and-maximum-values-of-m-in-terms-of-n-




Question Number 35072 by Rasheed.Sindhi last updated on 15/May/18
An n-digit decimal number has been  conveerted into octal number.Say it  has m digits.What are possible  minimum   and maximum values of m in terms of  n?
Anndigitdecimalnumberhasbeenconveertedintooctalnumber.Sayithasmdigits.Whatarepossibleminimumandmaximumvaluesofmintermsofn?
Commented by candre last updated on 15/May/18
min⇒num=10^(n−1)   min=⌊log_8 (10^(n−1) )⌋+1=⌊(n−1)log_8 10⌋+1  max⇒num=10^n −1  max=⌊log_8 (10^n −1)⌋+1
minnum=10n1min=log8(10n1)+1=(n1)log810+1maxnum=10n1max=log8(10n1)+1
Commented by Rasheed.Sindhi last updated on 15/May/18
ThαnkS a lot Sir!
ThαnkSalotSir!

Leave a Reply

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