402740 divided by 8 
We want to divide 402740 by 8.

Going ahead to step 1:
8 can be fit into 4 0 times, resulting in a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 8

Advancing to step 2:
If we divide 40 by 8, we get 5 and a remainder of 0.
The next digit of our result is 5. 
Result so far: 5.0
Subtracting 40 from 40 leaves us with 0.
Grab the next digit (2) from the dividend, add it to 0, then carry on: 2 / 8

Moving on to step 3:
2 divided by 8 is 0 with a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 50.0
Subtract 0 from 2 to get 2.
Append the next digit (7) from the dividend to 2 and continue with: 27 / 8

On to step 4:
27 divided by 8 is 3 with a remainder of 3.
Write down 3 as next digit of the result. 
Result so far: 503.0
Subtract 24 from 27 to get 3.
Bring next digit (4) of the dividend behind the 3 and repeat the process: 34 / 8

Moving on to step 5:
34 divided by 8 is 4 with a remainder of 2.
Write down 4 as next digit of the result. 
Result so far: 5034.0
Deduct 32 from 34 and we're left with 2.
Include the next digit (0) from the dividend after 2, then repeat: 20 / 8

Advancing to step 6:
8 goes into 20 2 times with a remainder of 4.
Record the quotient 2 as the next digit in the result. 
Result so far: 50342.0
If we take 16 away from 20, we end up 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.

Advancing to step 7:
If we divide 40 by 8, we get 5 and a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 50342.5
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.

On to step 8:
When dividing 0 by 8, we get 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 50342.5
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.

Let's proceed to step 9:
0 divided by 8 is 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 50342.5
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.

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