40598857 divided by 111 
We're looking to find how many times 111 goes into 40598857.

Let's proceed to step 1:
111 goes into 4 0 times with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 111

Moving on to step 2:
40 divided by 111 is 0 with a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Grab the next digit (5) from the dividend, add it to 40, then carry on: 405 / 111

On to step 3:
If we divide 405 by 111, we get 3 and a remainder of 72.
Use 3 as the next digit of our solution. 
Result so far: 3.0
Deduct 333 from 405 and we're left with 72.
Fetch the next digit (9) from the dividend, attach it to 72 and continue: 729 / 111

Moving on to step 4:
The number 111 fits into 729 6 times, leaving a remainder of 63.
Record the quotient 6 as the next digit in the result. 
Result so far: 36.0
Deduct 666 from 729 and we're left with 63.
Include the next digit (8) from the dividend after 63, then repeat: 638 / 111

On to step 5:
When dividing 638 by 111, we get 5 with a remainder of 83.
The number 5 becomes the next digit in our result. 
Result so far: 365.0
If we take 555 away from 638, we end up with 83.
Bring next digit (8) of the dividend behind the 83 and repeat the process: 838 / 111

Moving on to step 6:
When dividing 838 by 111, we get 7 with a remainder of 61.
Write down 7 as next digit of the result. 
Result so far: 3657.0
Subtracting 777 from 838 leaves us with 61.
Take the next digit (5) from the dividend and append it to 61, then repeat: 615 / 111

Step 7:
The number 111 fits into 615 5 times, leaving a remainder of 60.
The next digit of our result is 5. 
Result so far: 36575.0
Subtracting 555 from 615 leaves us with 60.
Grab the next digit (7) from the dividend, add it to 60, then carry on: 607 / 111

Moving on to step 8:
When dividing 607 by 111, we get 5 with a remainder of 52.
Record the quotient 5 as the next digit in the result. 
Result so far: 365755.0
Subtract 555 from 607 to get 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Let's proceed to step 9:
111 can be fit into 520 4 times, resulting in a remainder of 76.
Write down 4 as next digit of the result. 
Result so far: 365755.4
Deduct 444 from 520 and we're left with 76.
Since there are no more digits in the dividend, we add a zero to the remainder making it 760, and continue the process.

On to step 10:
111 goes into 760 6 times with a remainder of 94.
Use 6 as the next digit of our solution. 
Result so far: 365755.46
The remainder is 94 after subtracting 666 from 760.
Since there are no more digits in the dividend, we add a zero to the remainder making it 940, and continue the process.

Moving on to step 11:
When dividing 940 by 111, we get 8 with a remainder of 52.
Write down 8 as next digit of the result. 
Result so far: 365755.468
Deduct 888 from 940 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.

On to step 12:
When dividing 520 by 111, we get 4 with a remainder of 76.
Put 4 as the next digit of the answer. 
Result so far: 365755.4684
The remainder is 76 after subtracting 444 from 520.
Since there are no more digits in the dividend, we add a zero to the remainder making it 760, and continue the process.

On to step 13:
760 divided by 111 is 6 with a remainder of 94.
The number 6 becomes the next digit in our result. 
Result so far: 365755.46846
If we take 666 away from 760, we end up with 94.
Since there are no more digits in the dividend, we add a zero to the remainder making it 940, and continue the process.

Step 14:
940 divided by 111 is 8 with a remainder of 52.
Put 8 as the next digit of the answer. 
Result so far: 365755.468468
If we take 888 away from 940, we end up 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.

On to step 15:
The number 111 fits into 520 4 times, leaving a remainder of 76.
Record the quotient 4 as the next digit in the result. 
Result so far: 365755.4684684
Subtract 444 from 520 to 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.

On to step 16:
If we divide 760 by 111, we get 6 and a remainder of 94.
Write down 6 as next digit of the result. 
Result so far: 365755.46846846
If we subtract 666 from 760, we get 94.
Since there are no more digits in the dividend, we add a zero to the remainder making it 940, and continue the process.

The final result is 365755.46846846 with a remainder of 9.4e-08.