We're dividing 400297 by 8 
We want to figure out the number of times 400297 can be divided by 8.

Moving on to step 1:
8 can be fit into 4 0 times, resulting in a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 8

Let's proceed to step 2:
The number 8 fits into 40 5 times, leaving a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 5.0
Deduct 40 from 40 and we're left with 0.
Append the next digit (0) from the dividend to 0 and continue with: 0 / 8

Going ahead to step 3:
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: 50.0
Subtract 0 from 0 to get 0.
Fetch the next digit (2) from the dividend, attach it to 0 and continue: 2 / 8

Step 4:
If we divide 2 by 8, we get 0 and a remainder of 2.
The number 0 becomes the next digit in our result. 
Result so far: 500.0
If we subtract 0 from 2, we get 2.
Grab the next digit (9) from the dividend, add it to 2, then carry on: 29 / 8

Step 5:
8 goes into 29 3 times with a remainder of 5.
The number 3 becomes the next digit in our result. 
Result so far: 5003.0
If we take 24 away from 29, we end up with 5.
Bring next digit (7) of the dividend behind the 5 and repeat the process: 57 / 8

Going ahead to step 6:
8 can be fit into 57 7 times, resulting in a remainder of 1.
Use 7 as the next digit of our solution. 
Result so far: 50037.0
If we subtract 56 from 57, we 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.

Step 7:
8 can be fit into 10 1 times, resulting in a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 50037.1
If we subtract 8 from 10, we 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.

Advancing to step 8:
8 goes into 20 2 times with a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 50037.12
Subtracting 16 from 20 leaves us 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.

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

Going ahead to step 11:
8 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 50037.125
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 50037.125 with a remaining 0.0.