Let's divide 627591 by 40
We're looking to find how many times 40 goes into 627591.

Let's proceed to step 1:
40 goes into 6 0 times with a remainder of 6.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 6 leaves us with 6.
Grab the next digit (2) from the dividend, add it to 6, then carry on: 62 / 40

On to step 2:
If we divide 62 by 40, we get 1 and a remainder of 22.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we take 40 away from 62, we end up with 22.
Grab the next digit (7) from the dividend, add it to 22, then carry on: 227 / 40

Step 3:
227 divided by 40 is 5 with a remainder of 27.
The number 5 becomes the next digit in our result. 
Result so far: 15.0
The remainder is 27 after subtracting 200 from 227.
Grab the next digit (5) from the dividend, add it to 27, then carry on: 275 / 40

Let's proceed to step 4:
If we divide 275 by 40, we get 6 and a remainder of 35.
The next digit of our result is 6. 
Result so far: 156.0
If we take 240 away from 275, we end up with 35.
Grab the next digit (9) from the dividend, add it to 35, then carry on: 359 / 40

Let's proceed to step 5:
359 divided by 40 is 8 with a remainder of 39.
Record the quotient 8 as the next digit in the result. 
Result so far: 1568.0
Subtract 320 from 359 to get 39.
Fetch the next digit (1) from the dividend, attach it to 39 and continue: 391 / 40

Going ahead to step 6:
40 goes into 391 9 times with a remainder of 31.
Write down 9 as next digit of the result. 
Result so far: 15689.0
Deduct 360 from 391 and we're left with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Step 7:
40 goes into 310 7 times with a remainder of 30.
Put 7 as the next digit of the answer. 
Result so far: 15689.7
Subtract 280 from 310 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

On to step 8:
300 divided by 40 is 7 with a remainder of 20.
Record the quotient 7 as the next digit in the result. 
Result so far: 15689.77
The remainder is 20 after subtracting 280 from 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

The final result is 15689.77 with a remainder of 0.02.