We divide 31499837 by 787
Our goal is to divide 31499837 by 787.

Let's proceed to step 1:
787 goes into 3 0 times with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Grab the next digit (1) from the dividend, add it to 3, then carry on: 31 / 787

Advancing to step 2:
31 divided by 787 is 0 with a remainder of 31.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 31 after subtracting 0 from 31.
Include the next digit (4) from the dividend after 31, then repeat: 314 / 787

Step 3:
314 divided by 787 is 0 with a remainder of 314.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 314 after subtracting 0 from 314.
Fetch the next digit (9) from the dividend, attach it to 314 and continue: 3149 / 787

Advancing to step 4:
787 can be fit into 3149 4 times, resulting in a remainder of 1.
Put 4 as the next digit of the answer. 
Result so far: 4.0
Deduct 3148 from 3149 and we're left with 1.
Include the next digit (9) from the dividend after 1, then repeat: 19 / 787

Going ahead to step 5:
19 divided by 787 is 0 with a remainder of 19.
Record the quotient 0 as the next digit in the result. 
Result so far: 40.0
Deduct 0 from 19 and we're left with 19.
Include the next digit (8) from the dividend after 19, then repeat: 198 / 787

Step 6:
When dividing 198 by 787, we get 0 with a remainder of 198.
The next digit of our result is 0. 
Result so far: 400.0
Deduct 0 from 198 and we're left with 198.
Grab the next digit (3) from the dividend, add it to 198, then carry on: 1983 / 787

Advancing to step 7:
787 can be fit into 1983 2 times, resulting in a remainder of 409.
Put 2 as the next digit of the answer. 
Result so far: 4002.0
Subtract 1574 from 1983 to get 409.
Grab the next digit (7) from the dividend, add it to 409, then carry on: 4097 / 787

Let's proceed to step 8:
787 goes into 4097 5 times with a remainder of 162.
Record the quotient 5 as the next digit in the result. 
Result so far: 40025.0
If we take 3935 away from 4097, we end up with 162.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1620, and continue the process.

Let's proceed to step 9:
If we divide 1620 by 787, we get 2 and a remainder of 46.
The next digit of our result is 2. 
Result so far: 40025.2
Deduct 1574 from 1620 and we're left with 46.
Since there are no more digits in the dividend, we add a zero to the remainder making it 460, and continue the process.

Moving on to step 10:
When dividing 460 by 787, we get 0 with a remainder of 460.
Put 0 as the next digit of the answer. 
Result so far: 40025.2
Subtract 0 from 460 to get 460.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4600, and continue the process.

Step 11:
The number 787 fits into 4600 5 times, leaving a remainder of 665.
The next digit of our result is 5. 
Result so far: 40025.205
If we subtract 3935 from 4600, we get 665.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6650, and continue the process.

Let's proceed to step 12:
787 can be fit into 6650 8 times, resulting in a remainder of 354.
Write down 8 as next digit of the result. 
Result so far: 40025.2058
Subtracting 6296 from 6650 leaves us with 354.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3540, and continue the process.

Moving on to step 13:
The number 787 fits into 3540 4 times, leaving a remainder of 392.
Put 4 as the next digit of the answer. 
Result so far: 40025.20584
The remainder is 392 after subtracting 3148 from 3540.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3920, and continue the process.

Step 14:
3920 divided by 787 is 4 with a remainder of 772.
Use 4 as the next digit of our solution. 
Result so far: 40025.205844
The remainder is 772 after subtracting 3148 from 3920.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7720, and continue the process.

The final result is 40025.205844 with a remainder of 7.72e-05.