We're dividing 875045 by 40 
Let's see how many times 40 fits into 875045.

Going ahead to step 1:
The number 40 fits into 8 0 times, leaving a remainder of 8.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 8 and we're left with 8.
Take the next digit (7) from the dividend and append it to 8, then repeat: 87 / 40

On to step 2:
If we divide 87 by 40, we get 2 and a remainder of 7.
The next digit of our result is 2. 
Result so far: 2.0
If we take 80 away from 87, we end up with 7.
Grab the next digit (5) from the dividend, add it to 7, then carry on: 75 / 40

Advancing to step 3:
40 can be fit into 75 1 times, resulting in a remainder of 35.
Write down 1 as next digit of the result. 
Result so far: 21.0
If we take 40 away from 75, we end up with 35.
Append the next digit (0) from the dividend to 35 and continue with: 350 / 40

Going ahead to step 4:
40 goes into 350 8 times with a remainder of 30.
The next digit of our result is 8. 
Result so far: 218.0
If we subtract 320 from 350, we get 30.
Append the next digit (4) from the dividend to 30 and continue with: 304 / 40

Advancing to step 5:
If we divide 304 by 40, we get 7 and a remainder of 24.
The next digit of our result is 7. 
Result so far: 2187.0
If we subtract 280 from 304, we get 24.
Include the next digit (5) from the dividend after 24, then repeat: 245 / 40

Advancing to step 6:
When dividing 245 by 40, we get 6 with a remainder of 5.
Write down 6 as next digit of the result. 
Result so far: 21876.0
If we take 240 away from 245, we end up 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.

Let's proceed to step 7:
40 goes into 50 1 times with a remainder of 10.
The number 1 becomes the next digit in our result. 
Result so far: 21876.1
If we subtract 40 from 50, 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.

Going ahead to step 8:
If we divide 100 by 40, we get 2 and a remainder of 20.
Write down 2 as next digit of the result. 
Result so far: 21876.12
Subtract 80 from 100 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 9:
The number 40 fits into 200 5 times, leaving a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 21876.125
Subtract 200 from 200 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 21876.125
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.

Let's proceed to step 11:
0 divided by 40 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 21876.125
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.

After the division, we end up with 21876.125 and a remainder of 0.0.