We divide 4072731 by 157
The aim is to understand the frequency of 157 in 4072731.

Advancing to step 1:
The number 157 fits into 4 0 times, leaving a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 157

On to step 2:
157 goes into 40 0 times with a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Bring next digit (7) of the dividend behind the 40 and repeat the process: 407 / 157

Let's proceed to step 3:
157 goes into 407 2 times with a remainder of 93.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Deduct 314 from 407 and we're left with 93.
Take the next digit (2) from the dividend and append it to 93, then repeat: 932 / 157

On to step 4:
If we divide 932 by 157, we get 5 and a remainder of 147.
Record the quotient 5 as the next digit in the result. 
Result so far: 25.0
If we subtract 785 from 932, we get 147.
Bring next digit (7) of the dividend behind the 147 and repeat the process: 1477 / 157

On to step 5:
If we divide 1477 by 157, we get 9 and a remainder of 64.
Write down 9 as next digit of the result. 
Result so far: 259.0
Subtract 1413 from 1477 to get 64.
Grab the next digit (3) from the dividend, add it to 64, then carry on: 643 / 157

On to step 6:
When dividing 643 by 157, we get 4 with a remainder of 15.
Record the quotient 4 as the next digit in the result. 
Result so far: 2594.0
Subtracting 628 from 643 leaves us with 15.
Append the next digit (1) from the dividend to 15 and continue with: 151 / 157

Moving on to step 7:
If we divide 151 by 157, we get 0 and a remainder of 151.
The next digit of our result is 0. 
Result so far: 25940.0
If we subtract 0 from 151, we 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 8:
157 can be fit into 1510 9 times, resulting in a remainder of 97.
Use 9 as the next digit of our solution. 
Result so far: 25940.9
The remainder is 97 after subtracting 1413 from 1510.
Since there are no more digits in the dividend, we add a zero to the remainder making it 970, and continue the process.

Let's proceed to step 9:
If we divide 970 by 157, we get 6 and a remainder of 28.
Use 6 as the next digit of our solution. 
Result so far: 25940.96
Subtracting 942 from 970 leaves us with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Step 10:
The number 157 fits into 280 1 times, leaving a remainder of 123.
Record the quotient 1 as the next digit in the result. 
Result so far: 25940.961
Subtract 157 from 280 to get 123.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1230, and continue the process.

Step 11:
157 can be fit into 1230 7 times, resulting in a remainder of 131.
Use 7 as the next digit of our solution. 
Result so far: 25940.9617
If we take 1099 away from 1230, we end up with 131.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1310, and continue the process.

Advancing to step 12:
The number 157 fits into 1310 8 times, leaving a remainder of 54.
Record the quotient 8 as the next digit in the result. 
Result so far: 25940.96178
The remainder is 54 after subtracting 1256 from 1310.
Since there are no more digits in the dividend, we add a zero to the remainder making it 540, and continue the process.

Advancing to step 13:
The number 157 fits into 540 3 times, leaving a remainder of 69.
Record the quotient 3 as the next digit in the result. 
Result so far: 25940.961783
Subtract 471 from 540 to get 69.
Since there are no more digits in the dividend, we add a zero to the remainder making it 690, and continue the process.

Advancing to step 14:
If we divide 690 by 157, we get 4 and a remainder of 62.
Write down 4 as next digit of the result. 
Result so far: 25940.9617834
Subtract 628 from 690 to get 62.
Since there are no more digits in the dividend, we add a zero to the remainder making it 620, and continue the process.

Going ahead to step 15:
If we divide 620 by 157, we get 3 and a remainder of 149.
Put 3 as the next digit of the answer. 
Result so far: 25940.96178343
Subtract 471 from 620 to get 149.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1490, and continue the process.

Our division results in 25940.96178343 with a remaining 1.49e-07.