397316 ÷ 45 
The aim is to understand the frequency of 45 in 397316.

Let's proceed to step 1:
45 can be fit into 3 0 times, resulting in a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Bring next digit (9) of the dividend behind the 3 and repeat the process: 39 / 45

Moving on to step 2:
The number 45 fits into 39 0 times, leaving a remainder of 39.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 39, we get 39.
Take the next digit (7) from the dividend and append it to 39, then repeat: 397 / 45

Let's proceed to step 3:
When dividing 397 by 45, we get 8 with a remainder of 37.
Put 8 as the next digit of the answer. 
Result so far: 8.0
The remainder is 37 after subtracting 360 from 397.
Take the next digit (3) from the dividend and append it to 37, then repeat: 373 / 45

Step 4:
If we divide 373 by 45, we get 8 and a remainder of 13.
The next digit of our result is 8. 
Result so far: 88.0
Subtracting 360 from 373 leaves us with 13.
Grab the next digit (1) from the dividend, add it to 13, then carry on: 131 / 45

Moving on to step 5:
131 divided by 45 is 2 with a remainder of 41.
The number 2 becomes the next digit in our result. 
Result so far: 882.0
If we subtract 90 from 131, we get 41.
Bring next digit (6) of the dividend behind the 41 and repeat the process: 416 / 45

Advancing to step 6:
The number 45 fits into 416 9 times, leaving a remainder of 11.
The next digit of our result is 9. 
Result so far: 8829.0
If we subtract 405 from 416, we get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

On to step 7:
110 divided by 45 is 2 with a remainder of 20.
The next digit of our result is 2. 
Result so far: 8829.2
Subtract 90 from 110 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Let's proceed to step 8:
45 goes into 200 4 times with a remainder of 20.
Use 4 as the next digit of our solution. 
Result so far: 8829.24
If we subtract 180 from 200, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Let's proceed to step 9:
If we divide 200 by 45, we get 4 and a remainder of 20.
The next digit of our result is 4. 
Result so far: 8829.244
If we take 180 away from 200, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

The final outcome is 8829.244, with a leftover of 0.002.