581270 divided by 13 
The aim is to understand the frequency of 13 in 581270.

On to step 1:
13 goes into 5 0 times with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Bring next digit (8) of the dividend behind the 5 and repeat the process: 58 / 13

On to step 2:
58 divided by 13 is 4 with a remainder of 6.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
The remainder is 6 after subtracting 52 from 58.
Bring next digit (1) of the dividend behind the 6 and repeat the process: 61 / 13

Moving on to step 3:
The number 13 fits into 61 4 times, leaving a remainder of 9.
Put 4 as the next digit of the answer. 
Result so far: 44.0
If we subtract 52 from 61, we get 9.
Fetch the next digit (2) from the dividend, attach it to 9 and continue: 92 / 13

On to step 4:
The number 13 fits into 92 7 times, leaving a remainder of 1.
Put 7 as the next digit of the answer. 
Result so far: 447.0
The remainder is 1 after subtracting 91 from 92.
Bring next digit (7) of the dividend behind the 1 and repeat the process: 17 / 13

Moving on to step 5:
The number 13 fits into 17 1 times, leaving a remainder of 4.
The next digit of our result is 1. 
Result so far: 4471.0
Subtracting 13 from 17 leaves us with 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 13

Let's proceed to step 6:
40 divided by 13 is 3 with a remainder of 1.
The number 3 becomes the next digit in our result. 
Result so far: 44713.0
Subtract 39 from 40 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Step 7:
10 divided by 13 is 0 with a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 44713.0
If we subtract 0 from 10, we 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.

On to step 8:
13 can be fit into 100 7 times, resulting in a remainder of 9.
Write down 7 as next digit of the result. 
Result so far: 44713.07
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.

On to step 9:
When dividing 90 by 13, we get 6 with a remainder of 12.
Write down 6 as next digit of the result. 
Result so far: 44713.076
Deduct 78 from 90 and we're left with 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 10:
If we divide 120 by 13, we get 9 and a remainder of 3.
Record the quotient 9 as the next digit in the result. 
Result so far: 44713.0769
The remainder is 3 after subtracting 117 from 120.
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 11:
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: 44713.07692
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.

Step 12:
If we divide 40 by 13, we get 3 and a remainder of 1.
Put 3 as the next digit of the answer. 
Result so far: 44713.076923
Subtract 39 from 40 to get 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 13:
13 can be fit into 10 0 times, resulting in a remainder of 10.
The number 0 becomes the next digit in our result. 
Result so far: 44713.076923
If we subtract 0 from 10, we 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.

Moving on to step 14:
The number 13 fits into 100 7 times, leaving a remainder of 9.
Use 7 as the next digit of our solution. 
Result so far: 44713.07692307
Deduct 91 from 100 and we're left with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

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