400789 divided by 78 
We want to divide 400789 by 78.

Advancing to step 1:
When dividing 4 by 78, we get 0 with 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.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 78

Moving on to step 2:
When dividing 40 by 78, we get 0 with a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Take the next digit (0) from the dividend and append it to 40, then repeat: 400 / 78

Let's proceed to step 3:
When dividing 400 by 78, we get 5 with a remainder of 10.
The next digit of our result is 5. 
Result so far: 5.0
Deduct 390 from 400 and we're left with 10.
Bring next digit (7) of the dividend behind the 10 and repeat the process: 107 / 78

Going ahead to step 4:
If we divide 107 by 78, we get 1 and a remainder of 29.
Use 1 as the next digit of our solution. 
Result so far: 51.0
Subtracting 78 from 107 leaves us with 29.
Include the next digit (8) from the dividend after 29, then repeat: 298 / 78

On to step 5:
When dividing 298 by 78, we get 3 with a remainder of 64.
Write down 3 as next digit of the result. 
Result so far: 513.0
The remainder is 64 after subtracting 234 from 298.
Include the next digit (9) from the dividend after 64, then repeat: 649 / 78

Step 6:
78 can be fit into 649 8 times, resulting in a remainder of 25.
Use 8 as the next digit of our solution. 
Result so far: 5138.0
The remainder is 25 after subtracting 624 from 649.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Going ahead to step 7:
If we divide 250 by 78, we get 3 and a remainder of 16.
Put 3 as the next digit of the answer. 
Result so far: 5138.3
Subtracting 234 from 250 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 8:
The number 78 fits into 160 2 times, leaving a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 5138.32
Subtracting 156 from 160 leaves us 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 9:
When dividing 40 by 78, we get 0 with a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 5138.32
The remainder is 40 after subtracting 0 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Step 10:
When dividing 400 by 78, we get 5 with a remainder of 10.
Put 5 as the next digit of the answer. 
Result so far: 5138.3205
The remainder is 10 after subtracting 390 from 400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 11:
The number 78 fits into 100 1 times, leaving a remainder of 22.
Record the quotient 1 as the next digit in the result. 
Result so far: 5138.32051
If we subtract 78 from 100, 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.

Advancing to step 12:
The number 78 fits into 220 2 times, leaving a remainder of 64.
Record the quotient 2 as the next digit in the result. 
Result so far: 5138.320512
Deduct 156 from 220 and we're left with 64.
Since there are no more digits in the dividend, we add a zero to the remainder making it 640, and continue the process.

Step 13:
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: 5138.3205128
If we take 624 away from 640, we end up 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.

Moving on to step 14:
The number 78 fits into 160 2 times, leaving a remainder of 4.
The number 2 becomes the next digit in our result. 
Result so far: 5138.32051282
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.

After the division, we end up with 5138.32051282 and a remainder of 4e-09.