We divide 40157 by 97
We're looking to find how many times 97 goes into 40157.

Moving on to step 1:
If we divide 4 by 97, we get 0 and a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 97

On to step 2:
When dividing 40 by 97, we get 0 with a remainder of 40.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 40, we end up with 40.
Bring next digit (1) of the dividend behind the 40 and repeat the process: 401 / 97

Moving on to step 3:
The number 97 fits into 401 4 times, leaving a remainder of 13.
Write down 4 as next digit of the result. 
Result so far: 4.0
Subtract 388 from 401 to get 13.
Include the next digit (5) from the dividend after 13, then repeat: 135 / 97

On to step 4:
97 goes into 135 1 times with a remainder of 38.
Record the quotient 1 as the next digit in the result. 
Result so far: 41.0
Subtract 97 from 135 to get 38.
Fetch the next digit (7) from the dividend, attach it to 38 and continue: 387 / 97

Advancing to step 5:
97 goes into 387 3 times with a remainder of 96.
Put 3 as the next digit of the answer. 
Result so far: 413.0
Subtracting 291 from 387 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.

Going ahead to step 6:
When dividing 960 by 97, we get 9 with a remainder of 87.
Record the quotient 9 as the next digit in the result. 
Result so far: 413.9
If we subtract 873 from 960, we get 87.
Since there are no more digits in the dividend, we add a zero to the remainder making it 870, and continue the process.

Advancing to step 7:
97 goes into 870 8 times with a remainder of 94.
The number 8 becomes the next digit in our result. 
Result so far: 413.98
Subtracting 776 from 870 leaves us 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.

Let's proceed to step 8:
97 can be fit into 940 9 times, resulting in a remainder of 67.
Record the quotient 9 as the next digit in the result. 
Result so far: 413.989
The remainder is 67 after subtracting 873 from 940.
Since there are no more digits in the dividend, we add a zero to the remainder making it 670, and continue the process.

Step 9:
670 divided by 97 is 6 with a remainder of 88.
Record the quotient 6 as the next digit in the result. 
Result so far: 413.9896
If we take 582 away from 670, we end up with 88.
Since there are no more digits in the dividend, we add a zero to the remainder making it 880, and continue the process.

Step 10:
97 goes into 880 9 times with a remainder of 7.
The next digit of our result is 9. 
Result so far: 413.98969
Subtracting 873 from 880 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Let's proceed to step 11:
70 divided by 97 is 0 with a remainder of 70.
The next digit of our result is 0. 
Result so far: 413.98969
The remainder is 70 after subtracting 0 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 700, and continue the process.

Let's proceed to step 12:
The number 97 fits into 700 7 times, leaving a remainder of 21.
Use 7 as the next digit of our solution. 
Result so far: 413.9896907
The remainder is 21 after subtracting 679 from 700.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Step 13:
210 divided by 97 is 2 with a remainder of 16.
Use 2 as the next digit of our solution. 
Result so far: 413.98969072
Subtract 194 from 210 to get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

After the division, we end up with 413.98969072 and a remainder of 1.6e-08.