793748 ÷ 40 
We want to divide 793748 by 40.

On to step 1:
If we divide 7 by 40, we get 0 and a remainder of 7.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 7 to get 7.
Take the next digit (9) from the dividend and append it to 7, then repeat: 79 / 40

Advancing to step 2:
If we divide 79 by 40, we get 1 and a remainder of 39.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we subtract 40 from 79, we get 39.
Include the next digit (3) from the dividend after 39, then repeat: 393 / 40

Going ahead to step 3:
40 goes into 393 9 times with a remainder of 33.
Put 9 as the next digit of the answer. 
Result so far: 19.0
If we take 360 away from 393, we end up with 33.
Fetch the next digit (7) from the dividend, attach it to 33 and continue: 337 / 40

Advancing to step 4:
When dividing 337 by 40, we get 8 with a remainder of 17.
The next digit of our result is 8. 
Result so far: 198.0
If we take 320 away from 337, we end up with 17.
Take the next digit (4) from the dividend and append it to 17, then repeat: 174 / 40

Advancing to step 5:
40 can be fit into 174 4 times, resulting in a remainder of 14.
The number 4 becomes the next digit in our result. 
Result so far: 1984.0
Subtracting 160 from 174 leaves us with 14.
Include the next digit (8) from the dividend after 14, then repeat: 148 / 40

Going ahead to step 6:
40 goes into 148 3 times with a remainder of 28.
Use 3 as the next digit of our solution. 
Result so far: 19843.0
Subtract 120 from 148 to get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Moving on to step 7:
40 can be fit into 280 7 times, resulting in a remainder of 0.
Use 7 as the next digit of our solution. 
Result so far: 19843.7
Subtracting 280 from 280 leaves us 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 8:
If we divide 0 by 40, we get 0 and a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 19843.7
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 9:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 19843.7
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.

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