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

On to step 1:
The number 40 fits into 5 0 times, leaving a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Bring next digit (0) of the dividend behind the 5 and repeat the process: 50 / 40

Advancing to step 2:
When dividing 50 by 40, we get 1 with a remainder of 10.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we take 40 away from 50, we end up with 10.
Append the next digit (4) from the dividend to 10 and continue with: 104 / 40

Let's proceed to step 3:
40 goes into 104 2 times with a remainder of 24.
Record the quotient 2 as the next digit in the result. 
Result so far: 12.0
If we take 80 away from 104, we end up with 24.
Include the next digit (6) from the dividend after 24, then repeat: 246 / 40

Step 4:
If we divide 246 by 40, we get 6 and a remainder of 6.
Put 6 as the next digit of the answer. 
Result so far: 126.0
If we subtract 240 from 246, we get 6.
Include the next digit (4) from the dividend after 6, then repeat: 64 / 40

Let's proceed to step 5:
The number 40 fits into 64 1 times, leaving a remainder of 24.
The next digit of our result is 1. 
Result so far: 1261.0
Deduct 40 from 64 and we're left with 24.
Take the next digit (9) from the dividend and append it to 24, then repeat: 249 / 40

Advancing to step 6:
The number 40 fits into 249 6 times, leaving a remainder of 9.
The number 6 becomes the next digit in our result. 
Result so far: 12616.0
If we take 240 away from 249, we end up with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Let's proceed to step 7:
40 goes into 90 2 times with a remainder of 10.
Record the quotient 2 as the next digit in the result. 
Result so far: 12616.2
If we take 80 away from 90, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 8:
If we divide 100 by 40, we get 2 and a remainder of 20.
The number 2 becomes the next digit in our result. 
Result so far: 12616.22
The remainder is 20 after subtracting 80 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

After the division, we end up with 12616.22 and a remainder of 0.02.