We're dividing 40172371 by 171 
Let's see how many times 171 fits into 40172371.

On to step 1:
The number 171 fits into 4 0 times, leaving a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 171

Moving on to step 2:
171 can be fit into 40 0 times, resulting in a remainder of 40.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Append the next digit (1) from the dividend to 40 and continue with: 401 / 171

Advancing to step 3:
When dividing 401 by 171, we get 2 with a remainder of 59.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Subtract 342 from 401 to get 59.
Bring next digit (7) of the dividend behind the 59 and repeat the process: 597 / 171

Step 4:
The number 171 fits into 597 3 times, leaving a remainder of 84.
The next digit of our result is 3. 
Result so far: 23.0
If we subtract 513 from 597, we get 84.
Fetch the next digit (2) from the dividend, attach it to 84 and continue: 842 / 171

Going ahead to step 5:
171 goes into 842 4 times with a remainder of 158.
The number 4 becomes the next digit in our result. 
Result so far: 234.0
If we subtract 684 from 842, we get 158.
Append the next digit (3) from the dividend to 158 and continue with: 1583 / 171

Going ahead to step 6:
1583 divided by 171 is 9 with a remainder of 44.
The number 9 becomes the next digit in our result. 
Result so far: 2349.0
The remainder is 44 after subtracting 1539 from 1583.
Grab the next digit (7) from the dividend, add it to 44, then carry on: 447 / 171

On to step 7:
171 goes into 447 2 times with a remainder of 105.
Use 2 as the next digit of our solution. 
Result so far: 23492.0
If we take 342 away from 447, we end up with 105.
Grab the next digit (1) from the dividend, add it to 105, then carry on: 1051 / 171

Going ahead to step 8:
If we divide 1051 by 171, we get 6 and a remainder of 25.
Use 6 as the next digit of our solution. 
Result so far: 234926.0
Subtracting 1026 from 1051 leaves us with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

On to step 9:
When dividing 250 by 171, we get 1 with a remainder of 79.
Record the quotient 1 as the next digit in the result. 
Result so far: 234926.1
If we subtract 171 from 250, we get 79.
Since there are no more digits in the dividend, we add a zero to the remainder making it 790, and continue the process.

Step 10:
790 divided by 171 is 4 with a remainder of 106.
The number 4 becomes the next digit in our result. 
Result so far: 234926.14
Subtract 684 from 790 to get 106.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1060, and continue the process.

Step 11:
The number 171 fits into 1060 6 times, leaving a remainder of 34.
Put 6 as the next digit of the answer. 
Result so far: 234926.146
If we subtract 1026 from 1060, we get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

On to step 12:
340 divided by 171 is 1 with a remainder of 169.
Put 1 as the next digit of the answer. 
Result so far: 234926.1461
If we take 171 away from 340, we end up with 169.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1690, and continue the process.

Step 13:
171 can be fit into 1690 9 times, resulting in a remainder of 151.
Put 9 as the next digit of the answer. 
Result so far: 234926.14619
Subtract 1539 from 1690 to get 151.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1510, and continue the process.

On to step 14:
171 can be fit into 1510 8 times, resulting in a remainder of 142.
The number 8 becomes the next digit in our result. 
Result so far: 234926.146198
Subtracting 1368 from 1510 leaves us with 142.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1420, and continue the process.

On to step 15:
171 can be fit into 1420 8 times, resulting in a remainder of 52.
Put 8 as the next digit of the answer. 
Result so far: 234926.1461988
Deduct 1368 from 1420 and we're left 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.

In conclusion, the division gives 234926.1461988 with a balance of 5.2e-07.