Let's divide 498624 by 40
Let's see how many times 40 fits into 498624.

Going ahead to step 1:
4 divided by 40 is 0 with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Include the next digit (9) from the dividend after 4, then repeat: 49 / 40

On to step 2:
When dividing 49 by 40, we get 1 with a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 40 from 49 and we're left with 9.
Grab the next digit (8) from the dividend, add it to 9, then carry on: 98 / 40

Going ahead to step 3:
When dividing 98 by 40, we get 2 with a remainder of 18.
The next digit of our result is 2. 
Result so far: 12.0
Subtracting 80 from 98 leaves us with 18.
Grab the next digit (6) from the dividend, add it to 18, then carry on: 186 / 40

Advancing to step 4:
The number 40 fits into 186 4 times, leaving a remainder of 26.
The number 4 becomes the next digit in our result. 
Result so far: 124.0
Deduct 160 from 186 and we're left with 26.
Bring next digit (2) of the dividend behind the 26 and repeat the process: 262 / 40

Step 5:
262 divided by 40 is 6 with a remainder of 22.
Write down 6 as next digit of the result. 
Result so far: 1246.0
The remainder is 22 after subtracting 240 from 262.
Bring next digit (4) of the dividend behind the 22 and repeat the process: 224 / 40

Going ahead to step 6:
224 divided by 40 is 5 with a remainder of 24.
Put 5 as the next digit of the answer. 
Result so far: 12465.0
Subtracting 200 from 224 leaves us with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

On to step 7:
40 goes into 240 6 times with a remainder of 0.
Record the quotient 6 as the next digit in the result. 
Result so far: 12465.6
Subtract 240 from 240 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 8:
The number 40 fits into 0 0 times, leaving a remainder of 0.
The next digit of our result is 0. 
Result so far: 12465.6
Deduct 0 from 0 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.

Going ahead to step 9:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 12465.6
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.

Our division results in 12465.6 with a remaining 0.0.