We look at the division of 50670872 by 145 
The aim is to understand the frequency of 145 in 50670872.

Moving on to step 1:
The number 145 fits into 5 0 times, leaving a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Bring next digit (0) of the dividend behind the 5 and repeat the process: 50 / 145

On to step 2:
If we divide 50 by 145, we get 0 and a remainder of 50.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 50 to get 50.
Fetch the next digit (6) from the dividend, attach it to 50 and continue: 506 / 145

Moving on to step 3:
145 can be fit into 506 3 times, resulting in a remainder of 71.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
Subtract 435 from 506 to get 71.
Take the next digit (7) from the dividend and append it to 71, then repeat: 717 / 145

Let's proceed to step 4:
717 divided by 145 is 4 with a remainder of 137.
Use 4 as the next digit of our solution. 
Result so far: 34.0
Subtract 580 from 717 to get 137.
Grab the next digit (0) from the dividend, add it to 137, then carry on: 1370 / 145

On to step 5:
If we divide 1370 by 145, we get 9 and a remainder of 65.
The number 9 becomes the next digit in our result. 
Result so far: 349.0
If we subtract 1305 from 1370, we get 65.
Take the next digit (8) from the dividend and append it to 65, then repeat: 658 / 145

Moving on to step 6:
If we divide 658 by 145, we get 4 and a remainder of 78.
The number 4 becomes the next digit in our result. 
Result so far: 3494.0
The remainder is 78 after subtracting 580 from 658.
Append the next digit (7) from the dividend to 78 and continue with: 787 / 145

Going ahead to step 7:
When dividing 787 by 145, we get 5 with a remainder of 62.
Use 5 as the next digit of our solution. 
Result so far: 34945.0
Subtract 725 from 787 to get 62.
Bring next digit (2) of the dividend behind the 62 and repeat the process: 622 / 145

On to step 8:
145 goes into 622 4 times with a remainder of 42.
The number 4 becomes the next digit in our result. 
Result so far: 349454.0
Subtract 580 from 622 to get 42.
Since there are no more digits in the dividend, we add a zero to the remainder making it 420, and continue the process.

Moving on to step 9:
145 goes into 420 2 times with a remainder of 130.
Put 2 as the next digit of the answer. 
Result so far: 349454.2
If we subtract 290 from 420, we get 130.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1300, and continue the process.

On to step 10:
The number 145 fits into 1300 8 times, leaving a remainder of 140.
Record the quotient 8 as the next digit in the result. 
Result so far: 349454.28
Subtract 1160 from 1300 to get 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1400, and continue the process.

On to step 11:
The number 145 fits into 1400 9 times, leaving a remainder of 95.
Record the quotient 9 as the next digit in the result. 
Result so far: 349454.289
If we take 1305 away from 1400, we end up with 95.
Since there are no more digits in the dividend, we add a zero to the remainder making it 950, and continue the process.

Going ahead to step 12:
The number 145 fits into 950 6 times, leaving a remainder of 80.
Put 6 as the next digit of the answer. 
Result so far: 349454.2896
Deduct 870 from 950 and we're left with 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 13:
When dividing 800 by 145, we get 5 with a remainder of 75.
The next digit of our result is 5. 
Result so far: 349454.28965
Deduct 725 from 800 and we're left with 75.
Since there are no more digits in the dividend, we add a zero to the remainder making it 750, and continue the process.

On to step 14:
When dividing 750 by 145, we get 5 with a remainder of 25.
Use 5 as the next digit of our solution. 
Result so far: 349454.289655
The remainder is 25 after subtracting 725 from 750.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

After the division, we end up with 349454.289655 and a remainder of 2.5e-06.