We look at the division of 4790 by 38 
The aim is to understand the frequency of 38 in 4790.

On to step 1:
4 divided by 38 is 0 with a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Append the next digit (7) from the dividend to 4 and continue with: 47 / 38

Going ahead to step 2:
If we divide 47 by 38, we get 1 and a remainder of 9.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtract 38 from 47 to get 9.
Grab the next digit (9) from the dividend, add it to 9, then carry on: 99 / 38

On to step 3:
When dividing 99 by 38, we get 2 with a remainder of 23.
Record the quotient 2 as the next digit in the result. 
Result so far: 12.0
Deduct 76 from 99 and we're left with 23.
Grab the next digit (0) from the dividend, add it to 23, then carry on: 230 / 38

Going ahead to step 4:
The number 38 fits into 230 6 times, leaving a remainder of 2.
Write down 6 as next digit of the result. 
Result so far: 126.0
If we take 228 away from 230, we end up 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 5:
38 can be fit into 20 0 times, resulting in a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 126.0
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.

Let's proceed to step 6:
38 can be fit into 200 5 times, resulting in a remainder of 10.
The next digit of our result is 5. 
Result so far: 126.05
Subtracting 190 from 200 leaves us 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 7:
38 goes into 100 2 times with a remainder of 24.
Put 2 as the next digit of the answer. 
Result so far: 126.052
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.

On to step 8:
38 can be fit into 240 6 times, resulting in a remainder of 12.
Put 6 as the next digit of the answer. 
Result so far: 126.0526
If we subtract 228 from 240, we 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.

Advancing to step 9:
The number 38 fits into 120 3 times, leaving a remainder of 6.
The number 3 becomes the next digit in our result. 
Result so far: 126.05263
If we take 114 away from 120, we end up with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Going ahead to step 10:
When dividing 60 by 38, we get 1 with a remainder of 22.
Write down 1 as next digit of the result. 
Result so far: 126.052631
Subtracting 38 from 60 leaves us with 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Moving on to step 11:
If we divide 220 by 38, we get 5 and a remainder of 30.
The number 5 becomes the next digit in our result. 
Result so far: 126.0526315
If we take 190 away from 220, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Advancing to step 12:
38 goes into 300 7 times with a remainder of 34.
Write down 7 as next digit of the result. 
Result so far: 126.05263157
Subtracting 266 from 300 leaves us with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

The final outcome is 126.05263157, with a leftover of 3.4e-08.