We're dividing 39647 by 38 
The aim is to understand the frequency of 38 in 39647.

Advancing to step 1:
When dividing 3 by 38, we get 0 with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 3, we end up with 3.
Grab the next digit (9) from the dividend, add it to 3, then carry on: 39 / 38

On to step 2:
The number 38 fits into 39 1 times, leaving a remainder of 1.
The next digit of our result is 1. 
Result so far: 1.0
If we take 38 away from 39, we end up with 1.
Bring next digit (6) of the dividend behind the 1 and repeat the process: 16 / 38

On to step 3:
38 can be fit into 16 0 times, resulting in a remainder of 16.
The next digit of our result is 0. 
Result so far: 10.0
If we subtract 0 from 16, we get 16.
Include the next digit (4) from the dividend after 16, then repeat: 164 / 38

Advancing to step 4:
38 goes into 164 4 times with a remainder of 12.
Use 4 as the next digit of our solution. 
Result so far: 104.0
Subtracting 152 from 164 leaves us with 12.
Include the next digit (7) from the dividend after 12, then repeat: 127 / 38

On to step 5:
38 goes into 127 3 times with a remainder of 13.
Use 3 as the next digit of our solution. 
Result so far: 1043.0
If we subtract 114 from 127, we 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.

Advancing to step 6:
The number 38 fits into 130 3 times, leaving a remainder of 16.
Record the quotient 3 as the next digit in the result. 
Result so far: 1043.3
Subtract 114 from 130 to 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.

Advancing to step 7:
38 goes into 160 4 times with a remainder of 8.
Write down 4 as next digit of the result. 
Result so far: 1043.34
If we take 152 away from 160, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Step 8:
80 divided by 38 is 2 with a remainder of 4.
Put 2 as the next digit of the answer. 
Result so far: 1043.342
Subtract 76 from 80 to 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.

Advancing to step 9:
38 goes into 40 1 times with a remainder of 2.
The next digit of our result is 1. 
Result so far: 1043.3421
Subtract 38 from 40 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 10:
38 goes into 20 0 times with a remainder of 20.
The next digit of our result is 0. 
Result so far: 1043.3421
Subtract 0 from 20 to get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 11:
When dividing 200 by 38, we get 5 with a remainder of 10.
Record the quotient 5 as the next digit in the result. 
Result so far: 1043.342105
If we take 190 away from 200, we end up with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Going ahead to step 12:
100 divided by 38 is 2 with a remainder of 24.
Use 2 as the next digit of our solution. 
Result so far: 1043.3421052
The remainder is 24 after subtracting 76 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Advancing to step 13:
The number 38 fits into 240 6 times, leaving a remainder of 12.
The next digit of our result is 6. 
Result so far: 1043.34210526
If we take 228 away from 240, 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.

In conclusion, the division gives 1043.34210526 with a balance of 1.2e-08.