40111240 divided by 157 
We want to figure out the number of times 40111240 can be divided by 157.

Let's proceed to step 1:
If we divide 4 by 157, we get 0 and a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 157

Moving on to step 2:
When dividing 40 by 157, we get 0 with a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 40 to get 40.
Fetch the next digit (1) from the dividend, attach it to 40 and continue: 401 / 157

On to step 3:
The number 157 fits into 401 2 times, leaving a remainder of 87.
Use 2 as the next digit of our solution. 
Result so far: 2.0
The remainder is 87 after subtracting 314 from 401.
Include the next digit (1) from the dividend after 87, then repeat: 871 / 157

Moving on to step 4:
157 goes into 871 5 times with a remainder of 86.
The next digit of our result is 5. 
Result so far: 25.0
Subtracting 785 from 871 leaves us with 86.
Bring next digit (1) of the dividend behind the 86 and repeat the process: 861 / 157

Advancing to step 5:
When dividing 861 by 157, we get 5 with a remainder of 76.
The number 5 becomes the next digit in our result. 
Result so far: 255.0
Subtract 785 from 861 to get 76.
Include the next digit (2) from the dividend after 76, then repeat: 762 / 157

On to step 6:
The number 157 fits into 762 4 times, leaving a remainder of 134.
Put 4 as the next digit of the answer. 
Result so far: 2554.0
If we subtract 628 from 762, we get 134.
Append the next digit (4) from the dividend to 134 and continue with: 1344 / 157

Advancing to step 7:
157 can be fit into 1344 8 times, resulting in a remainder of 88.
Record the quotient 8 as the next digit in the result. 
Result so far: 25548.0
Subtract 1256 from 1344 to get 88.
Grab the next digit (0) from the dividend, add it to 88, then carry on: 880 / 157

On to step 8:
The number 157 fits into 880 5 times, leaving a remainder of 95.
The number 5 becomes the next digit in our result. 
Result so far: 255485.0
The remainder is 95 after subtracting 785 from 880.
Since there are no more digits in the dividend, we add a zero to the remainder making it 950, and continue the process.

Moving on to step 9:
950 divided by 157 is 6 with a remainder of 8.
Write down 6 as next digit of the result. 
Result so far: 255485.6
The remainder is 8 after subtracting 942 from 950.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 10:
80 divided by 157 is 0 with a remainder of 80.
The number 0 becomes the next digit in our result. 
Result so far: 255485.6
Subtract 0 from 80 to get 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

Going ahead to step 11:
When dividing 800 by 157, we get 5 with a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 255485.605
The remainder is 15 after subtracting 785 from 800.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Moving on to step 12:
The number 157 fits into 150 0 times, leaving a remainder of 150.
The number 0 becomes the next digit in our result. 
Result so far: 255485.605
If we take 0 away from 150, we end up with 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1500, and continue the process.

Going ahead to step 13:
The number 157 fits into 1500 9 times, leaving a remainder of 87.
Put 9 as the next digit of the answer. 
Result so far: 255485.60509
The remainder is 87 after subtracting 1413 from 1500.
Since there are no more digits in the dividend, we add a zero to the remainder making it 870, and continue the process.

Moving on to step 14:
870 divided by 157 is 5 with a remainder of 85.
Use 5 as the next digit of our solution. 
Result so far: 255485.605095
If we take 785 away from 870, we end up with 85.
Since there are no more digits in the dividend, we add a zero to the remainder making it 850, and continue the process.

On to step 15:
850 divided by 157 is 5 with a remainder of 65.
Record the quotient 5 as the next digit in the result. 
Result so far: 255485.6050955
Deduct 785 from 850 and we're left with 65.
Since there are no more digits in the dividend, we add a zero to the remainder making it 650, and continue the process.

In conclusion, the division gives 255485.6050955 with a balance of 6.5e-07.