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

On to step 1:
If we divide 5 by 38, we get 0 and a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Fetch the next digit (3) from the dividend, attach it to 5 and continue: 53 / 38

Advancing to step 2:
The number 38 fits into 53 1 times, leaving a remainder of 15.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we take 38 away from 53, we end up with 15.
Fetch the next digit (1) from the dividend, attach it to 15 and continue: 151 / 38

Moving on to step 3:
38 goes into 151 3 times with a remainder of 37.
Write down 3 as next digit of the result. 
Result so far: 13.0
If we subtract 114 from 151, we get 37.
Fetch the next digit (0) from the dividend, attach it to 37 and continue: 370 / 38

Step 4:
38 goes into 370 9 times with a remainder of 28.
Write down 9 as next digit of the result. 
Result so far: 139.0
Subtracting 342 from 370 leaves us with 28.
Include the next digit (8) from the dividend after 28, then repeat: 288 / 38

Moving on to step 5:
288 divided by 38 is 7 with a remainder of 22.
The next digit of our result is 7. 
Result so far: 1397.0
If we subtract 266 from 288, we get 22.
Fetch the next digit (4) from the dividend, attach it to 22 and continue: 224 / 38

Step 6:
If we divide 224 by 38, we get 5 and a remainder of 34.
Use 5 as the next digit of our solution. 
Result so far: 13975.0
Subtracting 190 from 224 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.

Advancing to step 7:
When dividing 340 by 38, we get 8 with a remainder of 36.
The number 8 becomes the next digit in our result. 
Result so far: 13975.8
Subtracting 304 from 340 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 can be fit into 360 9 times, resulting in a remainder of 18.
The number 9 becomes the next digit in our result. 
Result so far: 13975.89
The remainder is 18 after subtracting 342 from 360.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

On to step 9:
The number 38 fits into 180 4 times, leaving a remainder of 28.
The next digit of our result is 4. 
Result so far: 13975.894
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.

Going ahead to step 10:
280 divided by 38 is 7 with a remainder of 14.
The number 7 becomes the next digit in our result. 
Result so far: 13975.8947
If we take 266 away from 280, we end up 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.

On to step 11:
If we divide 140 by 38, we get 3 and a remainder of 26.
Use 3 as the next digit of our solution. 
Result so far: 13975.89473
Subtracting 114 from 140 leaves us 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.

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: 13975.894736
Subtract 228 from 260 to get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Going ahead to step 13:
When dividing 320 by 38, we get 8 with a remainder of 16.
The number 8 becomes the next digit in our result. 
Result so far: 13975.8947368
The remainder is 16 after subtracting 304 from 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Going ahead to step 14:
160 divided by 38 is 4 with a remainder of 8.
Put 4 as the next digit of the answer. 
Result so far: 13975.89473684
If we take 152 away from 160, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

The quotient of the division is 13975.89473684, and the remainder is 8e-09.