We look at the division of 58986791 by 506 
Let's see how many times 506 fits into 58986791.

Going ahead to step 1:
506 can be fit into 5 0 times, resulting in 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.
Take the next digit (8) from the dividend and append it to 5, then repeat: 58 / 506

On to step 2:
506 can be fit into 58 0 times, resulting in a remainder of 58.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 58, we end up with 58.
Bring next digit (9) of the dividend behind the 58 and repeat the process: 589 / 506

Let's proceed to step 3:
The number 506 fits into 589 1 times, leaving a remainder of 83.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Deduct 506 from 589 and we're left with 83.
Bring next digit (8) of the dividend behind the 83 and repeat the process: 838 / 506

Going ahead to step 4:
506 can be fit into 838 1 times, resulting in a remainder of 332.
Record the quotient 1 as the next digit in the result. 
Result so far: 11.0
If we take 506 away from 838, we end up with 332.
Take the next digit (6) from the dividend and append it to 332, then repeat: 3326 / 506

Step 5:
506 can be fit into 3326 6 times, resulting in a remainder of 290.
The number 6 becomes the next digit in our result. 
Result so far: 116.0
Subtracting 3036 from 3326 leaves us with 290.
Include the next digit (7) from the dividend after 290, then repeat: 2907 / 506

Step 6:
2907 divided by 506 is 5 with a remainder of 377.
Write down 5 as next digit of the result. 
Result so far: 1165.0
If we subtract 2530 from 2907, we get 377.
Fetch the next digit (9) from the dividend, attach it to 377 and continue: 3779 / 506

Going ahead to step 7:
506 can be fit into 3779 7 times, resulting in a remainder of 237.
Put 7 as the next digit of the answer. 
Result so far: 11657.0
Subtracting 3542 from 3779 leaves us with 237.
Append the next digit (1) from the dividend to 237 and continue with: 2371 / 506

Advancing to step 8:
When dividing 2371 by 506, we get 4 with a remainder of 347.
Put 4 as the next digit of the answer. 
Result so far: 116574.0
If we take 2024 away from 2371, we end up with 347.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3470, and continue the process.

Moving on to step 9:
The number 506 fits into 3470 6 times, leaving a remainder of 434.
The next digit of our result is 6. 
Result so far: 116574.6
Deduct 3036 from 3470 and we're left with 434.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4340, and continue the process.

Moving on to step 10:
If we divide 4340 by 506, we get 8 and a remainder of 292.
Write down 8 as next digit of the result. 
Result so far: 116574.68
If we subtract 4048 from 4340, we get 292.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2920, and continue the process.

On to step 11:
The number 506 fits into 2920 5 times, leaving a remainder of 390.
The next digit of our result is 5. 
Result so far: 116574.685
The remainder is 390 after subtracting 2530 from 2920.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3900, and continue the process.

Let's proceed to step 12:
506 goes into 3900 7 times with a remainder of 358.
Use 7 as the next digit of our solution. 
Result so far: 116574.6857
If we take 3542 away from 3900, we end up with 358.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3580, and continue the process.

Going ahead to step 13:
When dividing 3580 by 506, we get 7 with a remainder of 38.
Record the quotient 7 as the next digit in the result. 
Result so far: 116574.68577
Subtract 3542 from 3580 to get 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

In conclusion, the division gives 116574.68577 with a balance of 3.8e-05.