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

Moving on to step 1:
31 can be fit into 3 0 times, resulting in a remainder of 3.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Grab the next digit (3) from the dividend, add it to 3, then carry on: 33 / 31

Moving on to step 2:
The number 31 fits into 33 1 times, leaving a remainder of 2.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Subtracting 31 from 33 leaves us with 2.
Bring next digit (8) of the dividend behind the 2 and repeat the process: 28 / 31

Going ahead to step 3:
When dividing 28 by 31, we get 0 with a remainder of 28.
Write down 0 as next digit of the result. 
Result so far: 10.0
Subtracting 0 from 28 leaves us with 28.
Take the next digit (0) from the dividend and append it to 28, then repeat: 280 / 31

Advancing to step 4:
When dividing 280 by 31, we get 9 with a remainder of 1.
Put 9 as the next digit of the answer. 
Result so far: 109.0
Subtract 279 from 280 to get 1.
Grab the next digit (6) from the dividend, add it to 1, then carry on: 16 / 31

Let's proceed to step 5:
When dividing 16 by 31, we get 0 with a remainder of 16.
Record the quotient 0 as the next digit in the result. 
Result so far: 1090.0
If we subtract 0 from 16, we get 16.
Append the next digit (6) from the dividend to 16 and continue with: 166 / 31

Moving on to step 6:
31 can be fit into 166 5 times, resulting in a remainder of 11.
Write down 5 as next digit of the result. 
Result so far: 10905.0
Subtracting 155 from 166 leaves us with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Going ahead to step 7:
110 divided by 31 is 3 with a remainder of 17.
The next digit of our result is 3. 
Result so far: 10905.3
Subtracting 93 from 110 leaves us with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

On to step 8:
If we divide 170 by 31, we get 5 and a remainder of 15.
The number 5 becomes the next digit in our result. 
Result so far: 10905.35
If we take 155 away from 170, we end up with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Step 9:
The number 31 fits into 150 4 times, leaving a remainder of 26.
The next digit of our result is 4. 
Result so far: 10905.354
Deduct 124 from 150 and we're left with 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 10:
The number 31 fits into 260 8 times, leaving a remainder of 12.
Record the quotient 8 as the next digit in the result. 
Result so far: 10905.3548
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.

Step 11:
120 divided by 31 is 3 with a remainder of 27.
Write down 3 as next digit of the result. 
Result so far: 10905.35483
Subtracting 93 from 120 leaves us 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.

Let's proceed to step 12:
The number 31 fits into 270 8 times, leaving a remainder of 22.
Write down 8 as next digit of the result. 
Result so far: 10905.354838
Subtracting 248 from 270 leaves us 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.

Moving on to step 13:
When dividing 220 by 31, we get 7 with a remainder of 3.
The next digit of our result is 7. 
Result so far: 10905.3548387
The remainder is 3 after subtracting 217 from 220.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Going ahead to step 14:
When dividing 30 by 31, we get 0 with a remainder of 30.
Use 0 as the next digit of our solution. 
Result so far: 10905.3548387
The remainder is 30 after subtracting 0 from 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

The quotient of the division is 10905.3548387, and the remainder is 3e-08.