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

Going ahead to step 1:
7 divided by 31 is 0 with a remainder of 7.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 7 leaves us with 7.
Grab the next digit (9) from the dividend, add it to 7, then carry on: 79 / 31

On to step 2:
If we divide 79 by 31, we get 2 and a remainder of 17.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
The remainder is 17 after subtracting 62 from 79.
Grab the next digit (0) from the dividend, add it to 17, then carry on: 170 / 31

Step 3:
When dividing 170 by 31, we get 5 with a remainder of 15.
The number 5 becomes the next digit in our result. 
Result so far: 25.0
If we take 155 away from 170, we end up with 15.
Take the next digit (4) from the dividend and append it to 15, then repeat: 154 / 31

Moving on to step 4:
When dividing 154 by 31, we get 4 with a remainder of 30.
Write down 4 as next digit of the result. 
Result so far: 254.0
If we subtract 124 from 154, we get 30.
Grab the next digit (2) from the dividend, add it to 30, then carry on: 302 / 31

Step 5:
When dividing 302 by 31, we get 9 with a remainder of 23.
Put 9 as the next digit of the answer. 
Result so far: 2549.0
If we subtract 279 from 302, we get 23.
Grab the next digit (2) from the dividend, add it to 23, then carry on: 232 / 31

On to step 6:
The number 31 fits into 232 7 times, leaving a remainder of 15.
The next digit of our result is 7. 
Result so far: 25497.0
If we subtract 217 from 232, 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.

Moving on to step 7:
When dividing 150 by 31, we get 4 with a remainder of 26.
Write down 4 as next digit of the result. 
Result so far: 25497.4
Subtract 124 from 150 to get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 8:
260 divided by 31 is 8 with a remainder of 12.
Record the quotient 8 as the next digit in the result. 
Result so far: 25497.48
Subtract 248 from 260 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 9:
The number 31 fits into 120 3 times, leaving a remainder of 27.
The next digit of our result is 3. 
Result so far: 25497.483
Deduct 93 from 120 and we're left with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Going ahead to step 10:
31 can be fit into 270 8 times, resulting in a remainder of 22.
Use 8 as the next digit of our solution. 
Result so far: 25497.4838
Deduct 248 from 270 and we're left with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

On to step 11:
If we divide 220 by 31, we get 7 and a remainder of 3.
The number 7 becomes the next digit in our result. 
Result so far: 25497.48387
Subtract 217 from 220 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Moving on to step 12:
The number 31 fits into 30 0 times, leaving a remainder of 30.
The number 0 becomes the next digit in our result. 
Result so far: 25497.48387
Subtract 0 from 30 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 13:
31 goes into 300 9 times with a remainder of 21.
Write down 9 as next digit of the result. 
Result so far: 25497.4838709
If we subtract 279 from 300, we get 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Let's proceed to step 14:
The number 31 fits into 210 6 times, leaving a remainder of 24.
The number 6 becomes the next digit in our result. 
Result so far: 25497.48387096
If we subtract 186 from 210, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Our division results in 25497.48387096 with a remaining 2.4e-08.