We divide 986765 by 45
Our goal is to divide 986765 by 45.

Advancing to step 1:
45 can be fit into 9 0 times, resulting in a remainder of 9.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 9 leaves us with 9.
Grab the next digit (8) from the dividend, add it to 9, then carry on: 98 / 45

Step 2:
If we divide 98 by 45, we get 2 and a remainder of 8.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Subtracting 90 from 98 leaves us with 8.
Take the next digit (6) from the dividend and append it to 8, then repeat: 86 / 45

Step 3:
The number 45 fits into 86 1 times, leaving a remainder of 41.
The number 1 becomes the next digit in our result. 
Result so far: 21.0
Subtract 45 from 86 to get 41.
Take the next digit (7) from the dividend and append it to 41, then repeat: 417 / 45

Let's proceed to step 4:
When dividing 417 by 45, we get 9 with a remainder of 12.
Record the quotient 9 as the next digit in the result. 
Result so far: 219.0
Deduct 405 from 417 and we're left with 12.
Bring next digit (6) of the dividend behind the 12 and repeat the process: 126 / 45

On to step 5:
45 goes into 126 2 times with a remainder of 36.
Write down 2 as next digit of the result. 
Result so far: 2192.0
Deduct 90 from 126 and we're left with 36.
Include the next digit (5) from the dividend after 36, then repeat: 365 / 45

Moving on to step 6:
45 goes into 365 8 times with a remainder of 5.
Put 8 as the next digit of the answer. 
Result so far: 21928.0
Subtract 360 from 365 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 7:
45 goes into 50 1 times with a remainder of 5.
Use 1 as the next digit of our solution. 
Result so far: 21928.1
The remainder is 5 after subtracting 45 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 8:
The number 45 fits into 50 1 times, leaving a remainder of 5.
The number 1 becomes the next digit in our result. 
Result so far: 21928.11
Subtracting 45 from 50 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

The quotient of the division is 21928.11, and the remainder is 0.005.