Let's divide 316821 by 19
The aim is to understand the frequency of 19 in 316821.

On to step 1:
3 divided by 19 is 0 with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Grab the next digit (1) from the dividend, add it to 3, then carry on: 31 / 19

Advancing to step 2:
The number 19 fits into 31 1 times, leaving a remainder of 12.
The next digit of our result is 1. 
Result so far: 1.0
Subtracting 19 from 31 leaves us with 12.
Take the next digit (6) from the dividend and append it to 12, then repeat: 126 / 19

Advancing to step 3:
126 divided by 19 is 6 with a remainder of 12.
Write down 6 as next digit of the result. 
Result so far: 16.0
Subtract 114 from 126 to get 12.
Append the next digit (8) from the dividend to 12 and continue with: 128 / 19

Advancing to step 4:
When dividing 128 by 19, we get 6 with a remainder of 14.
The number 6 becomes the next digit in our result. 
Result so far: 166.0
If we take 114 away from 128, we end up with 14.
Bring next digit (2) of the dividend behind the 14 and repeat the process: 142 / 19

Step 5:
When dividing 142 by 19, we get 7 with a remainder of 9.
Use 7 as the next digit of our solution. 
Result so far: 1667.0
The remainder is 9 after subtracting 133 from 142.
Grab the next digit (1) from the dividend, add it to 9, then carry on: 91 / 19

Going ahead to step 6:
19 can be fit into 91 4 times, resulting in a remainder of 15.
Record the quotient 4 as the next digit in the result. 
Result so far: 16674.0
Deduct 76 from 91 and we're left 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.

Step 7:
The number 19 fits into 150 7 times, leaving a remainder of 17.
Put 7 as the next digit of the answer. 
Result so far: 16674.7
If we take 133 away from 150, we end up with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Step 8:
19 can be fit into 170 8 times, resulting in a remainder of 18.
Write down 8 as next digit of the result. 
Result so far: 16674.78
If we subtract 152 from 170, we get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Advancing to step 9:
19 can be fit into 180 9 times, resulting in a remainder of 9.
Write down 9 as next digit of the result. 
Result so far: 16674.789
If we take 171 away from 180, we end up 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.

Advancing to step 10:
19 goes into 90 4 times with a remainder of 14.
Record the quotient 4 as the next digit in the result. 
Result so far: 16674.7894
Subtract 76 from 90 to get 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 11:
The number 19 fits into 140 7 times, leaving a remainder of 7.
The next digit of our result is 7. 
Result so far: 16674.78947
The remainder is 7 after subtracting 133 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Advancing to step 12:
The number 19 fits into 70 3 times, leaving a remainder of 13.
The next digit of our result is 3. 
Result so far: 16674.789473
Deduct 57 from 70 and we're left with 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Moving on to step 13:
When dividing 130 by 19, we get 6 with a remainder of 16.
Record the quotient 6 as the next digit in the result. 
Result so far: 16674.7894736
Deduct 114 from 130 and we're left with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Moving on to step 14:
If we divide 160 by 19, we get 8 and a remainder of 8.
Record the quotient 8 as the next digit in the result. 
Result so far: 16674.78947368
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.

The quotient of the division is 16674.78947368, and the remainder is 8e-09.