397042 divided by 45 
We're looking to find how many times 45 goes into 397042.

Let's proceed to step 1:
When dividing 3 by 45, we get 0 with a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Grab the next digit (9) from the dividend, add it to 3, then carry on: 39 / 45

Moving on to step 2:
45 goes into 39 0 times with a remainder of 39.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 39 leaves us with 39.
Grab the next digit (7) from the dividend, add it to 39, then carry on: 397 / 45

Step 3:
45 goes into 397 8 times with a remainder of 37.
The next digit of our result is 8. 
Result so far: 8.0
Subtracting 360 from 397 leaves us with 37.
Take the next digit (0) from the dividend and append it to 37, then repeat: 370 / 45

Step 4:
45 goes into 370 8 times with a remainder of 10.
Write down 8 as next digit of the result. 
Result so far: 88.0
Subtracting 360 from 370 leaves us with 10.
Append the next digit (4) from the dividend to 10 and continue with: 104 / 45

Going ahead to step 5:
45 can be fit into 104 2 times, resulting in a remainder of 14.
Put 2 as the next digit of the answer. 
Result so far: 882.0
Subtracting 90 from 104 leaves us with 14.
Fetch the next digit (2) from the dividend, attach it to 14 and continue: 142 / 45

Going ahead to step 6:
45 goes into 142 3 times with a remainder of 7.
Put 3 as the next digit of the answer. 
Result so far: 8823.0
Subtracting 135 from 142 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Going ahead to step 7:
When dividing 70 by 45, we get 1 with a remainder of 25.
The number 1 becomes the next digit in our result. 
Result so far: 8823.1
If we take 45 away from 70, we end up with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Advancing to step 8:
250 divided by 45 is 5 with a remainder of 25.
Put 5 as the next digit of the answer. 
Result so far: 8823.15
If we take 225 away from 250, we end up with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Step 9:
45 goes into 250 5 times with a remainder of 25.
The number 5 becomes the next digit in our result. 
Result so far: 8823.155
The remainder is 25 after subtracting 225 from 250.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

The quotient of the division is 8823.155, and the remainder is 0.0025.