We're dividing 875255 by 40 
We want to divide 875255 by 40.

Advancing to step 1:
8 divided by 40 is 0 with a remainder of 8.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 8, we get 8.
Include the next digit (7) from the dividend after 8, then repeat: 87 / 40

Moving on to step 2:
40 goes into 87 2 times with a remainder of 7.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Deduct 80 from 87 and we're left with 7.
Bring next digit (5) of the dividend behind the 7 and repeat the process: 75 / 40

Step 3:
75 divided by 40 is 1 with a remainder of 35.
Record the quotient 1 as the next digit in the result. 
Result so far: 21.0
Subtracting 40 from 75 leaves us with 35.
Grab the next digit (2) from the dividend, add it to 35, then carry on: 352 / 40

Going ahead to step 4:
352 divided by 40 is 8 with a remainder of 32.
The number 8 becomes the next digit in our result. 
Result so far: 218.0
If we subtract 320 from 352, we get 32.
Append the next digit (5) from the dividend to 32 and continue with: 325 / 40

Going ahead to step 5:
40 can be fit into 325 8 times, resulting in a remainder of 5.
The number 8 becomes the next digit in our result. 
Result so far: 2188.0
If we subtract 320 from 325, we get 5.
Append the next digit (5) from the dividend to 5 and continue with: 55 / 40

On to step 6:
If we divide 55 by 40, we get 1 and a remainder of 15.
Put 1 as the next digit of the answer. 
Result so far: 21881.0
Deduct 40 from 55 and we're left with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Step 7:
40 can be fit into 150 3 times, resulting in a remainder of 30.
Write down 3 as next digit of the result. 
Result so far: 21881.3
If we take 120 away from 150, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 8:
If we divide 300 by 40, we get 7 and a remainder of 20.
Put 7 as the next digit of the answer. 
Result so far: 21881.37
If we subtract 280 from 300, we 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.

Moving on to step 9:
40 can be fit into 200 5 times, resulting in a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 21881.375
Subtracting 200 from 200 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 10:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 21881.375
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.

Step 11:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 21881.375
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.

The final result is 21881.375 with a remainder of 0.0.