We divide 40022679 by 78
We're looking to find how many times 78 goes into 40022679.

On to step 1:
78 goes into 4 0 times with a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 78

On to step 2:
78 goes into 40 0 times with a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 40 to get 40.
Include the next digit (0) from the dividend after 40, then repeat: 400 / 78

Moving on to step 3:
The number 78 fits into 400 5 times, leaving a remainder of 10.
Write down 5 as next digit of the result. 
Result so far: 5.0
If we take 390 away from 400, we end up with 10.
Bring next digit (2) of the dividend behind the 10 and repeat the process: 102 / 78

Going ahead to step 4:
The number 78 fits into 102 1 times, leaving a remainder of 24.
Use 1 as the next digit of our solution. 
Result so far: 51.0
If we take 78 away from 102, we end up with 24.
Grab the next digit (2) from the dividend, add it to 24, then carry on: 242 / 78

Moving on to step 5:
If we divide 242 by 78, we get 3 and a remainder of 8.
Write down 3 as next digit of the result. 
Result so far: 513.0
Subtracting 234 from 242 leaves us with 8.
Take the next digit (6) from the dividend and append it to 8, then repeat: 86 / 78

Let's proceed to step 6:
78 can be fit into 86 1 times, resulting in a remainder of 8.
The next digit of our result is 1. 
Result so far: 5131.0
Deduct 78 from 86 and we're left with 8.
Include the next digit (7) from the dividend after 8, then repeat: 87 / 78

Let's proceed to step 7:
If we divide 87 by 78, we get 1 and a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 51311.0
Subtracting 78 from 87 leaves us with 9.
Fetch the next digit (9) from the dividend, attach it to 9 and continue: 99 / 78

Step 8:
The number 78 fits into 99 1 times, leaving a remainder of 21.
Use 1 as the next digit of our solution. 
Result so far: 513111.0
Subtract 78 from 99 to get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

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

Step 10:
78 goes into 540 6 times with a remainder of 72.
The next digit of our result is 6. 
Result so far: 513111.26
Deduct 468 from 540 and we're left with 72.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

Advancing to step 11:
78 can be fit into 720 9 times, resulting in a remainder of 18.
Record the quotient 9 as the next digit in the result. 
Result so far: 513111.269
The remainder is 18 after subtracting 702 from 720.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Let's proceed to step 12:
78 goes into 180 2 times with a remainder of 24.
Use 2 as the next digit of our solution. 
Result so far: 513111.2692
Subtract 156 from 180 to get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Moving on to step 13:
78 goes into 240 3 times with a remainder of 6.
The next digit of our result is 3. 
Result so far: 513111.26923
If we take 234 away from 240, we end up with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 14:
78 goes into 60 0 times with a remainder of 60.
The next digit of our result is 0. 
Result so far: 513111.26923
Subtract 0 from 60 to get 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 600, and continue the process.

Going ahead to step 15:
600 divided by 78 is 7 with a remainder of 54.
The next digit of our result is 7. 
Result so far: 513111.2692307
Subtracting 546 from 600 leaves us with 54.
Since there are no more digits in the dividend, we add a zero to the remainder making it 540, and continue the process.

Let's proceed to step 16:
When dividing 540 by 78, we get 6 with a remainder of 72.
Write down 6 as next digit of the result. 
Result so far: 513111.26923076
Subtracting 468 from 540 leaves us with 72.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

After the division, we end up with 513111.26923076 and a remainder of 7.2e-08.