We're dividing 501316 by 45 
The aim is to understand the frequency of 45 in 501316.

Moving on to step 1:
45 goes into 5 0 times with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 45

Let's proceed to step 2:
50 divided by 45 is 1 with a remainder of 5.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we subtract 45 from 50, we get 5.
Append the next digit (1) from the dividend to 5 and continue with: 51 / 45

Going ahead to step 3:
45 can be fit into 51 1 times, resulting in a remainder of 6.
Write down 1 as next digit of the result. 
Result so far: 11.0
If we subtract 45 from 51, we get 6.
Include the next digit (3) from the dividend after 6, then repeat: 63 / 45

On to step 4:
45 can be fit into 63 1 times, resulting in a remainder of 18.
Put 1 as the next digit of the answer. 
Result so far: 111.0
Deduct 45 from 63 and we're left with 18.
Take the next digit (1) from the dividend and append it to 18, then repeat: 181 / 45

Going ahead to step 5:
The number 45 fits into 181 4 times, leaving a remainder of 1.
The number 4 becomes the next digit in our result. 
Result so far: 1114.0
If we subtract 180 from 181, we get 1.
Include the next digit (6) from the dividend after 1, then repeat: 16 / 45

Let's proceed to step 6:
If we divide 16 by 45, we get 0 and a remainder of 16.
The number 0 becomes the next digit in our result. 
Result so far: 11140.0
If we subtract 0 from 16, we get 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Step 7:
45 can be fit into 160 3 times, resulting in a remainder of 25.
The next digit of our result is 3. 
Result so far: 11140.3
Subtracting 135 from 160 leaves us with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

On to step 8:
The number 45 fits into 250 5 times, leaving a remainder of 25.
The number 5 becomes the next digit in our result. 
Result so far: 11140.35
If we subtract 225 from 250, we get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Advancing to step 9:
45 can be fit into 250 5 times, resulting in a remainder of 25.
Use 5 as the next digit of our solution. 
Result so far: 11140.355
If we subtract 225 from 250, we get 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

The final outcome is 11140.355, with a leftover of 0.0025.