397490 ÷ 8 
Let's see how many times 8 fits into 397490.

Going ahead to step 1:
If we divide 3 by 8, we get 0 and a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 8

Advancing to step 2:
39 divided by 8 is 4 with a remainder of 7.
The next digit of our result is 4. 
Result so far: 4.0
Subtracting 32 from 39 leaves us with 7.
Fetch the next digit (7) from the dividend, attach it to 7 and continue: 77 / 8

On to step 3:
The number 8 fits into 77 9 times, leaving a remainder of 5.
The next digit of our result is 9. 
Result so far: 49.0
The remainder is 5 after subtracting 72 from 77.
Take the next digit (4) from the dividend and append it to 5, then repeat: 54 / 8

Advancing to step 4:
If we divide 54 by 8, we get 6 and a remainder of 6.
Write down 6 as next digit of the result. 
Result so far: 496.0
If we take 48 away from 54, we end up with 6.
Bring next digit (9) of the dividend behind the 6 and repeat the process: 69 / 8

Going ahead to step 5:
When dividing 69 by 8, we get 8 with a remainder of 5.
The number 8 becomes the next digit in our result. 
Result so far: 4968.0
Deduct 64 from 69 and we're left with 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 8

Going ahead to step 6:
When dividing 50 by 8, we get 6 with a remainder of 2.
Record the quotient 6 as the next digit in the result. 
Result so far: 49686.0
Subtract 48 from 50 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.

Step 7:
When dividing 20 by 8, we get 2 with a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 49686.2
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.

Advancing to step 8:
8 can be fit into 40 5 times, resulting in a remainder of 0.
The next digit of our result is 5. 
Result so far: 49686.25
Subtract 40 from 40 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.

Going ahead to step 9:
When dividing 0 by 8, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 49686.25
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.

Step 10:
8 can be fit into 0 0 times, resulting in a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 49686.25
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.

After the division, we end up with 49686.25 and a remainder of 0.0.