We divide 631365 by 40
Our goal is to divide 631365 by 40.

Going ahead to step 1:
When dividing 6 by 40, we get 0 with a remainder of 6.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 6 leaves us with 6.
Include the next digit (3) from the dividend after 6, then repeat: 63 / 40

Moving on to step 2:
The number 40 fits into 63 1 times, leaving a remainder of 23.
The next digit of our result is 1. 
Result so far: 1.0
If we take 40 away from 63, we end up with 23.
Grab the next digit (1) from the dividend, add it to 23, then carry on: 231 / 40

Step 3:
The number 40 fits into 231 5 times, leaving a remainder of 31.
The next digit of our result is 5. 
Result so far: 15.0
If we subtract 200 from 231, we get 31.
Append the next digit (3) from the dividend to 31 and continue with: 313 / 40

On to step 4:
When dividing 313 by 40, we get 7 with a remainder of 33.
Record the quotient 7 as the next digit in the result. 
Result so far: 157.0
If we subtract 280 from 313, we get 33.
Fetch the next digit (6) from the dividend, attach it to 33 and continue: 336 / 40

Moving on to step 5:
40 can be fit into 336 8 times, resulting in a remainder of 16.
The next digit of our result is 8. 
Result so far: 1578.0
If we subtract 320 from 336, we get 16.
Take the next digit (5) from the dividend and append it to 16, then repeat: 165 / 40

Advancing to step 6:
The number 40 fits into 165 4 times, leaving a remainder of 5.
The next digit of our result is 4. 
Result so far: 15784.0
Subtracting 160 from 165 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 7:
If we divide 50 by 40, we get 1 and a remainder of 10.
Write down 1 as next digit of the result. 
Result so far: 15784.1
The remainder is 10 after subtracting 40 from 50.
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:
If we divide 100 by 40, we get 2 and a remainder of 20.
Use 2 as the next digit of our solution. 
Result so far: 15784.12
If we take 80 away from 100, 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.

Step 9:
When dividing 200 by 40, we get 5 with a remainder of 0.
The next digit of our result is 5. 
Result so far: 15784.125
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.

Advancing to step 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 15784.125
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.

On to step 11:
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: 15784.125
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 final result is 15784.125 with a remainder of 0.0.