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

On to step 1:
If we divide 6 by 166, we get 0 and a remainder of 6.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 6, we end up with 6.
Bring next digit (3) of the dividend behind the 6 and repeat the process: 63 / 166

On to step 2:
The number 166 fits into 63 0 times, leaving a remainder of 63.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 63 leaves us with 63.
Bring next digit (8) of the dividend behind the 63 and repeat the process: 638 / 166

On to step 3:
The number 166 fits into 638 3 times, leaving a remainder of 140.
The next digit of our result is 3. 
Result so far: 3.0
The remainder is 140 after subtracting 498 from 638.
Include the next digit (7) from the dividend after 140, then repeat: 1407 / 166

Going ahead to step 4:
166 can be fit into 1407 8 times, resulting in a remainder of 79.
Write down 8 as next digit of the result. 
Result so far: 38.0
If we take 1328 away from 1407, we end up with 79.
Fetch the next digit (2) from the dividend, attach it to 79 and continue: 792 / 166

Moving on to step 5:
If we divide 792 by 166, we get 4 and a remainder of 128.
The number 4 becomes the next digit in our result. 
Result so far: 384.0
Deduct 664 from 792 and we're left with 128.
Bring next digit (3) of the dividend behind the 128 and repeat the process: 1283 / 166

Going ahead to step 6:
When dividing 1283 by 166, we get 7 with a remainder of 121.
Write down 7 as next digit of the result. 
Result so far: 3847.0
If we subtract 1162 from 1283, we get 121.
Grab the next digit (7) from the dividend, add it to 121, then carry on: 1217 / 166

Advancing to step 7:
When dividing 1217 by 166, we get 7 with a remainder of 55.
Put 7 as the next digit of the answer. 
Result so far: 38477.0
Subtract 1162 from 1217 to get 55.
Since there are no more digits in the dividend, we add a zero to the remainder making it 550, and continue the process.

Moving on to step 8:
166 can be fit into 550 3 times, resulting in a remainder of 52.
Put 3 as the next digit of the answer. 
Result so far: 38477.3
Subtracting 498 from 550 leaves us with 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Moving on to step 9:
When dividing 520 by 166, we get 3 with a remainder of 22.
The next digit of our result is 3. 
Result so far: 38477.33
Deduct 498 from 520 and we're left with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

After the division, we end up with 38477.33 and a remainder of 0.022.