Negative numbers are represented by complement. If you are an integer, you need to know how many digits it is. Now I assume that you are a 16-bit integer or a 32-bit integer.
16 digit integer: -6 17( 10 radix) = 21617 = 65536-617 = 649/kloc-0.
32-bit integer:-617 (10base) = 232-617 = 4296967296-617 = 429496679 (10base) =
Are you satisfied? You know the algorithm of dividing by eight, so I won't say it.