496948 divided by 31 
The aim is to understand the frequency of 31 in 496948.

On to step 1:
When dividing 4 by 31, we get 0 with 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.
Append the next digit (9) from the dividend to 4 and continue with: 49 / 31

Step 2:
If we divide 49 by 31, we get 1 and a remainder of 18.
The next digit of our result is 1. 
Result so far: 1.0
Deduct 31 from 49 and we're left with 18.
Append the next digit (6) from the dividend to 18 and continue with: 186 / 31

Going ahead to step 3:
186 divided by 31 is 6 with a remainder of 0.
Use 6 as the next digit of our solution. 
Result so far: 16.0
The remainder is 0 after subtracting 186 from 186.
Fetch the next digit (9) from the dividend, attach it to 0 and continue: 9 / 31

Let's proceed to step 4:
When dividing 9 by 31, we get 0 with a remainder of 9.
Record the quotient 0 as the next digit in the result. 
Result so far: 160.0
Deduct 0 from 9 and we're left with 9.
Take the next digit (4) from the dividend and append it to 9, then repeat: 94 / 31

Advancing to step 5:
31 goes into 94 3 times with a remainder of 1.
Use 3 as the next digit of our solution. 
Result so far: 1603.0
If we take 93 away from 94, we end up with 1.
Append the next digit (8) from the dividend to 1 and continue with: 18 / 31

Advancing to step 6:
31 can be fit into 18 0 times, resulting in a remainder of 18.
Use 0 as the next digit of our solution. 
Result so far: 16030.0
Deduct 0 from 18 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

On to step 7:
When dividing 180 by 31, we get 5 with a remainder of 25.
The next digit of our result is 5. 
Result so far: 16030.5
Deduct 155 from 180 and we're left with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Let's proceed to step 8:
250 divided by 31 is 8 with a remainder of 2.
Use 8 as the next digit of our solution. 
Result so far: 16030.58
Deduct 248 from 250 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 9:
The number 31 fits into 20 0 times, leaving a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 16030.58
Deduct 0 from 20 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 10:
When dividing 200 by 31, we get 6 with a remainder of 14.
The next digit of our result is 6. 
Result so far: 16030.5806
Deduct 186 from 200 and we're left with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Moving on to step 11:
The number 31 fits into 140 4 times, leaving a remainder of 16.
Record the quotient 4 as the next digit in the result. 
Result so far: 16030.58064
Subtracting 124 from 140 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Let's proceed to step 12:
160 divided by 31 is 5 with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 16030.580645
The remainder is 5 after subtracting 155 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 13:
31 goes into 50 1 times with a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 16030.5806451
Deduct 31 from 50 and we're left with 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Advancing to step 14:
190 divided by 31 is 6 with a remainder of 4.
The next digit of our result is 6. 
Result so far: 16030.58064516
Deduct 186 from 190 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

After the division, we end up with 16030.58064516 and a remainder of 4e-09.