Let's divide 797305 by 40
Our goal is to divide 797305 by 40.

Moving on to step 1:
40 can be fit into 7 0 times, resulting in a remainder of 7.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 7 to get 7.
Bring next digit (9) of the dividend behind the 7 and repeat the process: 79 / 40

Moving on to step 2:
When dividing 79 by 40, we get 1 with a remainder of 39.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we take 40 away from 79, we end up with 39.
Include the next digit (7) from the dividend after 39, then repeat: 397 / 40

Advancing to step 3:
40 can be fit into 397 9 times, resulting in a remainder of 37.
Write down 9 as next digit of the result. 
Result so far: 19.0
Subtract 360 from 397 to get 37.
Bring next digit (3) of the dividend behind the 37 and repeat the process: 373 / 40

Moving on to step 4:
When dividing 373 by 40, we get 9 with a remainder of 13.
The next digit of our result is 9. 
Result so far: 199.0
Subtracting 360 from 373 leaves us with 13.
Take the next digit (0) from the dividend and append it to 13, then repeat: 130 / 40

Advancing to step 5:
130 divided by 40 is 3 with a remainder of 10.
Write down 3 as next digit of the result. 
Result so far: 1993.0
The remainder is 10 after subtracting 120 from 130.
Append the next digit (5) from the dividend to 10 and continue with: 105 / 40

Let's proceed to step 6:
105 divided by 40 is 2 with a remainder of 25.
Record the quotient 2 as the next digit in the result. 
Result so far: 19932.0
Subtracting 80 from 105 leaves us with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Moving on to step 7:
If we divide 250 by 40, we get 6 and a remainder of 10.
Use 6 as the next digit of our solution. 
Result so far: 19932.6
Subtract 240 from 250 to get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Moving on to step 8:
The number 40 fits into 100 2 times, leaving a remainder of 20.
Use 2 as the next digit of our solution. 
Result so far: 19932.62
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.

Moving on to step 9:
The number 40 fits into 200 5 times, leaving a remainder of 0.
Write down 5 as next digit of the result. 
Result so far: 19932.625
The remainder is 0 after subtracting 200 from 200.
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:
If we divide 0 by 40, we get 0 and a remainder of 0.
The next digit of our result is 0. 
Result so far: 19932.625
The remainder is 0 after subtracting 0 from 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 11:
If we divide 0 by 40, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 19932.625
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 19932.625 with a remainder of 0.0.