3 votes 3 votes The r ’s complement of an n-digit decimal number N in base r is defined for all values of N except for N = 0. If the given number is (247)9, then its 9’s complement will be equal to ( _____ )9. Digital Logic digital-logic number system + – Lakshman Bhaiya asked Jan 5, 2018 Lakshman Bhaiya 1.6k views answer comment Share Follow See all 12 Comments See all 12 12 Comments reply Show 9 previous comments Ashwin Kulkarni commented Jan 6, 2018 reply Follow Share My bad ! :(( yes you are correct @nitish 0 votes 0 votes Pawan Kumar 2 commented Jan 6, 2018 reply Follow Share for such que , for a given base B, if B's compliment is asked , then subtract the LSB with B and rest upto MSB , with B-1 eg here (247)9, subtract the LSB with 9 , and rest upto MSB with 8..... But if the LSB is 0 or if 0 is encountered from LSB to a given point going from left to right, keep writing 0 as it,subract the first encountered with B , and rest upto MSB with B-1. eg if 9's compliment of (246000)9 was asked , ans would have been (643000)9 Given is for 10's compliment but general can be found with any base.. Hope this helps a little 0 votes 0 votes Vipin Rai commented Apr 28, 2018 reply Follow Share In base 9 the digit range will be from 0 to 8 , so if we make all 3 digits as 8 then it will be the maximum number. so 888 - 247 = 641 which will be the 8's compliment. For 9's compliment add 1 = 641 + 1 = 642 All are in base 9 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes The r’s complement of an n‐digit number = $r^{n} - N$ for $N \neq 0$ here we need to find 9's complement of $\left ( 247 \right )_{9}$ $\Rightarrow 9^{3} - 247$ $\Rightarrow 1000 - 247$ $\Rightarrow 642$ Note : All above calculation are in base 9 Mk Utkarsh answered Apr 22, 2018 Mk Utkarsh comment Share Follow See all 0 reply Please log in or register to add a comment.