We're dividing 542370 by 13 
The aim is to understand the frequency of 13 in 542370.

On to step 1:
13 goes into 5 0 times with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Take the next digit (4) from the dividend and append it to 5, then repeat: 54 / 13

Moving on to step 2:
13 can be fit into 54 4 times, resulting in a remainder of 2.
Write down 4 as next digit of the result. 
Result so far: 4.0
If we take 52 away from 54, we end up with 2.
Fetch the next digit (2) from the dividend, attach it to 2 and continue: 22 / 13

Going ahead to step 3:
When dividing 22 by 13, we get 1 with a remainder of 9.
Write down 1 as next digit of the result. 
Result so far: 41.0
Subtract 13 from 22 to get 9.
Grab the next digit (3) from the dividend, add it to 9, then carry on: 93 / 13

On to step 4:
The number 13 fits into 93 7 times, leaving a remainder of 2.
Put 7 as the next digit of the answer. 
Result so far: 417.0
If we take 91 away from 93, we end up with 2.
Grab the next digit (7) from the dividend, add it to 2, then carry on: 27 / 13

Step 5:
The number 13 fits into 27 2 times, leaving a remainder of 1.
Write down 2 as next digit of the result. 
Result so far: 4172.0
If we take 26 away from 27, we end up with 1.
Fetch the next digit (0) from the dividend, attach it to 1 and continue: 10 / 13

Advancing to step 6:
10 divided by 13 is 0 with a remainder of 10.
Put 0 as the next digit of the answer. 
Result so far: 41720.0
Subtract 0 from 10 to get 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 7:
The number 13 fits into 100 7 times, leaving a remainder of 9.
Write down 7 as next digit of the result. 
Result so far: 41720.7
If we subtract 91 from 100, we get 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Going ahead to step 8:
90 divided by 13 is 6 with a remainder of 12.
Use 6 as the next digit of our solution. 
Result so far: 41720.76
The remainder is 12 after subtracting 78 from 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Going ahead to step 9:
13 can be fit into 120 9 times, resulting in a remainder of 3.
Record the quotient 9 as the next digit in the result. 
Result so far: 41720.769
Subtract 117 from 120 to 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.

Advancing to step 10:
When dividing 30 by 13, we get 2 with a remainder of 4.
The next digit of our result is 2. 
Result so far: 41720.7692
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.

Step 11:
13 goes into 40 3 times with a remainder of 1.
Put 3 as the next digit of the answer. 
Result so far: 41720.76923
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.

Going ahead to step 12:
When dividing 10 by 13, we get 0 with a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 41720.76923
Subtracting 0 from 10 leaves us 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.

Going ahead to step 13:
13 goes into 100 7 times with a remainder of 9.
The number 7 becomes the next digit in our result. 
Result so far: 41720.7692307
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 14:
90 divided by 13 is 6 with a remainder of 12.
Put 6 as the next digit of the answer. 
Result so far: 41720.76923076
The remainder is 12 after subtracting 78 from 90.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

The final result is 41720.76923076 with a remainder of 1.2e-08.