Let's divide 586777 by 42
Let's see how many times 42 fits into 586777.

Going ahead to step 1:
The number 42 fits into 5 0 times, leaving a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Append the next digit (8) from the dividend to 5 and continue with: 58 / 42

Let's proceed to step 2:
42 can be fit into 58 1 times, resulting in a remainder of 16.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtracting 42 from 58 leaves us with 16.
Bring next digit (6) of the dividend behind the 16 and repeat the process: 166 / 42

Let's proceed to step 3:
If we divide 166 by 42, we get 3 and a remainder of 40.
The number 3 becomes the next digit in our result. 
Result so far: 13.0
Deduct 126 from 166 and we're left with 40.
Append the next digit (7) from the dividend to 40 and continue with: 407 / 42

On to step 4:
42 goes into 407 9 times with a remainder of 29.
Write down 9 as next digit of the result. 
Result so far: 139.0
If we subtract 378 from 407, we get 29.
Take the next digit (7) from the dividend and append it to 29, then repeat: 297 / 42

Going ahead to step 5:
If we divide 297 by 42, we get 7 and a remainder of 3.
Record the quotient 7 as the next digit in the result. 
Result so far: 1397.0
The remainder is 3 after subtracting 294 from 297.
Append the next digit (7) from the dividend to 3 and continue with: 37 / 42

Let's proceed to step 6:
42 goes into 37 0 times with a remainder of 37.
The number 0 becomes the next digit in our result. 
Result so far: 13970.0
Subtract 0 from 37 to get 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Advancing to step 7:
The number 42 fits into 370 8 times, leaving a remainder of 34.
The number 8 becomes the next digit in our result. 
Result so far: 13970.8
The remainder is 34 after subtracting 336 from 370.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Going ahead to step 8:
If we divide 340 by 42, we get 8 and a remainder of 4.
Put 8 as the next digit of the answer. 
Result so far: 13970.88
If we subtract 336 from 340, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

The final result is 13970.88 with a remainder of 0.004.