Let's divide 997542 by 45
We want to divide 997542 by 45.

On to step 1:
45 can be fit into 9 0 times, resulting in a remainder of 9.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 9, we end up with 9.
Grab the next digit (9) from the dividend, add it to 9, then carry on: 99 / 45

Going ahead to step 2:
The number 45 fits into 99 2 times, leaving a remainder of 9.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
If we take 90 away from 99, we end up with 9.
Bring next digit (7) of the dividend behind the 9 and repeat the process: 97 / 45

Advancing to step 3:
45 can be fit into 97 2 times, resulting in a remainder of 7.
The next digit of our result is 2. 
Result so far: 22.0
Subtract 90 from 97 to get 7.
Include the next digit (5) from the dividend after 7, then repeat: 75 / 45

Advancing to step 4:
If we divide 75 by 45, we get 1 and a remainder of 30.
Use 1 as the next digit of our solution. 
Result so far: 221.0
If we take 45 away from 75, we end up with 30.
Bring next digit (4) of the dividend behind the 30 and repeat the process: 304 / 45

Moving on to step 5:
304 divided by 45 is 6 with a remainder of 34.
Record the quotient 6 as the next digit in the result. 
Result so far: 2216.0
Deduct 270 from 304 and we're left with 34.
Bring next digit (2) of the dividend behind the 34 and repeat the process: 342 / 45

Going ahead to step 6:
45 goes into 342 7 times with a remainder of 27.
The next digit of our result is 7. 
Result so far: 22167.0
The remainder is 27 after subtracting 315 from 342.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Step 7:
45 can be fit into 270 6 times, resulting in a remainder of 0.
The number 6 becomes the next digit in our result. 
Result so far: 22167.6
The remainder is 0 after subtracting 270 from 270.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 8:
0 divided by 45 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 22167.6
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.

On to step 9:
45 can be fit into 0 0 times, resulting in a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 22167.6
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.

Our division results in 22167.6 with a remaining 0.0.