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

Advancing to step 1:
The number 38 fits into 5 0 times, leaving a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Fetch the next digit (2) from the dividend, attach it to 5 and continue: 52 / 38

Advancing to step 2:
If we divide 52 by 38, we get 1 and a remainder of 14.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
The remainder is 14 after subtracting 38 from 52.
Grab the next digit (2) from the dividend, add it to 14, then carry on: 142 / 38

Advancing to step 3:
142 divided by 38 is 3 with a remainder of 28.
Use 3 as the next digit of our solution. 
Result so far: 13.0
If we take 114 away from 142, we end up with 28.
Append the next digit (1) from the dividend to 28 and continue with: 281 / 38

Advancing to step 4:
The number 38 fits into 281 7 times, leaving a remainder of 15.
Record the quotient 7 as the next digit in the result. 
Result so far: 137.0
If we take 266 away from 281, we end up with 15.
Append the next digit (6) from the dividend to 15 and continue with: 156 / 38

Advancing to step 5:
The number 38 fits into 156 4 times, leaving a remainder of 4.
Write down 4 as next digit of the result. 
Result so far: 1374.0
Subtracting 152 from 156 leaves us with 4.
Take the next digit (4) from the dividend and append it to 4, then repeat: 44 / 38

Advancing to step 6:
When dividing 44 by 38, we get 1 with a remainder of 6.
Record the quotient 1 as the next digit in the result. 
Result so far: 13741.0
If we subtract 38 from 44, we get 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 7:
When dividing 60 by 38, we get 1 with a remainder of 22.
Use 1 as the next digit of our solution. 
Result so far: 13741.1
Subtract 38 from 60 to get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Going ahead to step 8:
The number 38 fits into 220 5 times, leaving a remainder of 30.
Write down 5 as next digit of the result. 
Result so far: 13741.15
Subtracting 190 from 220 leaves us 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.

Going ahead to step 9:
38 goes into 300 7 times with a remainder of 34.
Put 7 as the next digit of the answer. 
Result so far: 13741.157
The remainder is 34 after subtracting 266 from 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Advancing to step 10:
38 goes into 340 8 times with a remainder of 36.
Record the quotient 8 as the next digit in the result. 
Result so far: 13741.1578
Deduct 304 from 340 and we're left 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.

Let's proceed to step 11:
If we divide 360 by 38, we get 9 and a remainder of 18.
Record the quotient 9 as the next digit in the result. 
Result so far: 13741.15789
If we take 342 away from 360, we end up with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Going ahead to step 12:
38 goes into 180 4 times with a remainder of 28.
Put 4 as the next digit of the answer. 
Result so far: 13741.157894
Subtracting 152 from 180 leaves us with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Let's proceed to step 13:
38 can be fit into 280 7 times, resulting in a remainder of 14.
Record the quotient 7 as the next digit in the result. 
Result so far: 13741.1578947
The remainder is 14 after subtracting 266 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

On to step 14:
38 can be fit into 140 3 times, resulting in a remainder of 26.
Use 3 as the next digit of our solution. 
Result so far: 13741.15789473
Deduct 114 from 140 and we're left 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.

The final outcome is 13741.15789473, with a leftover of 2.6e-08.