We divide 4005051 by 788
Let's see how many times 788 fits into 4005051.

Going ahead to step 1:
788 goes into 4 0 times with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 788

Step 2:
If we divide 40 by 788, we get 0 and a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 40, we end up with 40.
Include the next digit (0) from the dividend after 40, then repeat: 400 / 788

Advancing to step 3:
400 divided by 788 is 0 with a remainder of 400.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 400, we end up with 400.
Take the next digit (5) from the dividend and append it to 400, then repeat: 4005 / 788

Moving on to step 4:
When dividing 4005 by 788, we get 5 with a remainder of 65.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
The remainder is 65 after subtracting 3940 from 4005.
Grab the next digit (0) from the dividend, add it to 65, then carry on: 650 / 788

Advancing to step 5:
788 goes into 650 0 times with a remainder of 650.
Put 0 as the next digit of the answer. 
Result so far: 50.0
Subtracting 0 from 650 leaves us with 650.
Append the next digit (5) from the dividend to 650 and continue with: 6505 / 788

Moving on to step 6:
788 can be fit into 6505 8 times, resulting in a remainder of 201.
The number 8 becomes the next digit in our result. 
Result so far: 508.0
If we subtract 6304 from 6505, we get 201.
Bring next digit (1) of the dividend behind the 201 and repeat the process: 2011 / 788

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

On to step 8:
4350 divided by 788 is 5 with a remainder of 410.
The next digit of our result is 5. 
Result so far: 5082.5
Subtracting 3940 from 4350 leaves us with 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 9:
The number 788 fits into 4100 5 times, leaving a remainder of 160.
The number 5 becomes the next digit in our result. 
Result so far: 5082.55
If we take 3940 away from 4100, we end up with 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1600, and continue the process.

Our division results in 5082.55 with a remaining 0.16.