We divide 39940143 by 8
We want to figure out the number of times 39940143 can be divided by 8.

Step 1:
3 divided by 8 is 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Include the next digit (9) from the dividend after 3, then repeat: 39 / 8

Let's proceed to step 2:
When dividing 39 by 8, we get 4 with a remainder of 7.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
Subtract 32 from 39 to get 7.
Fetch the next digit (9) from the dividend, attach it to 7 and continue: 79 / 8

Step 3:
8 goes into 79 9 times with a remainder of 7.
Use 9 as the next digit of our solution. 
Result so far: 49.0
If we take 72 away from 79, we end up with 7.
Grab the next digit (4) from the dividend, add it to 7, then carry on: 74 / 8

Step 4:
74 divided by 8 is 9 with a remainder of 2.
Record the quotient 9 as the next digit in the result. 
Result so far: 499.0
If we take 72 away from 74, we end up with 2.
Include the next digit (0) from the dividend after 2, then repeat: 20 / 8

Advancing to step 5:
8 goes into 20 2 times with a remainder of 4.
The next digit of our result is 2. 
Result so far: 4992.0
If we take 16 away from 20, we end up with 4.
Append the next digit (1) from the dividend to 4 and continue with: 41 / 8

Moving on to step 6:
When dividing 41 by 8, we get 5 with a remainder of 1.
The number 5 becomes the next digit in our result. 
Result so far: 49925.0
Deduct 40 from 41 and we're left with 1.
Bring next digit (4) of the dividend behind the 1 and repeat the process: 14 / 8

Advancing to step 7:
8 goes into 14 1 times with a remainder of 6.
Record the quotient 1 as the next digit in the result. 
Result so far: 499251.0
If we subtract 8 from 14, we get 6.
Take the next digit (3) from the dividend and append it to 6, then repeat: 63 / 8

Step 8:
8 goes into 63 7 times with a remainder of 7.
Record the quotient 7 as the next digit in the result. 
Result so far: 4992517.0
If we take 56 away from 63, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 9:
The number 8 fits into 70 8 times, leaving a remainder of 6.
The next digit of our result is 8. 
Result so far: 4992517.8
Subtract 64 from 70 to 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.

Let's proceed to step 10:
60 divided by 8 is 7 with a remainder of 4.
Write down 7 as next digit of the result. 
Result so far: 4992517.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.

On to step 11:
The number 8 fits into 40 5 times, leaving a remainder of 0.
The next digit of our result is 5. 
Result so far: 4992517.875
If we subtract 40 from 40, 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:
8 can be fit into 0 0 times, resulting in a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 4992517.875
Deduct 0 from 0 and we're left 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 13:
When dividing 0 by 8, we get 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 4992517.875
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Our division results in 4992517.875 with a remaining 0.0.