We look at the division of 813178 by 39 
The aim is to understand the frequency of 39 in 813178.

On to step 1:
39 can be fit into 8 0 times, resulting in a remainder of 8.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 8 and we're left with 8.
Fetch the next digit (1) from the dividend, attach it to 8 and continue: 81 / 39

Step 2:
When dividing 81 by 39, we get 2 with a remainder of 3.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Subtracting 78 from 81 leaves us with 3.
Grab the next digit (3) from the dividend, add it to 3, then carry on: 33 / 39

Moving on to step 3:
33 divided by 39 is 0 with a remainder of 33.
Put 0 as the next digit of the answer. 
Result so far: 20.0
Deduct 0 from 33 and we're left with 33.
Grab the next digit (1) from the dividend, add it to 33, then carry on: 331 / 39

Step 4:
39 can be fit into 331 8 times, resulting in a remainder of 19.
Use 8 as the next digit of our solution. 
Result so far: 208.0
If we take 312 away from 331, we end up with 19.
Include the next digit (7) from the dividend after 19, then repeat: 197 / 39

Going ahead to step 5:
39 goes into 197 5 times with a remainder of 2.
Put 5 as the next digit of the answer. 
Result so far: 2085.0
Subtract 195 from 197 to get 2.
Fetch the next digit (8) from the dividend, attach it to 2 and continue: 28 / 39

Going ahead to step 6:
28 divided by 39 is 0 with a remainder of 28.
Put 0 as the next digit of the answer. 
Result so far: 20850.0
If we take 0 away from 28, we end up with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Step 7:
If we divide 280 by 39, we get 7 and a remainder of 7.
The number 7 becomes the next digit in our result. 
Result so far: 20850.7
If we take 273 away from 280, we end up 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.

Going ahead to step 8:
39 goes into 70 1 times with a remainder of 31.
Record the quotient 1 as the next digit in the result. 
Result so far: 20850.71
If we take 39 away from 70, we end up with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Step 9:
If we divide 310 by 39, we get 7 and a remainder of 37.
Write down 7 as next digit of the result. 
Result so far: 20850.717
The remainder is 37 after subtracting 273 from 310.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

Going ahead to step 10:
If we divide 370 by 39, we get 9 and a remainder of 19.
The number 9 becomes the next digit in our result. 
Result so far: 20850.7179
Subtract 351 from 370 to get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Moving on to step 11:
The number 39 fits into 190 4 times, leaving a remainder of 34.
Use 4 as the next digit of our solution. 
Result so far: 20850.71794
The remainder is 34 after subtracting 156 from 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Step 12:
340 divided by 39 is 8 with a remainder of 28.
The number 8 becomes the next digit in our result. 
Result so far: 20850.717948
Deduct 312 from 340 and we're left with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Going ahead to step 13:
280 divided by 39 is 7 with a remainder of 7.
The number 7 becomes the next digit in our result. 
Result so far: 20850.7179487
If we subtract 273 from 280, we get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Moving on to step 14:
The number 39 fits into 70 1 times, leaving a remainder of 31.
Use 1 as the next digit of our solution. 
Result so far: 20850.71794871
Subtracting 39 from 70 leaves us with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Our division results in 20850.71794871 with a remaining 3.1e-08.