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

Going ahead to step 1:
45 can be fit into 4 0 times, resulting in a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 45

Going ahead to step 2:
If we divide 40 by 45, we get 0 and a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 40, we end up with 40.
Grab the next digit (2) from the dividend, add it to 40, then carry on: 402 / 45

Going ahead to step 3:
When dividing 402 by 45, we get 8 with a remainder of 42.
The next digit of our result is 8. 
Result so far: 8.0
Subtract 360 from 402 to get 42.
Grab the next digit (8) from the dividend, add it to 42, then carry on: 428 / 45

On to step 4:
428 divided by 45 is 9 with a remainder of 23.
Put 9 as the next digit of the answer. 
Result so far: 89.0
If we take 405 away from 428, we end up with 23.
Bring next digit (6) of the dividend behind the 23 and repeat the process: 236 / 45

Step 5:
236 divided by 45 is 5 with a remainder of 11.
Write down 5 as next digit of the result. 
Result so far: 895.0
The remainder is 11 after subtracting 225 from 236.
Append the next digit (4) from the dividend to 11 and continue with: 114 / 45

Step 6:
When dividing 114 by 45, we get 2 with a remainder of 24.
Use 2 as the next digit of our solution. 
Result so far: 8952.0
Deduct 90 from 114 and we're left with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

On to step 7:
If we divide 240 by 45, we get 5 and a remainder of 15.
Write down 5 as next digit of the result. 
Result so far: 8952.5
Subtract 225 from 240 to get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

On to step 8:
45 can be fit into 150 3 times, resulting in a remainder of 15.
Write down 3 as next digit of the result. 
Result so far: 8952.53
If we subtract 135 from 150, we get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Advancing to step 9:
If we divide 150 by 45, we get 3 and a remainder of 15.
The next digit of our result is 3. 
Result so far: 8952.533
If we subtract 135 from 150, we get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

The final result is 8952.533 with a remainder of 0.0015.