We divide 518311 by 34
The aim is to understand the frequency of 34 in 518311.

Going ahead to step 1:
34 can be fit into 5 0 times, resulting in a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Append the next digit (1) from the dividend to 5 and continue with: 51 / 34

Going ahead to step 2:
When dividing 51 by 34, we get 1 with a remainder of 17.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtract 34 from 51 to get 17.
Fetch the next digit (8) from the dividend, attach it to 17 and continue: 178 / 34

Going ahead to step 3:
178 divided by 34 is 5 with a remainder of 8.
The number 5 becomes the next digit in our result. 
Result so far: 15.0
Deduct 170 from 178 and we're left with 8.
Grab the next digit (3) from the dividend, add it to 8, then carry on: 83 / 34

Moving on to step 4:
The number 34 fits into 83 2 times, leaving a remainder of 15.
Write down 2 as next digit of the result. 
Result so far: 152.0
If we take 68 away from 83, we end up with 15.
Append the next digit (1) from the dividend to 15 and continue with: 151 / 34

Going ahead to step 5:
34 can be fit into 151 4 times, resulting in a remainder of 15.
The next digit of our result is 4. 
Result so far: 1524.0
If we subtract 136 from 151, we get 15.
Append the next digit (1) from the dividend to 15 and continue with: 151 / 34

On to step 6:
151 divided by 34 is 4 with a remainder of 15.
The number 4 becomes the next digit in our result. 
Result so far: 15244.0
Subtracting 136 from 151 leaves us with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Moving on to step 7:
When dividing 150 by 34, we get 4 with a remainder of 14.
Put 4 as the next digit of the answer. 
Result so far: 15244.4
If we take 136 away from 150, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Advancing to step 8:
The number 34 fits into 140 4 times, leaving a remainder of 4.
Use 4 as the next digit of our solution. 
Result so far: 15244.44
Subtract 136 from 140 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.

After the division, we end up with 15244.44 and a remainder of 0.004.