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

Advancing to step 1:
If we divide 5 by 45, we get 0 and a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 45

Let's proceed to step 2:
50 divided by 45 is 1 with a remainder of 5.
Put 1 as the next digit of the answer. 
Result so far: 1.0
If we subtract 45 from 50, we get 5.
Bring next digit (5) of the dividend behind the 5 and repeat the process: 55 / 45

Advancing to step 3:
When dividing 55 by 45, we get 1 with a remainder of 10.
Record the quotient 1 as the next digit in the result. 
Result so far: 11.0
The remainder is 10 after subtracting 45 from 55.
Take the next digit (8) from the dividend and append it to 10, then repeat: 108 / 45

On to step 4:
When dividing 108 by 45, we get 2 with a remainder of 18.
Write down 2 as next digit of the result. 
Result so far: 112.0
Subtract 90 from 108 to get 18.
Fetch the next digit (6) from the dividend, attach it to 18 and continue: 186 / 45

Let's proceed to step 5:
When dividing 186 by 45, we get 4 with a remainder of 6.
Record the quotient 4 as the next digit in the result. 
Result so far: 1124.0
Subtract 180 from 186 to get 6.
Bring next digit (1) of the dividend behind the 6 and repeat the process: 61 / 45

Advancing to step 6:
The number 45 fits into 61 1 times, leaving a remainder of 16.
The number 1 becomes the next digit in our result. 
Result so far: 11241.0
Subtract 45 from 61 to 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.

Let's proceed to 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: 11241.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:
250 divided by 45 is 5 with a remainder of 25.
The number 5 becomes the next digit in our result. 
Result so far: 11241.35
If we take 225 away from 250, we end up 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.

Going ahead to step 9:
250 divided by 45 is 5 with a remainder of 25.
The next digit of our result is 5. 
Result so far: 11241.355
Deduct 225 from 250 and we're left 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.

The final result is 11241.355 with a remainder of 0.0025.