We divide 345498 by 31
The aim is to understand the frequency of 31 in 345498.

Let's proceed to step 1:
When dividing 3 by 31, we get 0 with a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Grab the next digit (4) from the dividend, add it to 3, then carry on: 34 / 31

On to step 2:
When dividing 34 by 31, we get 1 with a remainder of 3.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we take 31 away from 34, we end up with 3.
Fetch the next digit (5) from the dividend, attach it to 3 and continue: 35 / 31

On to step 3:
If we divide 35 by 31, we get 1 and a remainder of 4.
Use 1 as the next digit of our solution. 
Result so far: 11.0
Deduct 31 from 35 and we're left with 4.
Take the next digit (4) from the dividend and append it to 4, then repeat: 44 / 31

Let's proceed to step 4:
31 can be fit into 44 1 times, resulting in a remainder of 13.
Put 1 as the next digit of the answer. 
Result so far: 111.0
If we take 31 away from 44, we end up with 13.
Fetch the next digit (9) from the dividend, attach it to 13 and continue: 139 / 31

Moving on to step 5:
31 goes into 139 4 times with a remainder of 15.
Write down 4 as next digit of the result. 
Result so far: 1114.0
Subtracting 124 from 139 leaves us with 15.
Append the next digit (8) from the dividend to 15 and continue with: 158 / 31

Moving on to step 6:
If we divide 158 by 31, we get 5 and a remainder of 3.
Use 5 as the next digit of our solution. 
Result so far: 11145.0
If we take 155 away from 158, we end up with 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 7:
30 divided by 31 is 0 with a remainder of 30.
Put 0 as the next digit of the answer. 
Result so far: 11145.0
If we subtract 0 from 30, 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.

Step 8:
If we divide 300 by 31, we get 9 and a remainder of 21.
Record the quotient 9 as the next digit in the result. 
Result so far: 11145.09
Subtract 279 from 300 to 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.

Advancing to step 9:
If we divide 210 by 31, we get 6 and a remainder of 24.
Use 6 as the next digit of our solution. 
Result so far: 11145.096
The remainder is 24 after subtracting 186 from 210.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

On to step 10:
31 goes into 240 7 times with a remainder of 23.
Put 7 as the next digit of the answer. 
Result so far: 11145.0967
If we subtract 217 from 240, we get 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 11:
230 divided by 31 is 7 with a remainder of 13.
Put 7 as the next digit of the answer. 
Result so far: 11145.09677
Deduct 217 from 230 and we're left 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.

Our division results in 11145.09677 with a remaining 1.3e-05.