We're dividing 40145150 by 271 
The aim is to understand the frequency of 271 in 40145150.

On to step 1:
When dividing 4 by 271, we get 0 with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 271

Moving on to step 2:
271 goes into 40 0 times with a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Grab the next digit (1) from the dividend, add it to 40, then carry on: 401 / 271

Step 3:
271 goes into 401 1 times with a remainder of 130.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we subtract 271 from 401, we get 130.
Take the next digit (4) from the dividend and append it to 130, then repeat: 1304 / 271

Going ahead to step 4:
271 can be fit into 1304 4 times, resulting in a remainder of 220.
The number 4 becomes the next digit in our result. 
Result so far: 14.0
If we subtract 1084 from 1304, we get 220.
Append the next digit (5) from the dividend to 220 and continue with: 2205 / 271

Let's proceed to step 5:
When dividing 2205 by 271, we get 8 with a remainder of 37.
Record the quotient 8 as the next digit in the result. 
Result so far: 148.0
If we take 2168 away from 2205, we end up with 37.
Bring next digit (1) of the dividend behind the 37 and repeat the process: 371 / 271

Step 6:
271 can be fit into 371 1 times, resulting in a remainder of 100.
Write down 1 as next digit of the result. 
Result so far: 1481.0
If we subtract 271 from 371, we get 100.
Grab the next digit (5) from the dividend, add it to 100, then carry on: 1005 / 271

On to step 7:
1005 divided by 271 is 3 with a remainder of 192.
The next digit of our result is 3. 
Result so far: 14813.0
Subtract 813 from 1005 to get 192.
Bring next digit (0) of the dividend behind the 192 and repeat the process: 1920 / 271

Going ahead to step 8:
1920 divided by 271 is 7 with a remainder of 23.
The next digit of our result is 7. 
Result so far: 148137.0
Subtract 1897 from 1920 to get 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Advancing to step 9:
The number 271 fits into 230 0 times, leaving a remainder of 230.
The next digit of our result is 0. 
Result so far: 148137.0
Subtract 0 from 230 to get 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2300, and continue the process.

Going ahead to step 10:
The number 271 fits into 2300 8 times, leaving a remainder of 132.
Record the quotient 8 as the next digit in the result. 
Result so far: 148137.08
Subtract 2168 from 2300 to get 132.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1320, and continue the process.

Going ahead to step 11:
271 can be fit into 1320 4 times, resulting in a remainder of 236.
Write down 4 as next digit of the result. 
Result so far: 148137.084
Subtracting 1084 from 1320 leaves us with 236.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2360, and continue the process.

Let's proceed to step 12:
If we divide 2360 by 271, we get 8 and a remainder of 192.
The next digit of our result is 8. 
Result so far: 148137.0848
Subtract 2168 from 2360 to get 192.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1920, and continue the process.

Let's proceed to step 13:
The number 271 fits into 1920 7 times, leaving a remainder of 23.
Use 7 as the next digit of our solution. 
Result so far: 148137.08487
If we take 1897 away from 1920, we end up with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Moving on to step 14:
271 can be fit into 230 0 times, resulting in a remainder of 230.
Put 0 as the next digit of the answer. 
Result so far: 148137.08487
Subtracting 0 from 230 leaves us with 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2300, and continue the process.

On to step 15:
2300 divided by 271 is 8 with a remainder of 132.
Put 8 as the next digit of the answer. 
Result so far: 148137.0848708
If we subtract 2168 from 2300, we get 132.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1320, and continue the process.

Going ahead to step 16:
When dividing 1320 by 271, we get 4 with a remainder of 236.
Put 4 as the next digit of the answer. 
Result so far: 148137.08487084
If we take 1084 away from 1320, we end up with 236.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2360, and continue the process.

The final result is 148137.08487084 with a remainder of 2.36e-07.