question: public void testRemainderKnuthMultiDigitsByOneDigit ( ) { byte aBytes [ ] = { 113 , - 83 , 123 , - 5 , 18 , - 34 , 67 , 39 , - 29 } ; byte bBytes [ ] = { 2 , - 3 , - 4 , - 50 } ; int aSign = 1 ; int bSign = - 1 ; byte rBytes [ ] = { 2 , - 37 , - 60 , 59 } ; BigInteger aNumber = new BigInteger ( aSign , aBytes ) ; BigInteger bNumber = new BigInteger ( bSign , bBytes ) ; BigInteger result = aNumber . remainder ( bNumber ) ; byte resBytes [ ] = new byte [ rBytes . length ] ; resBytes = result . toByteArray ( ) ; for ( int i = 0 ; i < resBytes . length ; i ++ ) { assertTrue ( resBytes [ i ] == rBytes [ i ] ) ; } assertEquals ( "incorrect sign" , 1 , result . signum ( ) ) ; }
target:  Divide the number of multi digits by the number of one digit 