We're dividing 476291 by 31 
The aim is to understand the frequency of 31 in 476291.

Advancing to step 1:
The number 31 fits into 4 0 times, leaving a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Fetch the next digit (7) from the dividend, attach it to 4 and continue: 47 / 31

Going ahead to step 2:
31 can be fit into 47 1 times, resulting in a remainder of 16.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtract 31 from 47 to get 16.
Include the next digit (6) from the dividend after 16, then repeat: 166 / 31

Let's proceed to step 3:
When dividing 166 by 31, we get 5 with a remainder of 11.
The number 5 becomes the next digit in our result. 
Result so far: 15.0
The remainder is 11 after subtracting 155 from 166.
Take the next digit (2) from the dividend and append it to 11, then repeat: 112 / 31

Going ahead to step 4:
The number 31 fits into 112 3 times, leaving a remainder of 19.
The next digit of our result is 3. 
Result so far: 153.0
The remainder is 19 after subtracting 93 from 112.
Bring next digit (9) of the dividend behind the 19 and repeat the process: 199 / 31

Advancing to step 5:
31 goes into 199 6 times with a remainder of 13.
The number 6 becomes the next digit in our result. 
Result so far: 1536.0
Subtracting 186 from 199 leaves us with 13.
Fetch the next digit (1) from the dividend, attach it to 13 and continue: 131 / 31

Let's proceed to step 6:
131 divided by 31 is 4 with a remainder of 7.
Put 4 as the next digit of the answer. 
Result so far: 15364.0
Subtracting 124 from 131 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 7:
When dividing 70 by 31, we get 2 with a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 15364.2
The remainder is 8 after subtracting 62 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 8:
If we divide 80 by 31, we get 2 and a remainder of 18.
Record the quotient 2 as the next digit in the result. 
Result so far: 15364.22
The remainder is 18 after subtracting 62 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

The quotient of the division is 15364.22, and the remainder is 0.018.