We're dividing 628295 by 40 
We want to figure out the number of times 628295 can be divided by 40.

Moving on to step 1:
The number 40 fits into 6 0 times, leaving a remainder of 6.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 6 to get 6.
Take the next digit (2) from the dividend and append it to 6, then repeat: 62 / 40

On to step 2:
The number 40 fits into 62 1 times, leaving a remainder of 22.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Deduct 40 from 62 and we're left with 22.
Include the next digit (8) from the dividend after 22, then repeat: 228 / 40

Let's proceed to step 3:
40 goes into 228 5 times with a remainder of 28.
Write down 5 as next digit of the result. 
Result so far: 15.0
If we subtract 200 from 228, we get 28.
Take the next digit (2) from the dividend and append it to 28, then repeat: 282 / 40

Step 4:
40 can be fit into 282 7 times, resulting in a remainder of 2.
Record the quotient 7 as the next digit in the result. 
Result so far: 157.0
Subtract 280 from 282 to get 2.
Grab the next digit (9) from the dividend, add it to 2, then carry on: 29 / 40

Going ahead to step 5:
The number 40 fits into 29 0 times, leaving a remainder of 29.
Use 0 as the next digit of our solution. 
Result so far: 1570.0
Subtracting 0 from 29 leaves us with 29.
Append the next digit (5) from the dividend to 29 and continue with: 295 / 40

Step 6:
If we divide 295 by 40, we get 7 and a remainder of 15.
The next digit of our result is 7. 
Result so far: 15707.0
If we take 280 away from 295, we end up 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:
When dividing 150 by 40, we get 3 with a remainder of 30.
Use 3 as the next digit of our solution. 
Result so far: 15707.3
Subtracting 120 from 150 leaves us 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.
Record the quotient 7 as the next digit in the result. 
Result so far: 15707.37
If we take 280 away from 300, we end up with 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:
40 goes into 200 5 times with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 15707.375
Deduct 200 from 200 and we're left 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 10:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 15707.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.

Going ahead to step 11:
If we divide 0 by 40, we get 0 and a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 15707.375
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 15707.375 and a remainder of 0.0.