We're dividing 40811785 by 788 
Our goal is to divide 40811785 by 788.

On to step 1:
788 can be fit into 4 0 times, resulting in a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 788

Advancing to step 2:
When dividing 40 by 788, we get 0 with a remainder of 40.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 40 to get 40.
Grab the next digit (8) from the dividend, add it to 40, then carry on: 408 / 788

Moving on to step 3:
788 can be fit into 408 0 times, resulting in a remainder of 408.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 408, we get 408.
Fetch the next digit (1) from the dividend, attach it to 408 and continue: 4081 / 788

Moving on to step 4:
4081 divided by 788 is 5 with a remainder of 141.
The next digit of our result is 5. 
Result so far: 5.0
The remainder is 141 after subtracting 3940 from 4081.
Include the next digit (1) from the dividend after 141, then repeat: 1411 / 788

On to step 5:
When dividing 1411 by 788, we get 1 with a remainder of 623.
The next digit of our result is 1. 
Result so far: 51.0
Deduct 788 from 1411 and we're left with 623.
Take the next digit (7) from the dividend and append it to 623, then repeat: 6237 / 788

On to step 6:
The number 788 fits into 6237 7 times, leaving a remainder of 721.
Write down 7 as next digit of the result. 
Result so far: 517.0
If we take 5516 away from 6237, we end up with 721.
Fetch the next digit (8) from the dividend, attach it to 721 and continue: 7218 / 788

Going ahead to step 7:
788 goes into 7218 9 times with a remainder of 126.
Use 9 as the next digit of our solution. 
Result so far: 5179.0
Subtracting 7092 from 7218 leaves us with 126.
Include the next digit (5) from the dividend after 126, then repeat: 1265 / 788

Advancing to step 8:
The number 788 fits into 1265 1 times, leaving a remainder of 477.
Write down 1 as next digit of the result. 
Result so far: 51791.0
Subtract 788 from 1265 to get 477.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4770, and continue the process.

On to step 9:
788 can be fit into 4770 6 times, resulting in a remainder of 42.
Use 6 as the next digit of our solution. 
Result so far: 51791.6
The remainder is 42 after subtracting 4728 from 4770.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Moving on to step 10:
788 can be fit into 420 0 times, resulting in a remainder of 420.
The next digit of our result is 0. 
Result so far: 51791.6
The remainder is 420 after subtracting 0 from 420.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4200, and continue the process.

Let's proceed to step 11:
When dividing 4200 by 788, we get 5 with a remainder of 260.
The number 5 becomes the next digit in our result. 
Result so far: 51791.605
Subtracting 3940 from 4200 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.

On to step 12:
When dividing 2600 by 788, we get 3 with a remainder of 236.
The next digit of our result is 3. 
Result so far: 51791.6053
Subtracting 2364 from 2600 leaves us with 236.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2360, and continue the process.

Advancing to step 13:
If we divide 2360 by 788, we get 2 and a remainder of 784.
Write down 2 as next digit of the result. 
Result so far: 51791.60532
Deduct 1576 from 2360 and we're left with 784.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7840, and continue the process.

Going ahead to step 14:
When dividing 7840 by 788, we get 9 with a remainder of 748.
Write down 9 as next digit of the result. 
Result so far: 51791.605329
The remainder is 748 after subtracting 7092 from 7840.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7480, and continue the process.

Step 15:
When dividing 7480 by 788, we get 9 with a remainder of 388.
Record the quotient 9 as the next digit in the result. 
Result so far: 51791.6053299
If we subtract 7092 from 7480, we get 388.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3880, and continue the process.

The quotient of the division is 51791.6053299, and the remainder is 3.88e-06.