39958559 divided by 508 
We want to divide 39958559 by 508.

Advancing to step 1:
If we divide 3 by 508, we get 0 and a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Bring next digit (9) of the dividend behind the 3 and repeat the process: 39 / 508

On to step 2:
508 can be fit into 39 0 times, resulting in a remainder of 39.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 39 to get 39.
Append the next digit (9) from the dividend to 39 and continue with: 399 / 508

Going ahead to step 3:
508 goes into 399 0 times with a remainder of 399.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 399 leaves us with 399.
Grab the next digit (5) from the dividend, add it to 399, then carry on: 3995 / 508

Advancing to step 4:
508 can be fit into 3995 7 times, resulting in a remainder of 439.
The number 7 becomes the next digit in our result. 
Result so far: 7.0
If we subtract 3556 from 3995, we get 439.
Grab the next digit (8) from the dividend, add it to 439, then carry on: 4398 / 508

Going ahead to step 5:
4398 divided by 508 is 8 with a remainder of 334.
The number 8 becomes the next digit in our result. 
Result so far: 78.0
Subtract 4064 from 4398 to get 334.
Fetch the next digit (5) from the dividend, attach it to 334 and continue: 3345 / 508

Step 6:
508 goes into 3345 6 times with a remainder of 297.
Write down 6 as next digit of the result. 
Result so far: 786.0
If we take 3048 away from 3345, we end up with 297.
Fetch the next digit (5) from the dividend, attach it to 297 and continue: 2975 / 508

On to step 7:
When dividing 2975 by 508, we get 5 with a remainder of 435.
The number 5 becomes the next digit in our result. 
Result so far: 7865.0
If we subtract 2540 from 2975, we get 435.
Fetch the next digit (9) from the dividend, attach it to 435 and continue: 4359 / 508

On to step 8:
508 can be fit into 4359 8 times, resulting in a remainder of 295.
Put 8 as the next digit of the answer. 
Result so far: 78658.0
Subtract 4064 from 4359 to get 295.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2950, and continue the process.

Step 9:
508 goes into 2950 5 times with a remainder of 410.
The next digit of our result is 5. 
Result so far: 78658.5
If we subtract 2540 from 2950, we get 410.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4100, and continue the process.

Let's proceed to step 10:
4100 divided by 508 is 8 with a remainder of 36.
Use 8 as the next digit of our solution. 
Result so far: 78658.58
If we subtract 4064 from 4100, we get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Let's proceed to step 11:
508 goes into 360 0 times with a remainder of 360.
Use 0 as the next digit of our solution. 
Result so far: 78658.58
If we take 0 away from 360, we end up with 360.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3600, and continue the process.

Let's proceed to step 12:
The number 508 fits into 3600 7 times, leaving a remainder of 44.
Write down 7 as next digit of the result. 
Result so far: 78658.5807
The remainder is 44 after subtracting 3556 from 3600.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

On to step 13:
508 can be fit into 440 0 times, resulting in a remainder of 440.
The number 0 becomes the next digit in our result. 
Result so far: 78658.5807
Subtract 0 from 440 to get 440.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4400, and continue the process.

On to step 14:
508 can be fit into 4400 8 times, resulting in a remainder of 336.
The number 8 becomes the next digit in our result. 
Result so far: 78658.580708
The remainder is 336 after subtracting 4064 from 4400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3360, and continue the process.

Step 15:
508 can be fit into 3360 6 times, resulting in a remainder of 312.
Use 6 as the next digit of our solution. 
Result so far: 78658.5807086
Subtracting 3048 from 3360 leaves us with 312.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3120, and continue the process.

Step 16:
3120 divided by 508 is 6 with a remainder of 72.
Put 6 as the next digit of the answer. 
Result so far: 78658.58070866
If we take 3048 away from 3120, we end up with 72.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

The final outcome is 78658.58070866, with a leftover of 7.2e-08.