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

On to step 1:
13 goes into 2 0 times with a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 2, we end up with 2.
Grab the next digit (7) from the dividend, add it to 2, then carry on: 27 / 13

Advancing to step 2:
27 divided by 13 is 2 with a remainder of 1.
The next digit of our result is 2. 
Result so far: 2.0
Deduct 26 from 27 and we're left with 1.
Include the next digit (1) from the dividend after 1, then repeat: 11 / 13

Going ahead to step 3:
If we divide 11 by 13, we get 0 and a remainder of 11.
The number 0 becomes the next digit in our result. 
Result so far: 20.0
Subtracting 0 from 11 leaves us with 11.
Include the next digit (2) from the dividend after 11, then repeat: 112 / 13

Going ahead to step 4:
If we divide 112 by 13, we get 8 and a remainder of 8.
Use 8 as the next digit of our solution. 
Result so far: 208.0
Subtract 104 from 112 to get 8.
Fetch the next digit (3) from the dividend, attach it to 8 and continue: 83 / 13

Let's proceed to step 5:
13 goes into 83 6 times with a remainder of 5.
The next digit of our result is 6. 
Result so far: 2086.0
Deduct 78 from 83 and we're left with 5.
Take the next digit (5) from the dividend and append it to 5, then repeat: 55 / 13

Advancing to step 6:
The number 13 fits into 55 4 times, leaving a remainder of 3.
Use 4 as the next digit of our solution. 
Result so far: 20864.0
If we subtract 52 from 55, we get 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:
When dividing 30 by 13, we get 2 with a remainder of 4.
Put 2 as the next digit of the answer. 
Result so far: 20864.2
Subtract 26 from 30 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 8:
13 can be fit into 40 3 times, resulting in a remainder of 1.
Put 3 as the next digit of the answer. 
Result so far: 20864.23
Deduct 39 from 40 and we're left 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.

Going ahead to step 9:
The number 13 fits into 10 0 times, leaving a remainder of 10.
Put 0 as the next digit of the answer. 
Result so far: 20864.23
Deduct 0 from 10 and we're left 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.

Step 10:
100 divided by 13 is 7 with a remainder of 9.
The number 7 becomes the next digit in our result. 
Result so far: 20864.2307
The remainder is 9 after subtracting 91 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Moving on to step 11:
13 goes into 90 6 times with a remainder of 12.
Write down 6 as next digit of the result. 
Result so far: 20864.23076
If we subtract 78 from 90, we 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.

Moving on to step 12:
13 goes into 120 9 times with a remainder of 3.
Record the quotient 9 as the next digit in the result. 
Result so far: 20864.230769
If we take 117 away from 120, 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.

Step 13:
13 can be fit into 30 2 times, resulting in a remainder of 4.
The next digit of our result is 2. 
Result so far: 20864.2307692
Subtracting 26 from 30 leaves us 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.

Going ahead to step 14:
13 goes into 40 3 times with a remainder of 1.
Write down 3 as next digit of the result. 
Result so far: 20864.23076923
If we take 39 away from 40, 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.

The final outcome is 20864.23076923, with a leftover of 1e-09.