We look at the division of 31570801 by 788 
We're looking to find how many times 788 goes into 31570801.

On to step 1:
The number 788 fits into 3 0 times, leaving a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 788

On to step 2:
The number 788 fits into 31 0 times, leaving a remainder of 31.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 31 to get 31.
Include the next digit (5) from the dividend after 31, then repeat: 315 / 788

Step 3:
When dividing 315 by 788, we get 0 with a remainder of 315.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 315 leaves us with 315.
Fetch the next digit (7) from the dividend, attach it to 315 and continue: 3157 / 788

Let's proceed to step 4:
788 can be fit into 3157 4 times, resulting in a remainder of 5.
The next digit of our result is 4. 
Result so far: 4.0
Subtract 3152 from 3157 to get 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 788

On to step 5:
50 divided by 788 is 0 with a remainder of 50.
Write down 0 as next digit of the result. 
Result so far: 40.0
Subtracting 0 from 50 leaves us with 50.
Take the next digit (8) from the dividend and append it to 50, then repeat: 508 / 788

Let's proceed to step 6:
788 can be fit into 508 0 times, resulting in a remainder of 508.
Write down 0 as next digit of the result. 
Result so far: 400.0
Subtracting 0 from 508 leaves us with 508.
Include the next digit (0) from the dividend after 508, then repeat: 5080 / 788

Going ahead to step 7:
788 can be fit into 5080 6 times, resulting in a remainder of 352.
Record the quotient 6 as the next digit in the result. 
Result so far: 4006.0
Deduct 4728 from 5080 and we're left with 352.
Append the next digit (1) from the dividend to 352 and continue with: 3521 / 788

Advancing to step 8:
788 goes into 3521 4 times with a remainder of 369.
The number 4 becomes the next digit in our result. 
Result so far: 40064.0
If we take 3152 away from 3521, we end up with 369.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3690, and continue the process.

Moving on to step 9:
When dividing 3690 by 788, we get 4 with a remainder of 538.
The next digit of our result is 4. 
Result so far: 40064.4
If we subtract 3152 from 3690, we get 538.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5380, and continue the process.

On to step 10:
788 can be fit into 5380 6 times, resulting in a remainder of 652.
Record the quotient 6 as the next digit in the result. 
Result so far: 40064.46
Deduct 4728 from 5380 and we're left with 652.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6520, and continue the process.

Moving on to step 11:
The number 788 fits into 6520 8 times, leaving a remainder of 216.
Write down 8 as next digit of the result. 
Result so far: 40064.468
The remainder is 216 after subtracting 6304 from 6520.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2160, and continue the process.

On to step 12:
If we divide 2160 by 788, we get 2 and a remainder of 584.
Record the quotient 2 as the next digit in the result. 
Result so far: 40064.4682
Deduct 1576 from 2160 and we're left with 584.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5840, and continue the process.

On to step 13:
If we divide 5840 by 788, we get 7 and a remainder of 324.
The next digit of our result is 7. 
Result so far: 40064.46827
The remainder is 324 after subtracting 5516 from 5840.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3240, and continue the process.

Step 14:
When dividing 3240 by 788, we get 4 with a remainder of 88.
Put 4 as the next digit of the answer. 
Result so far: 40064.468274
If we subtract 3152 from 3240, we get 88.
Since there are no more digits in the dividend, we add a zero to the remainder making it 880, and continue the process.

Advancing to step 15:
The number 788 fits into 880 1 times, leaving a remainder of 92.
The next digit of our result is 1. 
Result so far: 40064.4682741
The remainder is 92 after subtracting 788 from 880.
Since there are no more digits in the dividend, we add a zero to the remainder making it 920, and continue the process.

Step 16:
788 can be fit into 920 1 times, resulting in a remainder of 132.
Use 1 as the next digit of our solution. 
Result so far: 40064.46827411
If we subtract 788 from 920, we get 132.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1320, and continue the process.

Our division results in 40064.46827411 with a remaining 1.32e-07.