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

Going ahead to step 1:
45 can be fit into 9 0 times, resulting in a remainder of 9.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 9 leaves us with 9.
Fetch the next digit (9) from the dividend, attach it to 9 and continue: 99 / 45

On to step 2:
45 can be fit into 99 2 times, resulting in a remainder of 9.
Use 2 as the next digit of our solution. 
Result so far: 2.0
If we take 90 away from 99, we end up with 9.
Grab the next digit (7) from the dividend, add it to 9, then carry on: 97 / 45

Advancing to step 3:
97 divided by 45 is 2 with a remainder of 7.
Record the quotient 2 as the next digit in the result. 
Result so far: 22.0
If we subtract 90 from 97, we get 7.
Take the next digit (7) from the dividend and append it to 7, then repeat: 77 / 45

Let's proceed to step 4:
When dividing 77 by 45, we get 1 with a remainder of 32.
The number 1 becomes the next digit in our result. 
Result so far: 221.0
Subtracting 45 from 77 leaves us with 32.
Take the next digit (8) from the dividend and append it to 32, then repeat: 328 / 45

Advancing to step 5:
45 goes into 328 7 times with a remainder of 13.
The number 7 becomes the next digit in our result. 
Result so far: 2217.0
If we take 315 away from 328, we end up with 13.
Fetch the next digit (6) from the dividend, attach it to 13 and continue: 136 / 45

Going ahead to step 6:
136 divided by 45 is 3 with a remainder of 1.
Record the quotient 3 as the next digit in the result. 
Result so far: 22173.0
Subtract 135 from 136 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 7:
10 divided by 45 is 0 with a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 22173.0
The remainder is 10 after subtracting 0 from 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 8:
When dividing 100 by 45, we get 2 with a remainder of 10.
Put 2 as the next digit of the answer. 
Result so far: 22173.02
Subtracting 90 from 100 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 9:
45 can be fit into 100 2 times, resulting in a remainder of 10.
Record the quotient 2 as the next digit in the result. 
Result so far: 22173.022
Deduct 90 from 100 and we're left with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Our division results in 22173.022 with a remaining 0.001.