We're dividing 630840 by 40 
We're looking to find how many times 40 goes into 630840.

Going ahead to step 1:
If we divide 6 by 40, we get 0 and a remainder of 6.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 6, we end up with 6.
Include the next digit (3) from the dividend after 6, then repeat: 63 / 40

On to step 2:
If we divide 63 by 40, we get 1 and a remainder of 23.
The next digit of our result is 1. 
Result so far: 1.0
Deduct 40 from 63 and we're left with 23.
Append the next digit (0) from the dividend to 23 and continue with: 230 / 40

Let's proceed to step 3:
If we divide 230 by 40, we get 5 and a remainder of 30.
Write down 5 as next digit of the result. 
Result so far: 15.0
The remainder is 30 after subtracting 200 from 230.
Include the next digit (8) from the dividend after 30, then repeat: 308 / 40

Moving on to step 4:
If we divide 308 by 40, we get 7 and a remainder of 28.
Put 7 as the next digit of the answer. 
Result so far: 157.0
Subtracting 280 from 308 leaves us with 28.
Fetch the next digit (4) from the dividend, attach it to 28 and continue: 284 / 40

Let's proceed to step 5:
40 goes into 284 7 times with a remainder of 4.
Record the quotient 7 as the next digit in the result. 
Result so far: 1577.0
Subtracting 280 from 284 leaves us with 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 40

Moving on to step 6:
When dividing 40 by 40, we get 1 with a remainder of 0.
The next digit of our result is 1. 
Result so far: 15771.0
If we take 40 away from 40, 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.

On to step 7:
When dividing 0 by 40, we get 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 15771.0
Subtract 0 from 0 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.

Moving on to step 8:
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: 15771.0
If we subtract 0 from 0, we 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.

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