Let's divide 5861 by 87
We want to figure out the number of times 5861 can be divided by 87.

Step 1:
If we divide 5 by 87, we get 0 and a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Grab the next digit (8) from the dividend, add it to 5, then carry on: 58 / 87

Let's proceed to step 2:
The number 87 fits into 58 0 times, leaving a remainder of 58.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 58 leaves us with 58.
Take the next digit (6) from the dividend and append it to 58, then repeat: 586 / 87

Step 3:
87 goes into 586 6 times with a remainder of 64.
Write down 6 as next digit of the result. 
Result so far: 6.0
Deduct 522 from 586 and we're left with 64.
Bring next digit (1) of the dividend behind the 64 and repeat the process: 641 / 87

On to step 4:
87 can be fit into 641 7 times, resulting in a remainder of 32.
Write down 7 as next digit of the result. 
Result so far: 67.0
Subtracting 609 from 641 leaves us with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

On to step 5:
320 divided by 87 is 3 with a remainder of 59.
The next digit of our result is 3. 
Result so far: 67.3
The remainder is 59 after subtracting 261 from 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 590, and continue the process.

Advancing to step 6:
When dividing 590 by 87, we get 6 with a remainder of 68.
The number 6 becomes the next digit in our result. 
Result so far: 67.36
The remainder is 68 after subtracting 522 from 590.
Since there are no more digits in the dividend, we add a zero to the remainder making it 680, and continue the process.

Moving on to step 7:
The number 87 fits into 680 7 times, leaving a remainder of 71.
Use 7 as the next digit of our solution. 
Result so far: 67.367
Deduct 609 from 680 and we're left with 71.
Since there are no more digits in the dividend, we add a zero to the remainder making it 710, and continue the process.

Advancing to step 8:
When dividing 710 by 87, we get 8 with a remainder of 14.
Put 8 as the next digit of the answer. 
Result so far: 67.3678
Subtract 696 from 710 to get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 9:
When dividing 140 by 87, we get 1 with a remainder of 53.
The number 1 becomes the next digit in our result. 
Result so far: 67.36781
The remainder is 53 after subtracting 87 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 530, and continue the process.

Moving on to step 10:
530 divided by 87 is 6 with a remainder of 8.
Write down 6 as next digit of the result. 
Result so far: 67.367816
Deduct 522 from 530 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 11:
The number 87 fits into 80 0 times, leaving a remainder of 80.
Use 0 as the next digit of our solution. 
Result so far: 67.367816
If we take 0 away from 80, we end up with 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

Step 12:
800 divided by 87 is 9 with a remainder of 17.
Record the quotient 9 as the next digit in the result. 
Result so far: 67.36781609
Deduct 783 from 800 and we're left with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

The quotient of the division is 67.36781609, and the remainder is 1.7e-08.