We divide 400864 by 78
We want to divide 400864 by 78.

Let's proceed to step 1:
78 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
Deduct 0 from 4 and we're left with 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 78

Going ahead to step 2:
78 goes into 40 0 times 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.
Bring next digit (0) of the dividend behind the 40 and repeat the process: 400 / 78

Let's proceed to step 3:
If we divide 400 by 78, we get 5 and a remainder of 10.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
Deduct 390 from 400 and we're left with 10.
Append the next digit (8) from the dividend to 10 and continue with: 108 / 78

Moving on to step 4:
If we divide 108 by 78, we get 1 and a remainder of 30.
The number 1 becomes the next digit in our result. 
Result so far: 51.0
Subtracting 78 from 108 leaves us with 30.
Take the next digit (6) from the dividend and append it to 30, then repeat: 306 / 78

On to step 5:
78 can be fit into 306 3 times, resulting in a remainder of 72.
Write down 3 as next digit of the result. 
Result so far: 513.0
If we subtract 234 from 306, we get 72.
Include the next digit (4) from the dividend after 72, then repeat: 724 / 78

On to step 6:
When dividing 724 by 78, we get 9 with a remainder of 22.
Put 9 as the next digit of the answer. 
Result so far: 5139.0
If we subtract 702 from 724, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Going ahead to step 7:
When dividing 220 by 78, we get 2 with a remainder of 64.
Use 2 as the next digit of our solution. 
Result so far: 5139.2
If we subtract 156 from 220, we get 64.
Since there are no more digits in the dividend, we add a zero to the remainder making it 640, and continue the process.

Let's proceed to step 8:
78 can be fit into 640 8 times, resulting in a remainder of 16.
The number 8 becomes the next digit in our result. 
Result so far: 5139.28
Subtracting 624 from 640 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Let's proceed to step 9:
When dividing 160 by 78, we get 2 with a remainder of 4.
Put 2 as the next digit of the answer. 
Result so far: 5139.282
If we take 156 away from 160, we end up with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 10:
If we divide 40 by 78, we get 0 and a remainder of 40.
The next digit of our result is 0. 
Result so far: 5139.282
Deduct 0 from 40 and we're left with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Let's proceed to step 11:
78 can be fit into 400 5 times, resulting in a remainder of 10.
The number 5 becomes the next digit in our result. 
Result so far: 5139.28205
If we subtract 390 from 400, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 12:
78 can be fit into 100 1 times, resulting in a remainder of 22.
Put 1 as the next digit of the answer. 
Result so far: 5139.282051
The remainder is 22 after subtracting 78 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

On to step 13:
The number 78 fits into 220 2 times, leaving a remainder of 64.
The next digit of our result is 2. 
Result so far: 5139.2820512
Subtract 156 from 220 to get 64.
Since there are no more digits in the dividend, we add a zero to the remainder making it 640, and continue the process.

Moving on to step 14:
If we divide 640 by 78, we get 8 and a remainder of 16.
Record the quotient 8 as the next digit in the result. 
Result so far: 5139.28205128
The remainder is 16 after subtracting 624 from 640.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Our division results in 5139.28205128 with a remaining 1.6e-08.