505641 ÷ 38 
The aim is to understand the frequency of 38 in 505641.

Step 1:
When dividing 5 by 38, we get 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Bring next digit (0) of the dividend behind the 5 and repeat the process: 50 / 38

Advancing to step 2:
When dividing 50 by 38, we get 1 with a remainder of 12.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Deduct 38 from 50 and we're left with 12.
Append the next digit (5) from the dividend to 12 and continue with: 125 / 38

Going ahead to step 3:
125 divided by 38 is 3 with a remainder of 11.
Put 3 as the next digit of the answer. 
Result so far: 13.0
Deduct 114 from 125 and we're left with 11.
Fetch the next digit (6) from the dividend, attach it to 11 and continue: 116 / 38

Advancing to step 4:
When dividing 116 by 38, we get 3 with a remainder of 2.
The next digit of our result is 3. 
Result so far: 133.0
Subtracting 114 from 116 leaves us with 2.
Take the next digit (4) from the dividend and append it to 2, then repeat: 24 / 38

Going ahead to step 5:
38 goes into 24 0 times with a remainder of 24.
Record the quotient 0 as the next digit in the result. 
Result so far: 1330.0
Deduct 0 from 24 and we're left with 24.
Append the next digit (1) from the dividend to 24 and continue with: 241 / 38

Let's proceed to step 6:
38 can be fit into 241 6 times, resulting in a remainder of 13.
The next digit of our result is 6. 
Result so far: 13306.0
If we subtract 228 from 241, 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.

Step 7:
If we divide 130 by 38, we get 3 and a remainder of 16.
The next digit of our result is 3. 
Result so far: 13306.3
If we take 114 away from 130, we end up with 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 8:
38 goes into 160 4 times with a remainder of 8.
Write down 4 as next digit of the result. 
Result so far: 13306.34
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.

On to step 9:
The number 38 fits into 80 2 times, leaving a remainder of 4.
Put 2 as the next digit of the answer. 
Result so far: 13306.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.

Let's proceed to step 10:
40 divided by 38 is 1 with a remainder of 2.
The number 1 becomes the next digit in our result. 
Result so far: 13306.3421
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.

Going ahead to step 11:
38 can be fit into 20 0 times, resulting in a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 13306.3421
If we take 0 away from 20, we end up 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 12:
38 goes into 200 5 times with a remainder of 10.
Record the quotient 5 as the next digit in the result. 
Result so far: 13306.342105
Deduct 190 from 200 and we're left 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.

On to step 13:
100 divided by 38 is 2 with a remainder of 24.
Record the quotient 2 as the next digit in the result. 
Result so far: 13306.3421052
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.

Advancing to step 14:
When dividing 240 by 38, we get 6 with a remainder of 12.
Record the quotient 6 as the next digit in the result. 
Result so far: 13306.34210526
Subtract 228 from 240 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

The final result is 13306.34210526 with a remainder of 1.2e-08.