497161 ÷ 45 
Let's see how many times 45 fits into 497161.

On to step 1:
4 divided by 45 is 0 with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Grab the next digit (9) from the dividend, add it to 4, then carry on: 49 / 45

Moving on to step 2:
When dividing 49 by 45, we get 1 with a remainder of 4.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 45 from 49 leaves us with 4.
Bring next digit (7) of the dividend behind the 4 and repeat the process: 47 / 45

Step 3:
45 can be fit into 47 1 times, resulting in a remainder of 2.
Use 1 as the next digit of our solution. 
Result so far: 11.0
The remainder is 2 after subtracting 45 from 47.
Fetch the next digit (1) from the dividend, attach it to 2 and continue: 21 / 45

Advancing to step 4:
If we divide 21 by 45, we get 0 and a remainder of 21.
Use 0 as the next digit of our solution. 
Result so far: 110.0
The remainder is 21 after subtracting 0 from 21.
Append the next digit (6) from the dividend to 21 and continue with: 216 / 45

Going ahead to step 5:
The number 45 fits into 216 4 times, leaving a remainder of 36.
Record the quotient 4 as the next digit in the result. 
Result so far: 1104.0
If we take 180 away from 216, we end up with 36.
Bring next digit (1) of the dividend behind the 36 and repeat the process: 361 / 45

Advancing to step 6:
45 goes into 361 8 times with a remainder of 1.
Write down 8 as next digit of the result. 
Result so far: 11048.0
Subtract 360 from 361 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.

Advancing to step 7:
10 divided by 45 is 0 with a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 11048.0
If we subtract 0 from 10, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 8:
The number 45 fits into 100 2 times, leaving a remainder of 10.
Write down 2 as next digit of the result. 
Result so far: 11048.02
If we take 90 away from 100, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 9:
100 divided by 45 is 2 with a remainder of 10.
The next digit of our result is 2. 
Result so far: 11048.022
Subtract 90 from 100 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

The final outcome is 11048.022, with a leftover of 0.001.