Let's divide 506756 by 38
The aim is to understand the frequency of 38 in 506756.

On to step 1:
38 goes into 5 0 times with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 38

Let's proceed to step 2:
38 can be fit into 50 1 times, resulting in a remainder of 12.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtract 38 from 50 to get 12.
Grab the next digit (6) from the dividend, add it to 12, then carry on: 126 / 38

Step 3:
When dividing 126 by 38, we get 3 with a remainder of 12.
Write down 3 as next digit of the result. 
Result so far: 13.0
The remainder is 12 after subtracting 114 from 126.
Append the next digit (7) from the dividend to 12 and continue with: 127 / 38

Advancing to step 4:
The number 38 fits into 127 3 times, leaving a remainder of 13.
The number 3 becomes the next digit in our result. 
Result so far: 133.0
Deduct 114 from 127 and we're left with 13.
Include the next digit (5) from the dividend after 13, then repeat: 135 / 38

Moving on to step 5:
When dividing 135 by 38, we get 3 with a remainder of 21.
Use 3 as the next digit of our solution. 
Result so far: 1333.0
Subtract 114 from 135 to get 21.
Take the next digit (6) from the dividend and append it to 21, then repeat: 216 / 38

Moving on to step 6:
38 can be fit into 216 5 times, resulting in a remainder of 26.
Put 5 as the next digit of the answer. 
Result so far: 13335.0
If we take 190 away from 216, we end up with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Advancing to step 7:
38 goes into 260 6 times with a remainder of 32.
The number 6 becomes the next digit in our result. 
Result so far: 13335.6
Subtracting 228 from 260 leaves us with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Let's proceed to step 8:
38 goes into 320 8 times with a remainder of 16.
The number 8 becomes the next digit in our result. 
Result so far: 13335.68
Subtract 304 from 320 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.

On to step 9:
The number 38 fits into 160 4 times, leaving a remainder of 8.
Record the quotient 4 as the next digit in the result. 
Result so far: 13335.684
The remainder is 8 after subtracting 152 from 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 10:
80 divided by 38 is 2 with a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 13335.6842
The remainder is 4 after subtracting 76 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Let's proceed to step 11:
The number 38 fits into 40 1 times, leaving a remainder of 2.
The next digit of our result is 1. 
Result so far: 13335.68421
Subtracting 38 from 40 leaves us 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.

Advancing to step 12:
The number 38 fits into 20 0 times, leaving a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 13335.68421
Deduct 0 from 20 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 13:
200 divided by 38 is 5 with a remainder of 10.
Write down 5 as next digit of the result. 
Result so far: 13335.6842105
The remainder is 10 after subtracting 190 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Let's proceed to step 14:
If we divide 100 by 38, we get 2 and a remainder of 24.
Use 2 as the next digit of our solution. 
Result so far: 13335.68421052
Subtracting 76 from 100 leaves us with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Our division results in 13335.68421052 with a remaining 2.4e-08.