We look at the division of 157118 by 45 
The aim is to understand the frequency of 45 in 157118.

On to step 1:
1 divided by 45 is 0 with a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Grab the next digit (5) from the dividend, add it to 1, then carry on: 15 / 45

Advancing to step 2:
The number 45 fits into 15 0 times, leaving a remainder of 15.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 15 and we're left with 15.
Take the next digit (7) from the dividend and append it to 15, then repeat: 157 / 45

Going ahead to step 3:
45 can be fit into 157 3 times, resulting in a remainder of 22.
The number 3 becomes the next digit in our result. 
Result so far: 3.0
If we subtract 135 from 157, we get 22.
Append the next digit (1) from the dividend to 22 and continue with: 221 / 45

Going ahead to step 4:
If we divide 221 by 45, we get 4 and a remainder of 41.
The number 4 becomes the next digit in our result. 
Result so far: 34.0
Deduct 180 from 221 and we're left with 41.
Bring next digit (1) of the dividend behind the 41 and repeat the process: 411 / 45

Advancing to step 5:
45 goes into 411 9 times with a remainder of 6.
Put 9 as the next digit of the answer. 
Result so far: 349.0
Deduct 405 from 411 and we're left with 6.
Take the next digit (8) from the dividend and append it to 6, then repeat: 68 / 45

On to step 6:
45 can be fit into 68 1 times, resulting in a remainder of 23.
Write down 1 as next digit of the result. 
Result so far: 3491.0
Subtract 45 from 68 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.

Step 7:
If we divide 230 by 45, we get 5 and a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 3491.5
Subtract 225 from 230 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 8:
45 can be fit into 50 1 times, resulting in a remainder of 5.
Use 1 as the next digit of our solution. 
Result so far: 3491.51
Subtract 45 from 50 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 9:
When dividing 50 by 45, we get 1 with a remainder of 5.
Put 1 as the next digit of the answer. 
Result so far: 3491.511
Subtract 45 from 50 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

After the division, we end up with 3491.511 and a remainder of 0.0005.