Let's divide 408087 by 8
We want to figure out the number of times 408087 can be divided by 8.

Step 1:
4 divided by 8 is 0 with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 8

Advancing to step 2:
If we divide 40 by 8, we get 5 and a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
If we subtract 40 from 40, we get 0.
Fetch the next digit (8) from the dividend, attach it to 0 and continue: 8 / 8

Step 3:
8 can be fit into 8 1 times, resulting in a remainder of 0.
Record the quotient 1 as the next digit in the result. 
Result so far: 51.0
Deduct 8 from 8 and we're left with 0.
Grab the next digit (0) from the dividend, add it to 0, then carry on: 0 / 8

Going ahead to step 4:
0 divided by 8 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 510.0
Subtract 0 from 0 to get 0.
Bring next digit (8) of the dividend behind the 0 and repeat the process: 8 / 8

Step 5:
When dividing 8 by 8, we get 1 with a remainder of 0.
Use 1 as the next digit of our solution. 
Result so far: 5101.0
If we take 8 away from 8, we end up with 0.
Bring next digit (7) of the dividend behind the 0 and repeat the process: 7 / 8

Step 6:
7 divided by 8 is 0 with a remainder of 7.
The number 0 becomes the next digit in our result. 
Result so far: 51010.0
If we subtract 0 from 7, 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 7:
8 goes into 70 8 times with a remainder of 6.
Record the quotient 8 as the next digit in the result. 
Result so far: 51010.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.

Advancing to step 8:
The number 8 fits into 60 7 times, leaving a remainder of 4.
The next digit of our result is 7. 
Result so far: 51010.87
Deduct 56 from 60 and we're left 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.

Moving on to step 9:
8 goes into 40 5 times with a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 51010.875
The remainder is 0 after subtracting 40 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Step 10:
0 divided by 8 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 51010.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.

Advancing to step 11:
If we divide 0 by 8, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 51010.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 51010.875 with a balance of 0.0.