6586645 divided by 166 
We're looking to find how many times 166 goes into 6586645.

Moving on to step 1:
166 can be fit into 6 0 times, resulting in a remainder of 6.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 6 leaves us with 6.
Fetch the next digit (5) from the dividend, attach it to 6 and continue: 65 / 166

Moving on to step 2:
65 divided by 166 is 0 with a remainder of 65.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 65 to get 65.
Grab the next digit (8) from the dividend, add it to 65, then carry on: 658 / 166

Going ahead to step 3:
The number 166 fits into 658 3 times, leaving a remainder of 160.
The number 3 becomes the next digit in our result. 
Result so far: 3.0
Subtracting 498 from 658 leaves us with 160.
Grab the next digit (6) from the dividend, add it to 160, then carry on: 1606 / 166

On to step 4:
When dividing 1606 by 166, we get 9 with a remainder of 112.
The number 9 becomes the next digit in our result. 
Result so far: 39.0
Subtracting 1494 from 1606 leaves us with 112.
Bring next digit (6) of the dividend behind the 112 and repeat the process: 1126 / 166

Moving on to step 5:
The number 166 fits into 1126 6 times, leaving a remainder of 130.
Put 6 as the next digit of the answer. 
Result so far: 396.0
If we subtract 996 from 1126, we get 130.
Append the next digit (4) from the dividend to 130 and continue with: 1304 / 166

Step 6:
If we divide 1304 by 166, we get 7 and a remainder of 142.
Record the quotient 7 as the next digit in the result. 
Result so far: 3967.0
If we subtract 1162 from 1304, we get 142.
Grab the next digit (5) from the dividend, add it to 142, then carry on: 1425 / 166

On to step 7:
166 can be fit into 1425 8 times, resulting in a remainder of 97.
The number 8 becomes the next digit in our result. 
Result so far: 39678.0
Subtract 1328 from 1425 to get 97.
Since there are no more digits in the dividend, we add a zero to the remainder making it 970, and continue the process.

Advancing to step 8:
The number 166 fits into 970 5 times, leaving a remainder of 140.
Write down 5 as next digit of the result. 
Result so far: 39678.5
The remainder is 140 after subtracting 830 from 970.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1400, and continue the process.

Step 9:
1400 divided by 166 is 8 with a remainder of 72.
Use 8 as the next digit of our solution. 
Result so far: 39678.58
The remainder is 72 after subtracting 1328 from 1400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

Going ahead to step 10:
The number 166 fits into 720 4 times, leaving a remainder of 56.
The number 4 becomes the next digit in our result. 
Result so far: 39678.584
The remainder is 56 after subtracting 664 from 720.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Step 11:
166 can be fit into 560 3 times, resulting in a remainder of 62.
Use 3 as the next digit of our solution. 
Result so far: 39678.5843
If we take 498 away from 560, we end up with 62.
Since there are no more digits in the dividend, we add a zero to the remainder making it 620, and continue the process.

On to step 12:
166 goes into 620 3 times with a remainder of 122.
The number 3 becomes the next digit in our result. 
Result so far: 39678.58433
Deduct 498 from 620 and we're left with 122.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1220, and continue the process.

The final outcome is 39678.58433, with a leftover of 0.000122.