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

Advancing to step 1:
8 goes into 4 0 times with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 8

Let's proceed to step 2:
The number 8 fits into 40 5 times, leaving 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 (2) from the dividend, attach it to 0 and continue: 2 / 8

On to step 3:
The number 8 fits into 2 0 times, leaving a remainder of 2.
Put 0 as the next digit of the answer. 
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

Step 4:
27 divided by 8 is 3 with a remainder of 3.
Use 3 as the next digit of our solution. 
Result so far: 503.0
If we take 24 away from 27, we end up with 3.
Include the next digit (4) from the dividend after 3, then repeat: 34 / 8

Advancing to step 5:
The number 8 fits into 34 4 times, leaving a remainder of 2.
Write down 4 as next digit of the result. 
Result so far: 5034.0
Subtract 32 from 34 to get 2.
Grab the next digit (5) from the dividend, add it to 2, then carry on: 25 / 8

Going ahead to step 6:
25 divided by 8 is 3 with a remainder of 1.
The next digit of our result is 3. 
Result so far: 50343.0
Subtract 24 from 25 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 7:
8 goes into 10 1 times with a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 50343.1
Subtract 8 from 10 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 8:
20 divided by 8 is 2 with a remainder of 4.
Use 2 as the next digit of our solution. 
Result so far: 50343.12
If we subtract 16 from 20, we 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 9:
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: 50343.125
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.

On to step 10:
0 divided by 8 is 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 50343.125
Subtract 0 from 0 to 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 11:
When dividing 0 by 8, we get 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 50343.125
Subtracting 0 from 0 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.

The final outcome is 50343.125, with a leftover of 0.0.