Let's divide 391031 by 45
The aim is to understand the frequency of 45 in 391031.

Step 1:
The number 45 fits into 3 0 times, leaving a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Include the next digit (9) from the dividend after 3, then repeat: 39 / 45

Step 2:
39 divided by 45 is 0 with a remainder of 39.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 39 to get 39.
Take the next digit (1) from the dividend and append it to 39, then repeat: 391 / 45

Advancing to step 3:
45 can be fit into 391 8 times, resulting in a remainder of 31.
The number 8 becomes the next digit in our result. 
Result so far: 8.0
If we subtract 360 from 391, we get 31.
Take the next digit (0) from the dividend and append it to 31, then repeat: 310 / 45

Going ahead to step 4:
45 can be fit into 310 6 times, resulting in a remainder of 40.
Use 6 as the next digit of our solution. 
Result so far: 86.0
Deduct 270 from 310 and we're left with 40.
Append the next digit (3) from the dividend to 40 and continue with: 403 / 45

Going ahead to step 5:
When dividing 403 by 45, we get 8 with a remainder of 43.
The number 8 becomes the next digit in our result. 
Result so far: 868.0
The remainder is 43 after subtracting 360 from 403.
Take the next digit (1) from the dividend and append it to 43, then repeat: 431 / 45

Step 6:
The number 45 fits into 431 9 times, leaving a remainder of 26.
The number 9 becomes the next digit in our result. 
Result so far: 8689.0
Subtracting 405 from 431 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.

On to step 7:
If we divide 260 by 45, we get 5 and a remainder of 35.
Put 5 as the next digit of the answer. 
Result so far: 8689.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.

Going ahead to step 8:
When dividing 350 by 45, we get 7 with a remainder of 35.
Write down 7 as next digit of the result. 
Result so far: 8689.57
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.

On to step 9:
350 divided by 45 is 7 with a remainder of 35.
Record the quotient 7 as the next digit in the result. 
Result so far: 8689.577
Subtract 315 from 350 to get 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 8689.577 with a remaining 0.0035.