31007574 divided by 166 
Our goal is to divide 31007574 by 166.

Advancing to step 1:
The number 166 fits into 3 0 times, leaving a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Take the next digit (1) from the dividend and append it to 3, then repeat: 31 / 166

Step 2:
31 divided by 166 is 0 with a remainder of 31.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 31, we get 31.
Bring next digit (0) of the dividend behind the 31 and repeat the process: 310 / 166

Let's proceed to step 3:
The number 166 fits into 310 1 times, leaving a remainder of 144.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtracting 166 from 310 leaves us with 144.
Take the next digit (0) from the dividend and append it to 144, then repeat: 1440 / 166

Advancing to step 4:
166 can be fit into 1440 8 times, resulting in a remainder of 112.
The number 8 becomes the next digit in our result. 
Result so far: 18.0
The remainder is 112 after subtracting 1328 from 1440.
Take the next digit (7) from the dividend and append it to 112, then repeat: 1127 / 166

Going ahead to step 5:
If we divide 1127 by 166, we get 6 and a remainder of 131.
Write down 6 as next digit of the result. 
Result so far: 186.0
If we take 996 away from 1127, we end up with 131.
Append the next digit (5) from the dividend to 131 and continue with: 1315 / 166

Advancing to step 6:
When dividing 1315 by 166, we get 7 with a remainder of 153.
Put 7 as the next digit of the answer. 
Result so far: 1867.0
Subtract 1162 from 1315 to get 153.
Grab the next digit (7) from the dividend, add it to 153, then carry on: 1537 / 166

Let's proceed to step 7:
166 can be fit into 1537 9 times, resulting in a remainder of 43.
Use 9 as the next digit of our solution. 
Result so far: 18679.0
If we subtract 1494 from 1537, we get 43.
Bring next digit (4) of the dividend behind the 43 and repeat the process: 434 / 166

Step 8:
166 goes into 434 2 times with a remainder of 102.
The next digit of our result is 2. 
Result so far: 186792.0
Deduct 332 from 434 and we're left with 102.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1020, and continue the process.

On to step 9:
1020 divided by 166 is 6 with a remainder of 24.
Write down 6 as next digit of the result. 
Result so far: 186792.6
If we take 996 away from 1020, we end up 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.

Advancing to step 10:
If we divide 240 by 166, we get 1 and a remainder of 74.
Put 1 as the next digit of the answer. 
Result so far: 186792.61
Subtracting 166 from 240 leaves us with 74.
Since there are no more digits in the dividend, we add a zero to the remainder making it 740, and continue the process.

Let's proceed to step 11:
166 goes into 740 4 times with a remainder of 76.
Put 4 as the next digit of the answer. 
Result so far: 186792.614
If we subtract 664 from 740, we get 76.
Since there are no more digits in the dividend, we add a zero to the remainder making it 760, and continue the process.

Going ahead to step 12:
When dividing 760 by 166, we get 4 with a remainder of 96.
Put 4 as the next digit of the answer. 
Result so far: 186792.6144
Subtracting 664 from 760 leaves us with 96.
Since there are no more digits in the dividend, we add a zero to the remainder making it 960, and continue the process.

Our division results in 186792.6144 with a remaining 0.00096.