We're dividing 40789680 by 8 
Let's see how many times 8 fits into 40789680.

Step 1:
8 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
Deduct 0 from 4 and we're left with 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 8

Going ahead to step 2:
8 goes into 40 5 times with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
Subtracting 40 from 40 leaves us with 0.
Append the next digit (7) from the dividend to 0 and continue with: 7 / 8

Going ahead to step 3:
When dividing 7 by 8, we get 0 with a remainder of 7.
Use 0 as the next digit of our solution. 
Result so far: 50.0
If we take 0 away from 7, we end up with 7.
Take the next digit (8) from the dividend and append it to 7, then repeat: 78 / 8

Going ahead to step 4:
If we divide 78 by 8, we get 9 and a remainder of 6.
Put 9 as the next digit of the answer. 
Result so far: 509.0
If we take 72 away from 78, we end up with 6.
Grab the next digit (9) from the dividend, add it to 6, then carry on: 69 / 8

Advancing to step 5:
8 goes into 69 8 times with a remainder of 5.
Record the quotient 8 as the next digit in the result. 
Result so far: 5098.0
If we subtract 64 from 69, we get 5.
Fetch the next digit (6) from the dividend, attach it to 5 and continue: 56 / 8

Going ahead to step 6:
The number 8 fits into 56 7 times, leaving a remainder of 0.
The next digit of our result is 7. 
Result so far: 50987.0
If we subtract 56 from 56, we get 0.
Take the next digit (8) from the dividend and append it to 0, then repeat: 8 / 8

On to step 7:
The number 8 fits into 8 1 times, leaving a remainder of 0.
Write down 1 as next digit of the result. 
Result so far: 509871.0
Deduct 8 from 8 and we're left with 0.
Fetch the next digit (0) from the dividend, attach it to 0 and continue: 0 / 8

Moving on to step 8:
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: 5098710.0
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.

Advancing to step 9:
When dividing 0 by 8, we get 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 5098710.0
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.

On to step 10:
The number 8 fits into 0 0 times, leaving a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 5098710.0
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.

The quotient of the division is 5098710.0, and the remainder is 0.0.