We look at the division of 511797 by 19 
The aim is to understand the frequency of 19 in 511797.

Going ahead to step 1:
The number 19 fits into 5 0 times, leaving a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Include the next digit (1) from the dividend after 5, then repeat: 51 / 19

Going ahead to step 2:
When dividing 51 by 19, we get 2 with a remainder of 13.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
The remainder is 13 after subtracting 38 from 51.
Include the next digit (1) from the dividend after 13, then repeat: 131 / 19

Let's proceed to step 3:
The number 19 fits into 131 6 times, leaving a remainder of 17.
Put 6 as the next digit of the answer. 
Result so far: 26.0
The remainder is 17 after subtracting 114 from 131.
Bring next digit (7) of the dividend behind the 17 and repeat the process: 177 / 19

On to step 4:
If we divide 177 by 19, we get 9 and a remainder of 6.
Write down 9 as next digit of the result. 
Result so far: 269.0
If we take 171 away from 177, we end up with 6.
Append the next digit (9) from the dividend to 6 and continue with: 69 / 19

Going ahead to step 5:
69 divided by 19 is 3 with a remainder of 12.
Record the quotient 3 as the next digit in the result. 
Result so far: 2693.0
The remainder is 12 after subtracting 57 from 69.
Take the next digit (7) from the dividend and append it to 12, then repeat: 127 / 19

On to step 6:
When dividing 127 by 19, we get 6 with a remainder of 13.
Use 6 as the next digit of our solution. 
Result so far: 26936.0
Subtract 114 from 127 to get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Going ahead to step 7:
If we divide 130 by 19, we get 6 and a remainder of 16.
The next digit of our result is 6. 
Result so far: 26936.6
The remainder is 16 after subtracting 114 from 130.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Let's proceed to step 8:
When dividing 160 by 19, we get 8 with a remainder of 8.
Write down 8 as next digit of the result. 
Result so far: 26936.68
Subtract 152 from 160 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 9:
If we divide 80 by 19, we get 4 and a remainder of 4.
The next digit of our result is 4. 
Result so far: 26936.684
Subtracting 76 from 80 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.

Moving on to step 10:
When dividing 40 by 19, we get 2 with a remainder of 2.
The next digit of our result is 2. 
Result so far: 26936.6842
Subtracting 38 from 40 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 11:
20 divided by 19 is 1 with a remainder of 1.
Use 1 as the next digit of our solution. 
Result so far: 26936.68421
Subtract 19 from 20 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.

Let's proceed to step 12:
When dividing 10 by 19, we get 0 with a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 26936.68421
The remainder is 10 after subtracting 0 from 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 13:
19 can be fit into 100 5 times, resulting in a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 26936.6842105
Deduct 95 from 100 and we're left with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

On to step 14:
50 divided by 19 is 2 with a remainder of 12.
Put 2 as the next digit of the answer. 
Result so far: 26936.68421052
Deduct 38 from 50 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.

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