We look at the division of 165157 by 47 
We're looking to find how many times 47 goes into 165157.

Step 1:
47 goes into 1 0 times with a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Include the next digit (6) from the dividend after 1, then repeat: 16 / 47

Advancing to step 2:
47 goes into 16 0 times with a remainder of 16.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 16, we end up with 16.
Take the next digit (5) from the dividend and append it to 16, then repeat: 165 / 47

Step 3:
47 can be fit into 165 3 times, resulting in a remainder of 24.
The next digit of our result is 3. 
Result so far: 3.0
Deduct 141 from 165 and we're left with 24.
Fetch the next digit (1) from the dividend, attach it to 24 and continue: 241 / 47

Advancing to step 4:
241 divided by 47 is 5 with a remainder of 6.
The number 5 becomes the next digit in our result. 
Result so far: 35.0
If we take 235 away from 241, we end up with 6.
Take the next digit (5) from the dividend and append it to 6, then repeat: 65 / 47

Going ahead to step 5:
The number 47 fits into 65 1 times, leaving a remainder of 18.
Record the quotient 1 as the next digit in the result. 
Result so far: 351.0
Subtracting 47 from 65 leaves us with 18.
Take the next digit (7) from the dividend and append it to 18, then repeat: 187 / 47

Step 6:
When dividing 187 by 47, we get 3 with a remainder of 46.
Write down 3 as next digit of the result. 
Result so far: 3513.0
If we subtract 141 from 187, we get 46.
Since there are no more digits in the dividend, we add a zero to the remainder making it 460, and continue the process.

Moving on to step 7:
47 goes into 460 9 times with a remainder of 37.
Record the quotient 9 as the next digit in the result. 
Result so far: 3513.9
The remainder is 37 after subtracting 423 from 460.
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 8:
When dividing 370 by 47, we get 7 with a remainder of 41.
Use 7 as the next digit of our solution. 
Result so far: 3513.97
The remainder is 41 after subtracting 329 from 370.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

Let's proceed to step 9:
47 can be fit into 410 8 times, resulting in a remainder of 34.
Use 8 as the next digit of our solution. 
Result so far: 3513.978
Subtracting 376 from 410 leaves us with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Let's proceed to step 10:
If we divide 340 by 47, we get 7 and a remainder of 11.
Use 7 as the next digit of our solution. 
Result so far: 3513.9787
Subtracting 329 from 340 leaves us 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.

Going ahead to step 11:
110 divided by 47 is 2 with a remainder of 16.
The next digit of our result is 2. 
Result so far: 3513.97872
If we take 94 away from 110, we end up 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.

Moving on to step 12:
47 goes into 160 3 times with a remainder of 19.
Put 3 as the next digit of the answer. 
Result so far: 3513.978723
Deduct 141 from 160 and we're left 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.

Moving on to step 13:
190 divided by 47 is 4 with a remainder of 2.
Record the quotient 4 as the next digit in the result. 
Result so far: 3513.9787234
Subtracting 188 from 190 leaves us 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.

On to step 14:
20 divided by 47 is 0 with a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 3513.9787234
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.

After the division, we end up with 3513.9787234 and a remainder of 2e-08.