164977 divided by 39 
Let's see how many times 39 fits into 164977.

Moving on to step 1:
The number 39 fits into 1 0 times, leaving a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Include the next digit (6) from the dividend after 1, then repeat: 16 / 39

Step 2:
39 goes into 16 0 times with a remainder of 16.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 16 leaves us with 16.
Include the next digit (4) from the dividend after 16, then repeat: 164 / 39

Moving on to step 3:
39 can be fit into 164 4 times, resulting in a remainder of 8.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
If we take 156 away from 164, we end up with 8.
Grab the next digit (9) from the dividend, add it to 8, then carry on: 89 / 39

Step 4:
39 can be fit into 89 2 times, resulting in a remainder of 11.
The number 2 becomes the next digit in our result. 
Result so far: 42.0
Deduct 78 from 89 and we're left with 11.
Fetch the next digit (7) from the dividend, attach it to 11 and continue: 117 / 39

Let's proceed to step 5:
117 divided by 39 is 3 with a remainder of 0.
Record the quotient 3 as the next digit in the result. 
Result so far: 423.0
The remainder is 0 after subtracting 117 from 117.
Include the next digit (7) from the dividend after 0, then repeat: 7 / 39

Step 6:
The number 39 fits into 7 0 times, leaving a remainder of 7.
Record the quotient 0 as the next digit in the result. 
Result so far: 4230.0
If we take 0 away from 7, we end up with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Let's proceed to step 7:
When dividing 70 by 39, we get 1 with a remainder of 31.
Put 1 as the next digit of the answer. 
Result so far: 4230.1
If we take 39 away from 70, we end up with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Going ahead to step 8:
The number 39 fits into 310 7 times, leaving a remainder of 37.
The next digit of our result is 7. 
Result so far: 4230.17
Deduct 273 from 310 and we're left with 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Advancing to step 9:
39 can be fit into 370 9 times, resulting in a remainder of 19.
The number 9 becomes the next digit in our result. 
Result so far: 4230.179
Subtracting 351 from 370 leaves us with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Going ahead to step 10:
If we divide 190 by 39, we get 4 and a remainder of 34.
Use 4 as the next digit of our solution. 
Result so far: 4230.1794
Subtract 156 from 190 to get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Moving on to step 11:
When dividing 340 by 39, we get 8 with a remainder of 28.
Record the quotient 8 as the next digit in the result. 
Result so far: 4230.17948
If we take 312 away from 340, we end up with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Advancing to step 12:
39 can be fit into 280 7 times, resulting in a remainder of 7.
Put 7 as the next digit of the answer. 
Result so far: 4230.179487
The remainder is 7 after subtracting 273 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Advancing to step 13:
If we divide 70 by 39, we get 1 and a remainder of 31.
Write down 1 as next digit of the result. 
Result so far: 4230.1794871
If we subtract 39 from 70, we get 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Let's proceed to step 14:
The number 39 fits into 310 7 times, leaving a remainder of 37.
Record the quotient 7 as the next digit in the result. 
Result so far: 4230.17948717
Subtracting 273 from 310 leaves us with 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

The final outcome is 4230.17948717, with a leftover of 3.7e-08.