We look at the division of 904477 by 31 
The aim is to understand the frequency of 31 in 904477.

Let's proceed to step 1:
If we divide 9 by 31, we get 0 and a remainder of 9.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 9 to get 9.
Fetch the next digit (0) from the dividend, attach it to 9 and continue: 90 / 31

Let's proceed to step 2:
The number 31 fits into 90 2 times, leaving a remainder of 28.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Subtracting 62 from 90 leaves us with 28.
Fetch the next digit (4) from the dividend, attach it to 28 and continue: 284 / 31

Let's proceed to step 3:
284 divided by 31 is 9 with a remainder of 5.
Put 9 as the next digit of the answer. 
Result so far: 29.0
If we subtract 279 from 284, we get 5.
Take the next digit (4) from the dividend and append it to 5, then repeat: 54 / 31

Advancing to step 4:
If we divide 54 by 31, we get 1 and a remainder of 23.
Write down 1 as next digit of the result. 
Result so far: 291.0
The remainder is 23 after subtracting 31 from 54.
Bring next digit (7) of the dividend behind the 23 and repeat the process: 237 / 31

Going ahead to step 5:
The number 31 fits into 237 7 times, leaving a remainder of 20.
Use 7 as the next digit of our solution. 
Result so far: 2917.0
Subtract 217 from 237 to get 20.
Append the next digit (7) from the dividend to 20 and continue with: 207 / 31

Going ahead to step 6:
207 divided by 31 is 6 with a remainder of 21.
Put 6 as the next digit of the answer. 
Result so far: 29176.0
Deduct 186 from 207 and we're left with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Step 7:
31 goes into 210 6 times with a remainder of 24.
The number 6 becomes the next digit in our result. 
Result so far: 29176.6
If we take 186 away from 210, we end up 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.

Advancing to step 8:
31 can be fit into 240 7 times, resulting in a remainder of 23.
Write down 7 as next digit of the result. 
Result so far: 29176.67
If we take 217 away from 240, we end up with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Going ahead to step 9:
230 divided by 31 is 7 with a remainder of 13.
The number 7 becomes the next digit in our result. 
Result so far: 29176.677
Deduct 217 from 230 and we're left with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

In conclusion, the division gives 29176.677 with a balance of 0.0013.