We look at the division of 165047 by 38 
Let's see how many times 38 fits into 165047.

Advancing to step 1:
If we divide 1 by 38, we get 0 and a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Take the next digit (6) from the dividend and append it to 1, then repeat: 16 / 38

Advancing to step 2:
16 divided by 38 is 0 with a remainder of 16.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 16, we end up with 16.
Fetch the next digit (5) from the dividend, attach it to 16 and continue: 165 / 38

Advancing to step 3:
165 divided by 38 is 4 with a remainder of 13.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
The remainder is 13 after subtracting 152 from 165.
Append the next digit (0) from the dividend to 13 and continue with: 130 / 38

Advancing to step 4:
If we divide 130 by 38, we get 3 and a remainder of 16.
Write down 3 as next digit of the result. 
Result so far: 43.0
If we take 114 away from 130, we end up with 16.
Include the next digit (4) from the dividend after 16, then repeat: 164 / 38

Moving on to step 5:
If we divide 164 by 38, we get 4 and a remainder of 12.
Write down 4 as next digit of the result. 
Result so far: 434.0
Subtract 152 from 164 to get 12.
Fetch the next digit (7) from the dividend, attach it to 12 and continue: 127 / 38

Moving on to step 6:
The number 38 fits into 127 3 times, leaving a remainder of 13.
Write down 3 as next digit of the result. 
Result so far: 4343.0
If we subtract 114 from 127, we get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Step 7:
38 can be fit into 130 3 times, resulting in a remainder of 16.
The number 3 becomes the next digit in our result. 
Result so far: 4343.3
Subtracting 114 from 130 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Advancing to step 8:
When dividing 160 by 38, we get 4 with a remainder of 8.
The next digit of our result is 4. 
Result so far: 4343.34
Deduct 152 from 160 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.

Let's proceed to step 9:
80 divided by 38 is 2 with a remainder of 4.
The number 2 becomes the next digit in our result. 
Result so far: 4343.342
Deduct 76 from 80 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 10:
40 divided by 38 is 1 with a remainder of 2.
The number 1 becomes the next digit in our result. 
Result so far: 4343.3421
Deduct 38 from 40 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.

Let's proceed to step 11:
When dividing 20 by 38, we get 0 with a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 4343.3421
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.

Going ahead to step 12:
If we divide 200 by 38, we get 5 and a remainder of 10.
Write down 5 as next digit of the result. 
Result so far: 4343.342105
If we take 190 away from 200, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 13:
100 divided by 38 is 2 with a remainder of 24.
The number 2 becomes the next digit in our result. 
Result so far: 4343.3421052
Subtracting 76 from 100 leaves us 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.

Moving on to step 14:
38 goes into 240 6 times with a remainder of 12.
Put 6 as the next digit of the answer. 
Result so far: 4343.34210526
If we subtract 228 from 240, we get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

The quotient of the division is 4343.34210526, and the remainder is 1.2e-08.