We're dividing 40275157 by 141 
The aim is to understand the frequency of 141 in 40275157.

On to step 1:
The number 141 fits into 4 0 times, leaving a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 141

Step 2:
When dividing 40 by 141, we get 0 with a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 40, we get 40.
Include the next digit (2) from the dividend after 40, then repeat: 402 / 141

On to step 3:
The number 141 fits into 402 2 times, leaving a remainder of 120.
Use 2 as the next digit of our solution. 
Result so far: 2.0
If we take 282 away from 402, we end up with 120.
Take the next digit (7) from the dividend and append it to 120, then repeat: 1207 / 141

On to step 4:
141 goes into 1207 8 times with a remainder of 79.
Use 8 as the next digit of our solution. 
Result so far: 28.0
If we subtract 1128 from 1207, we get 79.
Bring next digit (5) of the dividend behind the 79 and repeat the process: 795 / 141

Going ahead to step 5:
When dividing 795 by 141, we get 5 with a remainder of 90.
Use 5 as the next digit of our solution. 
Result so far: 285.0
Subtracting 705 from 795 leaves us with 90.
Grab the next digit (1) from the dividend, add it to 90, then carry on: 901 / 141

On to step 6:
If we divide 901 by 141, we get 6 and a remainder of 55.
The next digit of our result is 6. 
Result so far: 2856.0
Subtract 846 from 901 to get 55.
Fetch the next digit (5) from the dividend, attach it to 55 and continue: 555 / 141

Going ahead to step 7:
If we divide 555 by 141, we get 3 and a remainder of 132.
Use 3 as the next digit of our solution. 
Result so far: 28563.0
If we take 423 away from 555, we end up with 132.
Grab the next digit (7) from the dividend, add it to 132, then carry on: 1327 / 141

Advancing to step 8:
141 goes into 1327 9 times with a remainder of 58.
Write down 9 as next digit of the result. 
Result so far: 285639.0
Subtracting 1269 from 1327 leaves us with 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

Advancing to step 9:
If we divide 580 by 141, we get 4 and a remainder of 16.
Put 4 as the next digit of the answer. 
Result so far: 285639.4
If we take 564 away from 580, we end up with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Going ahead to step 10:
160 divided by 141 is 1 with a remainder of 19.
The next digit of our result is 1. 
Result so far: 285639.41
Subtract 141 from 160 to get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Advancing to step 11:
190 divided by 141 is 1 with a remainder of 49.
Put 1 as the next digit of the answer. 
Result so far: 285639.411
If we take 141 away from 190, we end up with 49.
Since there are no more digits in the dividend, we add a zero to the remainder making it 490, and continue the process.

After the division, we end up with 285639.411 and a remainder of 0.0049.