We divide 513013 by 9
The aim is to understand the frequency of 9 in 513013.

On to step 1:
The number 9 fits into 5 0 times, leaving a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Append the next digit (1) from the dividend to 5 and continue with: 51 / 9

Moving on to step 2:
If we divide 51 by 9, we get 5 and a remainder of 6.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
Deduct 45 from 51 and we're left with 6.
Grab the next digit (3) from the dividend, add it to 6, then carry on: 63 / 9

Moving on to step 3:
The number 9 fits into 63 7 times, leaving a remainder of 0.
The number 7 becomes the next digit in our result. 
Result so far: 57.0
If we subtract 63 from 63, we get 0.
Include the next digit (0) from the dividend after 0, then repeat: 0 / 9

Step 4:
The number 9 fits into 0 0 times, leaving a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 570.0
The remainder is 0 after subtracting 0 from 0.
Take the next digit (1) from the dividend and append it to 0, then repeat: 1 / 9

On to step 5:
9 can be fit into 1 0 times, resulting in a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 5700.0
If we take 0 away from 1, we end up with 1.
Bring next digit (3) of the dividend behind the 1 and repeat the process: 13 / 9

On to step 6:
9 goes into 13 1 times with a remainder of 4.
Write down 1 as next digit of the result. 
Result so far: 57001.0
Deduct 9 from 13 and we're left 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 7:
When dividing 40 by 9, we get 4 with a remainder of 4.
Record the quotient 4 as the next digit in the result. 
Result so far: 57001.4
The remainder is 4 after subtracting 36 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Step 8:
When dividing 40 by 9, we get 4 with a remainder of 4.
Write down 4 as next digit of the result. 
Result so far: 57001.44
If we take 36 away from 40, we end up 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.

In conclusion, the division gives 57001.44 with a balance of 0.004.