Let's divide 397719 by 17
The aim is to understand the frequency of 17 in 397719.

Going ahead to step 1:
3 divided by 17 is 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Bring next digit (9) of the dividend behind the 3 and repeat the process: 39 / 17

Moving on to step 2:
If we divide 39 by 17, we get 2 and a remainder of 5.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Deduct 34 from 39 and we're left with 5.
Take the next digit (7) from the dividend and append it to 5, then repeat: 57 / 17

On to step 3:
If we divide 57 by 17, we get 3 and a remainder of 6.
Record the quotient 3 as the next digit in the result. 
Result so far: 23.0
The remainder is 6 after subtracting 51 from 57.
Grab the next digit (7) from the dividend, add it to 6, then carry on: 67 / 17

On to step 4:
17 goes into 67 3 times with a remainder of 16.
Put 3 as the next digit of the answer. 
Result so far: 233.0
Deduct 51 from 67 and we're left with 16.
Append the next digit (1) from the dividend to 16 and continue with: 161 / 17

Moving on to step 5:
17 can be fit into 161 9 times, resulting in a remainder of 8.
Put 9 as the next digit of the answer. 
Result so far: 2339.0
The remainder is 8 after subtracting 153 from 161.
Take the next digit (9) from the dividend and append it to 8, then repeat: 89 / 17

Going ahead to step 6:
89 divided by 17 is 5 with a remainder of 4.
The next digit of our result is 5. 
Result so far: 23395.0
If we subtract 85 from 89, 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.

Going ahead to step 7:
When dividing 40 by 17, we get 2 with a remainder of 6.
The number 2 becomes the next digit in our result. 
Result so far: 23395.2
Subtracting 34 from 40 leaves us with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 8:
If we divide 60 by 17, we get 3 and a remainder of 9.
The number 3 becomes the next digit in our result. 
Result so far: 23395.23
Subtract 51 from 60 to 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.

Advancing to step 9:
90 divided by 17 is 5 with a remainder of 5.
Write down 5 as next digit of the result. 
Result so far: 23395.235
The remainder is 5 after subtracting 85 from 90.
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 10:
When dividing 50 by 17, we get 2 with a remainder of 16.
Put 2 as the next digit of the answer. 
Result so far: 23395.2352
If we subtract 34 from 50, we get 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 11:
The number 17 fits into 160 9 times, leaving a remainder of 7.
Put 9 as the next digit of the answer. 
Result so far: 23395.23529
Deduct 153 from 160 and we're left with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 12:
17 goes into 70 4 times with a remainder of 2.
The number 4 becomes the next digit in our result. 
Result so far: 23395.235294
If we take 68 away from 70, we end up 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.

Moving on to step 13:
When dividing 20 by 17, we get 1 with a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 23395.2352941
Deduct 17 from 20 and we're left with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 14:
The number 17 fits into 30 1 times, leaving a remainder of 13.
Record the quotient 1 as the next digit in the result. 
Result so far: 23395.23529411
Subtracting 17 from 30 leaves us 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.

After the division, we end up with 23395.23529411 and a remainder of 1.3e-08.