We divide 3978367 by 8
We're looking to find how many times 8 goes into 3978367.

Let's proceed to step 1:
If we divide 3 by 8, we get 0 and a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 8

Step 2:
If we divide 39 by 8, we get 4 and a remainder of 7.
Use 4 as the next digit of our solution. 
Result so far: 4.0
Deduct 32 from 39 and we're left with 7.
Append the next digit (7) from the dividend to 7 and continue with: 77 / 8

Step 3:
8 goes into 77 9 times with a remainder of 5.
Write down 9 as next digit of the result. 
Result so far: 49.0
If we subtract 72 from 77, we get 5.
Grab the next digit (8) from the dividend, add it to 5, then carry on: 58 / 8

Advancing to step 4:
If we divide 58 by 8, we get 7 and a remainder of 2.
Write down 7 as next digit of the result. 
Result so far: 497.0
If we take 56 away from 58, we end up with 2.
Include the next digit (3) from the dividend after 2, then repeat: 23 / 8

On to step 5:
When dividing 23 by 8, we get 2 with a remainder of 7.
Record the quotient 2 as the next digit in the result. 
Result so far: 4972.0
If we subtract 16 from 23, we get 7.
Bring next digit (6) of the dividend behind the 7 and repeat the process: 76 / 8

Let's proceed to step 6:
When dividing 76 by 8, we get 9 with a remainder of 4.
Use 9 as the next digit of our solution. 
Result so far: 49729.0
Deduct 72 from 76 and we're left with 4.
Append the next digit (7) from the dividend to 4 and continue with: 47 / 8

Advancing to step 7:
If we divide 47 by 8, we get 5 and a remainder of 7.
Write down 5 as next digit of the result. 
Result so far: 497295.0
If we subtract 40 from 47, we get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Moving on to step 8:
8 can be fit into 70 8 times, resulting in a remainder of 6.
The next digit of our result is 8. 
Result so far: 497295.8
If we subtract 64 from 70, we get 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 9:
When dividing 60 by 8, we get 7 with a remainder of 4.
The next digit of our result is 7. 
Result so far: 497295.87
Subtract 56 from 60 to get 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:
The number 8 fits into 40 5 times, leaving a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 497295.875
Subtracting 40 from 40 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 11:
0 divided by 8 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 497295.875
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 12:
The number 8 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 497295.875
If we take 0 away from 0, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

In conclusion, the division gives 497295.875 with a balance of 0.0.