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

Going ahead to step 1:
If we divide 1 by 39, we get 0 and a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Include the next digit (6) from the dividend after 1, then repeat: 16 / 39

Step 2:
39 can be fit into 16 0 times, resulting in a remainder of 16.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 16 leaves us with 16.
Append the next digit (5) from the dividend to 16 and continue with: 165 / 39

Moving on to step 3:
39 can be fit into 165 4 times, resulting in a remainder of 9.
The next digit of our result is 4. 
Result so far: 4.0
Deduct 156 from 165 and we're left with 9.
Grab the next digit (0) from the dividend, add it to 9, then carry on: 90 / 39

Moving on to step 4:
If we divide 90 by 39, we get 2 and a remainder of 12.
The number 2 becomes the next digit in our result. 
Result so far: 42.0
The remainder is 12 after subtracting 78 from 90.
Append the next digit (5) from the dividend to 12 and continue with: 125 / 39

Going ahead to step 5:
39 can be fit into 125 3 times, resulting in a remainder of 8.
Put 3 as the next digit of the answer. 
Result so far: 423.0
The remainder is 8 after subtracting 117 from 125.
Grab the next digit (9) from the dividend, add it to 8, then carry on: 89 / 39

Advancing to step 6:
39 can be fit into 89 2 times, resulting in a remainder of 11.
Write down 2 as next digit of the result. 
Result so far: 4232.0
Deduct 78 from 89 and we're left with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Moving on to step 7:
When dividing 110 by 39, we get 2 with a remainder of 32.
Put 2 as the next digit of the answer. 
Result so far: 4232.2
If we take 78 away from 110, we end up with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

On to step 8:
If we divide 320 by 39, we get 8 and a remainder of 8.
The next digit of our result is 8. 
Result so far: 4232.28
Deduct 312 from 320 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 9:
39 goes into 80 2 times with a remainder of 2.
Use 2 as the next digit of our solution. 
Result so far: 4232.282
Deduct 78 from 80 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 10:
20 divided by 39 is 0 with a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 4232.282
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 11:
200 divided by 39 is 5 with a remainder of 5.
The next digit of our result is 5. 
Result so far: 4232.28205
Subtract 195 from 200 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Moving on to step 12:
50 divided by 39 is 1 with a remainder of 11.
Use 1 as the next digit of our solution. 
Result so far: 4232.282051
The remainder is 11 after subtracting 39 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Moving on to step 13:
39 can be fit into 110 2 times, resulting in a remainder of 32.
The next digit of our result is 2. 
Result so far: 4232.2820512
Subtracting 78 from 110 leaves us with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Moving on to step 14:
If we divide 320 by 39, we get 8 and a remainder of 8.
Put 8 as the next digit of the answer. 
Result so far: 4232.28205128
Subtract 312 from 320 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

The final result is 4232.28205128 with a remainder of 8e-09.