Let's divide 165299 by 38
We want to figure out the number of times 165299 can be divided by 38.

Let's proceed to step 1:
If we divide 1 by 38, we get 0 and a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Fetch the next digit (6) from the dividend, attach it to 1 and continue: 16 / 38

On to step 2:
When dividing 16 by 38, we get 0 with a remainder of 16.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 16 and we're left with 16.
Grab the next digit (5) from the dividend, add it to 16, then carry on: 165 / 38

On to step 3:
If we divide 165 by 38, we get 4 and a remainder of 13.
Put 4 as the next digit of the answer. 
Result so far: 4.0
Subtracting 152 from 165 leaves us with 13.
Grab the next digit (2) from the dividend, add it to 13, then carry on: 132 / 38

Going ahead to step 4:
132 divided by 38 is 3 with a remainder of 18.
Record the quotient 3 as the next digit in the result. 
Result so far: 43.0
If we subtract 114 from 132, we get 18.
Take the next digit (9) from the dividend and append it to 18, then repeat: 189 / 38

Step 5:
The number 38 fits into 189 4 times, leaving a remainder of 37.
Record the quotient 4 as the next digit in the result. 
Result so far: 434.0
Subtract 152 from 189 to get 37.
Take the next digit (9) from the dividend and append it to 37, then repeat: 379 / 38

Step 6:
38 can be fit into 379 9 times, resulting in a remainder of 37.
Use 9 as the next digit of our solution. 
Result so far: 4349.0
Subtract 342 from 379 to get 37.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Moving on to step 7:
370 divided by 38 is 9 with a remainder of 28.
Write down 9 as next digit of the result. 
Result so far: 4349.9
Subtracting 342 from 370 leaves us 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.

Step 8:
When dividing 280 by 38, we get 7 with a remainder of 14.
The next digit of our result is 7. 
Result so far: 4349.97
If we take 266 away from 280, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Moving on to step 9:
140 divided by 38 is 3 with a remainder of 26.
Put 3 as the next digit of the answer. 
Result so far: 4349.973
Deduct 114 from 140 and we're left with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Moving on to step 10:
38 can be fit into 260 6 times, resulting in a remainder of 32.
Use 6 as the next digit of our solution. 
Result so far: 4349.9736
The remainder is 32 after subtracting 228 from 260.
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 11:
38 goes into 320 8 times with a remainder of 16.
Record the quotient 8 as the next digit in the result. 
Result so far: 4349.97368
Subtract 304 from 320 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 12:
When dividing 160 by 38, we get 4 with a remainder of 8.
The next digit of our result is 4. 
Result so far: 4349.973684
The remainder is 8 after subtracting 152 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 13:
The number 38 fits into 80 2 times, leaving a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 4349.9736842
If we subtract 76 from 80, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 14:
38 can be fit into 40 1 times, resulting in a remainder of 2.
Use 1 as the next digit of our solution. 
Result so far: 4349.97368421
If we subtract 38 from 40, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

The quotient of the division is 4349.97368421, and the remainder is 2e-09.