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

On to step 1:
If we divide 3 by 31, we get 0 and a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Grab the next digit (1) from the dividend, add it to 3, then carry on: 31 / 31

Let's proceed to step 2:
When dividing 31 by 31, we get 1 with a remainder of 0.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtract 31 from 31 to get 0.
Include the next digit (9) from the dividend after 0, then repeat: 9 / 31

Moving on to step 3:
The number 31 fits into 9 0 times, leaving a remainder of 9.
The number 0 becomes the next digit in our result. 
Result so far: 10.0
Subtract 0 from 9 to get 9.
Take the next digit (5) from the dividend and append it to 9, then repeat: 95 / 31

Advancing to step 4:
If we divide 95 by 31, we get 3 and a remainder of 2.
The next digit of our result is 3. 
Result so far: 103.0
Deduct 93 from 95 and we're left with 2.
Fetch the next digit (1) from the dividend, attach it to 2 and continue: 21 / 31

Let's proceed to step 5:
31 can be fit into 21 0 times, resulting in a remainder of 21.
The next digit of our result is 0. 
Result so far: 1030.0
Subtracting 0 from 21 leaves us with 21.
Fetch the next digit (6) from the dividend, attach it to 21 and continue: 216 / 31

Advancing to step 6:
If we divide 216 by 31, we get 6 and a remainder of 30.
Write down 6 as next digit of the result. 
Result so far: 10306.0
If we subtract 186 from 216, we 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.

On to step 7:
300 divided by 31 is 9 with a remainder of 21.
The number 9 becomes the next digit in our result. 
Result so far: 10306.9
Subtracting 279 from 300 leaves us 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.

On to step 8:
31 can be fit into 210 6 times, resulting in a remainder of 24.
Use 6 as the next digit of our solution. 
Result so far: 10306.96
Subtracting 186 from 210 leaves us 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.

Let's proceed to step 9:
When dividing 240 by 31, we get 7 with a remainder of 23.
Put 7 as the next digit of the answer. 
Result so far: 10306.967
Deduct 217 from 240 and we're left 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.

Moving on to step 10:
If we divide 230 by 31, we get 7 and a remainder of 13.
The next digit of our result is 7. 
Result so far: 10306.9677
If we take 217 away from 230, we end up 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.

The quotient of the division is 10306.9677, and the remainder is 0.00013.