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

Step 1:
When dividing 1 by 31, we get 0 with a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Fetch the next digit (0) from the dividend, attach it to 1 and continue: 10 / 31

Going ahead to step 2:
31 can be fit into 10 0 times, resulting in a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 10, we get 10.
Fetch the next digit (2) from the dividend, attach it to 10 and continue: 102 / 31

Advancing to step 3:
31 goes into 102 3 times with a remainder of 9.
Write down 3 as next digit of the result. 
Result so far: 3.0
Deduct 93 from 102 and we're left with 9.
Bring next digit (6) of the dividend behind the 9 and repeat the process: 96 / 31

Moving on to step 4:
96 divided by 31 is 3 with a remainder of 3.
Write down 3 as next digit of the result. 
Result so far: 33.0
Subtract 93 from 96 to get 3.
Grab the next digit (4) from the dividend, add it to 3, then carry on: 34 / 31

On to step 5:
31 goes into 34 1 times with a remainder of 3.
The next digit of our result is 1. 
Result so far: 331.0
Subtracting 31 from 34 leaves us with 3.
Bring next digit (6) of the dividend behind the 3 and repeat the process: 36 / 31

Going ahead to step 6:
36 divided by 31 is 1 with a remainder of 5.
The next digit of our result is 1. 
Result so far: 3311.0
Subtract 31 from 36 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Advancing to step 7:
31 goes into 50 1 times with a remainder of 19.
Write down 1 as next digit of the result. 
Result so far: 3311.1
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.

Moving on to step 8:
31 can be fit into 190 6 times, resulting in a remainder of 4.
The next digit of our result is 6. 
Result so far: 3311.16
If we take 186 away from 190, we end up 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.

On to step 9:
31 goes into 40 1 times with a remainder of 9.
Use 1 as the next digit of our solution. 
Result so far: 3311.161
Subtracting 31 from 40 leaves us with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Step 10:
31 goes into 90 2 times with a remainder of 28.
Use 2 as the next digit of our solution. 
Result so far: 3311.1612
Deduct 62 from 90 and we're left with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Going ahead to step 11:
31 goes into 280 9 times with a remainder of 1.
Use 9 as the next digit of our solution. 
Result so far: 3311.16129
If we take 279 away from 280, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 12:
When dividing 10 by 31, we get 0 with a remainder of 10.
Put 0 as the next digit of the answer. 
Result so far: 3311.16129
Subtracting 0 from 10 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Moving on to step 13:
31 goes into 100 3 times with a remainder of 7.
Put 3 as the next digit of the answer. 
Result so far: 3311.1612903
If we take 93 away from 100, we end up 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.

Moving on to step 14:
31 can be fit into 70 2 times, resulting in a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 3311.16129032
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.

The final outcome is 3311.16129032, with a leftover of 8e-09.