40985341 ÷ 171 
We want to figure out the number of times 40985341 can be divided by 171.

Moving on to step 1:
If we divide 4 by 171, we get 0 and a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 171

Moving on to step 2:
40 divided by 171 is 0 with 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.
Fetch the next digit (9) from the dividend, attach it to 40 and continue: 409 / 171

Moving on to step 3:
171 can be fit into 409 2 times, resulting in a remainder of 67.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Subtract 342 from 409 to get 67.
Append the next digit (8) from the dividend to 67 and continue with: 678 / 171

On to step 4:
The number 171 fits into 678 3 times, leaving a remainder of 165.
Record the quotient 3 as the next digit in the result. 
Result so far: 23.0
The remainder is 165 after subtracting 513 from 678.
Include the next digit (5) from the dividend after 165, then repeat: 1655 / 171

Moving on to step 5:
When dividing 1655 by 171, we get 9 with a remainder of 116.
Record the quotient 9 as the next digit in the result. 
Result so far: 239.0
If we take 1539 away from 1655, we end up with 116.
Bring next digit (3) of the dividend behind the 116 and repeat the process: 1163 / 171

Step 6:
When dividing 1163 by 171, we get 6 with a remainder of 137.
The number 6 becomes the next digit in our result. 
Result so far: 2396.0
Subtract 1026 from 1163 to get 137.
Fetch the next digit (4) from the dividend, attach it to 137 and continue: 1374 / 171

Step 7:
171 goes into 1374 8 times with a remainder of 6.
Use 8 as the next digit of our solution. 
Result so far: 23968.0
If we take 1368 away from 1374, we end up with 6.
Fetch the next digit (1) from the dividend, attach it to 6 and continue: 61 / 171

Let's proceed to step 8:
The number 171 fits into 61 0 times, leaving a remainder of 61.
The number 0 becomes the next digit in our result. 
Result so far: 239680.0
Subtracting 0 from 61 leaves us with 61.
Since there are no more digits in the dividend, we add a zero to the remainder making it 610, and continue the process.

On to step 9:
The number 171 fits into 610 3 times, leaving a remainder of 97.
Record the quotient 3 as the next digit in the result. 
Result so far: 239680.3
If we take 513 away from 610, we end up with 97.
Since there are no more digits in the dividend, we add a zero to the remainder making it 970, and continue the process.

Moving on to step 10:
When dividing 970 by 171, we get 5 with a remainder of 115.
Record the quotient 5 as the next digit in the result. 
Result so far: 239680.35
Subtracting 855 from 970 leaves us with 115.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1150, and continue the process.

Step 11:
171 can be fit into 1150 6 times, resulting in a remainder of 124.
Put 6 as the next digit of the answer. 
Result so far: 239680.356
If we take 1026 away from 1150, we end up with 124.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1240, and continue the process.

Moving on to step 12:
1240 divided by 171 is 7 with a remainder of 43.
Use 7 as the next digit of our solution. 
Result so far: 239680.3567
Deduct 1197 from 1240 and we're left with 43.
Since there are no more digits in the dividend, we add a zero to the remainder making it 430, and continue the process.

Let's proceed to step 13:
The number 171 fits into 430 2 times, leaving a remainder of 88.
The number 2 becomes the next digit in our result. 
Result so far: 239680.35672
Subtract 342 from 430 to get 88.
Since there are no more digits in the dividend, we add a zero to the remainder making it 880, and continue the process.

On to step 14:
The number 171 fits into 880 5 times, leaving a remainder of 25.
Use 5 as the next digit of our solution. 
Result so far: 239680.356725
If we take 855 away from 880, we end up 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.

Let's proceed to step 15:
250 divided by 171 is 1 with a remainder of 79.
Write down 1 as next digit of the result. 
Result so far: 239680.3567251
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.

Advancing to step 16:
790 divided by 171 is 4 with a remainder of 106.
Record the quotient 4 as the next digit in the result. 
Result so far: 239680.35672514
Subtracting 684 from 790 leaves us with 106.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1060, and continue the process.

Our division results in 239680.35672514 with a remaining 1.06e-07.