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

On to step 1:
The number 45 fits into 5 0 times, leaving a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Include the next digit (8) from the dividend after 5, then repeat: 58 / 45

Going ahead to step 2:
45 can be fit into 58 1 times, resulting in a remainder of 13.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we subtract 45 from 58, we get 13.
Bring next digit (7) of the dividend behind the 13 and repeat the process: 137 / 45

Going ahead to step 3:
45 can be fit into 137 3 times, resulting in a remainder of 2.
Use 3 as the next digit of our solution. 
Result so far: 13.0
Subtracting 135 from 137 leaves us with 2.
Grab the next digit (1) from the dividend, add it to 2, then carry on: 21 / 45

Going ahead to step 4:
45 goes into 21 0 times with a remainder of 21.
Write down 0 as next digit of the result. 
Result so far: 130.0
If we take 0 away from 21, we end up with 21.
Append the next digit (4) from the dividend to 21 and continue with: 214 / 45

Advancing to step 5:
If we divide 214 by 45, we get 4 and a remainder of 34.
The next digit of our result is 4. 
Result so far: 1304.0
Subtracting 180 from 214 leaves us with 34.
Include the next digit (1) from the dividend after 34, then repeat: 341 / 45

Moving on to step 6:
When dividing 341 by 45, we get 7 with a remainder of 26.
The number 7 becomes the next digit in our result. 
Result so far: 13047.0
Subtracting 315 from 341 leaves us with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Advancing to step 7:
260 divided by 45 is 5 with a remainder of 35.
The number 5 becomes the next digit in our result. 
Result so far: 13047.5
If we take 225 away from 260, we end up with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Step 8:
If we divide 350 by 45, we get 7 and a remainder of 35.
The number 7 becomes the next digit in our result. 
Result so far: 13047.57
Subtracting 315 from 350 leaves us with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

On to step 9:
The number 45 fits into 350 7 times, leaving a remainder of 35.
Record the quotient 7 as the next digit in the result. 
Result so far: 13047.577
If we take 315 away from 350, we end up with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Our division results in 13047.577 with a remaining 0.0035.