Let's divide 340 by 13
The aim is to understand the frequency of 13 in 340.

Advancing to step 1:
When dividing 3 by 13, we get 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Fetch the next digit (4) from the dividend, attach it to 3 and continue: 34 / 13

Let's proceed to step 2:
The number 13 fits into 34 2 times, leaving a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 2.0
If we subtract 26 from 34, we get 8.
Take the next digit (0) from the dividend and append it to 8, then repeat: 80 / 13

Step 3:
The number 13 fits into 80 6 times, leaving a remainder of 2.
Record the quotient 6 as the next digit in the result. 
Result so far: 26.0
The remainder is 2 after subtracting 78 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 4:
13 can be fit into 20 1 times, resulting in a remainder of 7.
Put 1 as the next digit of the answer. 
Result so far: 26.1
Subtracting 13 from 20 leaves us 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.

Going ahead to step 5:
The number 13 fits into 70 5 times, leaving a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 26.15
If we take 65 away from 70, we end up with 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 6:
13 can be fit into 50 3 times, resulting in a remainder of 11.
Use 3 as the next digit of our solution. 
Result so far: 26.153
If we subtract 39 from 50, we get 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

On to step 7:
13 can be fit into 110 8 times, resulting in a remainder of 6.
Use 8 as the next digit of our solution. 
Result so far: 26.1538
The remainder is 6 after subtracting 104 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 8:
60 divided by 13 is 4 with a remainder of 8.
The next digit of our result is 4. 
Result so far: 26.15384
The remainder is 8 after subtracting 52 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 9:
13 goes into 80 6 times with a remainder of 2.
The next digit of our result is 6. 
Result so far: 26.153846
If we subtract 78 from 80, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 10:
13 goes into 20 1 times with a remainder of 7.
The next digit of our result is 1. 
Result so far: 26.1538461
If we take 13 away from 20, 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.

Let's proceed to step 11:
13 can be fit into 70 5 times, resulting in a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 26.15384615
Subtracting 65 from 70 leaves us with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

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