We're dividing 997965 by 39 
Let's see how many times 39 fits into 997965.

Let's proceed to step 1:
The number 39 fits into 9 0 times, leaving a remainder of 9.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 9, we get 9.
Take the next digit (9) from the dividend and append it to 9, then repeat: 99 / 39

Going ahead to step 2:
If we divide 99 by 39, we get 2 and a remainder of 21.
The next digit of our result is 2. 
Result so far: 2.0
The remainder is 21 after subtracting 78 from 99.
Grab the next digit (7) from the dividend, add it to 21, then carry on: 217 / 39

Let's proceed to step 3:
When dividing 217 by 39, we get 5 with a remainder of 22.
The number 5 becomes the next digit in our result. 
Result so far: 25.0
If we subtract 195 from 217, we get 22.
Grab the next digit (9) from the dividend, add it to 22, then carry on: 229 / 39

Step 4:
39 goes into 229 5 times with a remainder of 34.
The number 5 becomes the next digit in our result. 
Result so far: 255.0
Deduct 195 from 229 and we're left with 34.
Include the next digit (6) from the dividend after 34, then repeat: 346 / 39

Advancing to step 5:
39 goes into 346 8 times with a remainder of 34.
The next digit of our result is 8. 
Result so far: 2558.0
Deduct 312 from 346 and we're left with 34.
Fetch the next digit (5) from the dividend, attach it to 34 and continue: 345 / 39

Let's proceed to step 6:
39 goes into 345 8 times with a remainder of 33.
The next digit of our result is 8. 
Result so far: 25588.0
The remainder is 33 after subtracting 312 from 345.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

Moving on to step 7:
When dividing 330 by 39, we get 8 with a remainder of 18.
The next digit of our result is 8. 
Result so far: 25588.8
Subtract 312 from 330 to get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

On to step 8:
39 can be fit into 180 4 times, resulting in a remainder of 24.
Write down 4 as next digit of the result. 
Result so far: 25588.84
The remainder is 24 after subtracting 156 from 180.
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 9:
If we divide 240 by 39, we get 6 and a remainder of 6.
The next digit of our result is 6. 
Result so far: 25588.846
If we take 234 away from 240, we end up with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 10:
If we divide 60 by 39, we get 1 and a remainder of 21.
Use 1 as the next digit of our solution. 
Result so far: 25588.8461
Deduct 39 from 60 and we're left with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Let's proceed to step 11:
If we divide 210 by 39, we get 5 and a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 25588.84615
The remainder is 15 after subtracting 195 from 210.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Moving on to step 12:
39 can be fit into 150 3 times, resulting in a remainder of 33.
The next digit of our result is 3. 
Result so far: 25588.846153
Subtract 117 from 150 to get 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

Advancing to step 13:
39 can be fit into 330 8 times, resulting in a remainder of 18.
Record the quotient 8 as the next digit in the result. 
Result so far: 25588.8461538
The remainder is 18 after subtracting 312 from 330.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

On to step 14:
The number 39 fits into 180 4 times, leaving a remainder of 24.
Use 4 as the next digit of our solution. 
Result so far: 25588.84615384
Deduct 156 from 180 and we're left 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.

The final outcome is 25588.84615384, with a leftover of 2.4e-08.