We look at the division of 330731 by 17 
The aim is to understand the frequency of 17 in 330731.

On to step 1:
When dividing 3 by 17, we get 0 with a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Grab the next digit (3) from the dividend, add it to 3, then carry on: 33 / 17

Going ahead to step 2:
17 goes into 33 1 times with a remainder of 16.
The next digit of our result is 1. 
Result so far: 1.0
If we take 17 away from 33, we end up with 16.
Bring next digit (0) of the dividend behind the 16 and repeat the process: 160 / 17

Moving on to step 3:
The number 17 fits into 160 9 times, leaving a remainder of 7.
Write down 9 as next digit of the result. 
Result so far: 19.0
If we take 153 away from 160, we end up with 7.
Bring next digit (7) of the dividend behind the 7 and repeat the process: 77 / 17

On to step 4:
When dividing 77 by 17, we get 4 with a remainder of 9.
Use 4 as the next digit of our solution. 
Result so far: 194.0
If we take 68 away from 77, we end up with 9.
Fetch the next digit (3) from the dividend, attach it to 9 and continue: 93 / 17

On to step 5:
93 divided by 17 is 5 with a remainder of 8.
The next digit of our result is 5. 
Result so far: 1945.0
Subtract 85 from 93 to get 8.
Grab the next digit (1) from the dividend, add it to 8, then carry on: 81 / 17

Let's proceed to step 6:
When dividing 81 by 17, we get 4 with a remainder of 13.
Record the quotient 4 as the next digit in the result. 
Result so far: 19454.0
The remainder is 13 after subtracting 68 from 81.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Step 7:
17 goes into 130 7 times with a remainder of 11.
Put 7 as the next digit of the answer. 
Result so far: 19454.7
Subtracting 119 from 130 leaves us with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Let's proceed to step 8:
If we divide 110 by 17, we get 6 and a remainder of 8.
The number 6 becomes the next digit in our result. 
Result so far: 19454.76
If we subtract 102 from 110, we 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 17, we get 4 and a remainder of 12.
Record the quotient 4 as the next digit in the result. 
Result so far: 19454.764
If we take 68 away from 80, we end up 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.

Going ahead to step 10:
The number 17 fits into 120 7 times, leaving a remainder of 1.
Put 7 as the next digit of the answer. 
Result so far: 19454.7647
If we take 119 away from 120, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Advancing to step 11:
10 divided by 17 is 0 with a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 19454.7647
Subtract 0 from 10 to get 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 12:
When dividing 100 by 17, we get 5 with a remainder of 15.
Put 5 as the next digit of the answer. 
Result so far: 19454.764705
If we subtract 85 from 100, we get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Going ahead to step 13:
When dividing 150 by 17, we get 8 with a remainder of 14.
The number 8 becomes the next digit in our result. 
Result so far: 19454.7647058
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.

Moving on to step 14:
When dividing 140 by 17, we get 8 with a remainder of 4.
Record the quotient 8 as the next digit in the result. 
Result so far: 19454.76470588
If we take 136 away from 140, 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.

The final result is 19454.76470588 with a remainder of 4e-09.