Let's divide 628385 by 40
Our goal is to divide 628385 by 40.

Let's proceed to step 1:
The number 40 fits into 6 0 times, leaving a remainder of 6.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 6 and we're left with 6.
Fetch the next digit (2) from the dividend, attach it to 6 and continue: 62 / 40

Advancing to step 2:
When dividing 62 by 40, we get 1 with a remainder of 22.
The next digit of our result is 1. 
Result so far: 1.0
Subtract 40 from 62 to get 22.
Include the next digit (8) from the dividend after 22, then repeat: 228 / 40

Let's proceed to step 3:
228 divided by 40 is 5 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.
Bring next digit (3) of the dividend behind the 28 and repeat the process: 283 / 40

Advancing to step 4:
40 can be fit into 283 7 times, resulting in a remainder of 3.
Write down 7 as next digit of the result. 
Result so far: 157.0
Subtracting 280 from 283 leaves us with 3.
Fetch the next digit (8) from the dividend, attach it to 3 and continue: 38 / 40

Let's proceed to step 5:
38 divided by 40 is 0 with a remainder of 38.
Put 0 as the next digit of the answer. 
Result so far: 1570.0
Deduct 0 from 38 and we're left with 38.
Grab the next digit (5) from the dividend, add it to 38, then carry on: 385 / 40

Step 6:
385 divided by 40 is 9 with a remainder of 25.
The next digit of our result is 9. 
Result so far: 15709.0
Subtracting 360 from 385 leaves us with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Going ahead to step 7:
40 can be fit into 250 6 times, resulting in a remainder of 10.
The number 6 becomes the next digit in our result. 
Result so far: 15709.6
Subtract 240 from 250 to 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:
40 can be fit into 100 2 times, resulting in a remainder of 20.
Use 2 as the next digit of our solution. 
Result so far: 15709.62
Subtracting 80 from 100 leaves us 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:
The number 40 fits into 200 5 times, leaving a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 15709.625
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.

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: 15709.625
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.

Advancing to step 11:
The number 40 fits into 0 0 times, leaving a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 15709.625
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.

The quotient of the division is 15709.625, and the remainder is 0.0.