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

Going ahead to step 1:
38 goes into 5 0 times with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Include the next digit (0) from the dividend after 5, then repeat: 50 / 38

Let's proceed to step 2:
38 goes into 50 1 times with a remainder of 12.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtracting 38 from 50 leaves us with 12.
Take the next digit (6) from the dividend and append it to 12, then repeat: 126 / 38

Let's proceed to step 3:
If we divide 126 by 38, we get 3 and a remainder of 12.
The number 3 becomes the next digit in our result. 
Result so far: 13.0
The remainder is 12 after subtracting 114 from 126.
Fetch the next digit (0) from the dividend, attach it to 12 and continue: 120 / 38

On to step 4:
If we divide 120 by 38, we get 3 and a remainder of 6.
Write down 3 as next digit of the result. 
Result so far: 133.0
Deduct 114 from 120 and we're left with 6.
Grab the next digit (6) from the dividend, add it to 6, then carry on: 66 / 38

Going ahead to step 5:
66 divided by 38 is 1 with a remainder of 28.
Use 1 as the next digit of our solution. 
Result so far: 1331.0
Subtract 38 from 66 to get 28.
Grab the next digit (1) from the dividend, add it to 28, then carry on: 281 / 38

On to step 6:
38 can be fit into 281 7 times, resulting in a remainder of 15.
Use 7 as the next digit of our solution. 
Result so far: 13317.0
If we take 266 away from 281, we end up with 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 7:
150 divided by 38 is 3 with a remainder of 36.
Put 3 as the next digit of the answer. 
Result so far: 13317.3
Subtracting 114 from 150 leaves us with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Moving on to step 8:
38 goes into 360 9 times with a remainder of 18.
The number 9 becomes the next digit in our result. 
Result so far: 13317.39
If we subtract 342 from 360, we get 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Moving on to step 9:
38 can be fit into 180 4 times, resulting in a remainder of 28.
The next digit of our result is 4. 
Result so far: 13317.394
The remainder is 28 after subtracting 152 from 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Step 10:
38 goes into 280 7 times with a remainder of 14.
Put 7 as the next digit of the answer. 
Result so far: 13317.3947
Subtracting 266 from 280 leaves us 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.

Step 11:
38 goes into 140 3 times with a remainder of 26.
The next digit of our result is 3. 
Result so far: 13317.39473
The remainder is 26 after subtracting 114 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Moving on to step 12:
The number 38 fits into 260 6 times, leaving a remainder of 32.
Write down 6 as next digit of the result. 
Result so far: 13317.394736
Deduct 228 from 260 and we're left 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.

Moving on to step 13:
If we divide 320 by 38, we get 8 and a remainder of 16.
Write down 8 as next digit of the result. 
Result so far: 13317.3947368
If we subtract 304 from 320, 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 14:
38 can be fit into 160 4 times, resulting in a remainder of 8.
The next digit of our result is 4. 
Result so far: 13317.39473684
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.

Our division results in 13317.39473684 with a remaining 8e-09.