Let's divide 39749989 by 506
We want to divide 39749989 by 506.

On to step 1:
When dividing 3 by 506, we get 0 with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Take the next digit (9) from the dividend and append it to 3, then repeat: 39 / 506

On to step 2:
If we divide 39 by 506, we get 0 and a remainder of 39.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 39 after subtracting 0 from 39.
Fetch the next digit (7) from the dividend, attach it to 39 and continue: 397 / 506

Step 3:
397 divided by 506 is 0 with a remainder of 397.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 397 to get 397.
Include the next digit (4) from the dividend after 397, then repeat: 3974 / 506

Moving on to step 4:
The number 506 fits into 3974 7 times, leaving a remainder of 432.
Put 7 as the next digit of the answer. 
Result so far: 7.0
If we subtract 3542 from 3974, we get 432.
Fetch the next digit (9) from the dividend, attach it to 432 and continue: 4329 / 506

Advancing to step 5:
If we divide 4329 by 506, we get 8 and a remainder of 281.
The number 8 becomes the next digit in our result. 
Result so far: 78.0
The remainder is 281 after subtracting 4048 from 4329.
Grab the next digit (9) from the dividend, add it to 281, then carry on: 2819 / 506

Moving on to step 6:
2819 divided by 506 is 5 with a remainder of 289.
Record the quotient 5 as the next digit in the result. 
Result so far: 785.0
If we take 2530 away from 2819, we end up with 289.
Take the next digit (8) from the dividend and append it to 289, then repeat: 2898 / 506

Let's proceed to step 7:
When dividing 2898 by 506, we get 5 with a remainder of 368.
The next digit of our result is 5. 
Result so far: 7855.0
If we take 2530 away from 2898, we end up with 368.
Grab the next digit (9) from the dividend, add it to 368, then carry on: 3689 / 506

Going ahead to step 8:
3689 divided by 506 is 7 with a remainder of 147.
Put 7 as the next digit of the answer. 
Result so far: 78557.0
The remainder is 147 after subtracting 3542 from 3689.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1470, and continue the process.

Let's proceed to step 9:
When dividing 1470 by 506, we get 2 with a remainder of 458.
Put 2 as the next digit of the answer. 
Result so far: 78557.2
Subtract 1012 from 1470 to get 458.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4580, and continue the process.

On to step 10:
506 can be fit into 4580 9 times, resulting in a remainder of 26.
The number 9 becomes the next digit in our result. 
Result so far: 78557.29
Subtract 4554 from 4580 to get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Let's proceed to step 11:
The number 506 fits into 260 0 times, leaving a remainder of 260.
Write down 0 as next digit of the result. 
Result so far: 78557.29
Subtracting 0 from 260 leaves us with 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2600, and continue the process.

Let's proceed to step 12:
If we divide 2600 by 506, we get 5 and a remainder of 70.
Put 5 as the next digit of the answer. 
Result so far: 78557.2905
If we subtract 2530 from 2600, we get 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 700, and continue the process.

Step 13:
700 divided by 506 is 1 with a remainder of 194.
Use 1 as the next digit of our solution. 
Result so far: 78557.29051
Deduct 506 from 700 and we're left with 194.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1940, and continue the process.

Going ahead to step 14:
The number 506 fits into 1940 3 times, leaving a remainder of 422.
Record the quotient 3 as the next digit in the result. 
Result so far: 78557.290513
If we subtract 1518 from 1940, we get 422.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4220, and continue the process.

On to step 15:
4220 divided by 506 is 8 with a remainder of 172.
The next digit of our result is 8. 
Result so far: 78557.2905138
Subtract 4048 from 4220 to get 172.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1720, and continue the process.

On to step 16:
The number 506 fits into 1720 3 times, leaving a remainder of 202.
Record the quotient 3 as the next digit in the result. 
Result so far: 78557.29051383
If we subtract 1518 from 1720, we get 202.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2020, and continue the process.

After the division, we end up with 78557.29051383 and a remainder of 2.02e-07.