We're dividing 865130 by 45 
We want to divide 865130 by 45.

Going ahead to step 1:
8 divided by 45 is 0 with a remainder of 8.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 8 after subtracting 0 from 8.
Include the next digit (6) from the dividend after 8, then repeat: 86 / 45

Moving on to step 2:
45 can be fit into 86 1 times, resulting in a remainder of 41.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we subtract 45 from 86, we get 41.
Bring next digit (5) of the dividend behind the 41 and repeat the process: 415 / 45

Step 3:
415 divided by 45 is 9 with a remainder of 10.
The number 9 becomes the next digit in our result. 
Result so far: 19.0
If we take 405 away from 415, we end up with 10.
Bring next digit (1) of the dividend behind the 10 and repeat the process: 101 / 45

On to step 4:
45 can be fit into 101 2 times, resulting in a remainder of 11.
The number 2 becomes the next digit in our result. 
Result so far: 192.0
If we take 90 away from 101, we end up with 11.
Fetch the next digit (3) from the dividend, attach it to 11 and continue: 113 / 45

Advancing to step 5:
45 goes into 113 2 times with a remainder of 23.
Use 2 as the next digit of our solution. 
Result so far: 1922.0
If we take 90 away from 113, we end up with 23.
Grab the next digit (0) from the dividend, add it to 23, then carry on: 230 / 45

Advancing to step 6:
When dividing 230 by 45, we get 5 with a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 19225.0
Deduct 225 from 230 and we're left 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.

Advancing to step 7:
When dividing 50 by 45, we get 1 with a remainder of 5.
Put 1 as the next digit of the answer. 
Result so far: 19225.1
If we subtract 45 from 50, we 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.

On to step 8:
45 goes into 50 1 times with a remainder of 5.
Write down 1 as next digit of the result. 
Result so far: 19225.11
Deduct 45 from 50 and we're left 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.

Our division results in 19225.11 with a remaining 0.005.