400006 ÷ 13 
The aim is to understand the frequency of 13 in 400006.

Moving on to step 1:
13 goes into 4 0 times with a remainder of 4.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 13

Going ahead to step 2:
When dividing 40 by 13, we get 3 with a remainder of 1.
The number 3 becomes the next digit in our result. 
Result so far: 3.0
Subtract 39 from 40 to get 1.
Include the next digit (0) from the dividend after 1, then repeat: 10 / 13

Let's proceed to step 3:
The number 13 fits into 10 0 times, leaving a remainder of 10.
The next digit of our result is 0. 
Result so far: 30.0
The remainder is 10 after subtracting 0 from 10.
Grab the next digit (0) from the dividend, add it to 10, then carry on: 100 / 13

Let's proceed to step 4:
13 can be fit into 100 7 times, resulting in a remainder of 9.
The next digit of our result is 7. 
Result so far: 307.0
Subtract 91 from 100 to get 9.
Take the next digit (0) from the dividend and append it to 9, then repeat: 90 / 13

Let's proceed to step 5:
The number 13 fits into 90 6 times, leaving a remainder of 12.
The number 6 becomes the next digit in our result. 
Result so far: 3076.0
If we take 78 away from 90, we end up with 12.
Append the next digit (6) from the dividend to 12 and continue with: 126 / 13

On to step 6:
13 can be fit into 126 9 times, resulting in a remainder of 9.
The number 9 becomes the next digit in our result. 
Result so far: 30769.0
Subtracting 117 from 126 leaves us 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.

On to step 7:
13 goes into 90 6 times with a remainder of 12.
The number 6 becomes the next digit in our result. 
Result so far: 30769.6
Subtract 78 from 90 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.

Moving on to step 8:
13 goes into 120 9 times with a remainder of 3.
Write down 9 as next digit of the result. 
Result so far: 30769.69
If we subtract 117 from 120, 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.

Let's proceed to step 9:
If we divide 30 by 13, we get 2 and a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 30769.692
If we subtract 26 from 30, we 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.

Advancing to step 10:
If we divide 40 by 13, we get 3 and a remainder of 1.
Write down 3 as next digit of the result. 
Result so far: 30769.6923
If we subtract 39 from 40, we 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.

Advancing to step 11:
13 goes into 10 0 times with a remainder of 10.
The next digit of our result is 0. 
Result so far: 30769.6923
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.

Let's proceed to step 12:
When dividing 100 by 13, we get 7 with a remainder of 9.
Put 7 as the next digit of the answer. 
Result so far: 30769.692307
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.

Step 13:
When dividing 90 by 13, we get 6 with a remainder of 12.
Use 6 as the next digit of our solution. 
Result so far: 30769.6923076
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.

Moving on to step 14:
120 divided by 13 is 9 with a remainder of 3.
The next digit of our result is 9. 
Result so far: 30769.69230769
If we subtract 117 from 120, 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.

The final outcome is 30769.69230769, with a leftover of 3e-09.