229831 divided by 38 
The aim is to understand the frequency of 38 in 229831.

On to step 1:
When dividing 2 by 38, we get 0 with a remainder of 2.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 2 and we're left with 2.
Include the next digit (2) from the dividend after 2, then repeat: 22 / 38

Let's proceed to step 2:
38 goes into 22 0 times with a remainder of 22.
The next digit of our result is 0. 
Result so far: 0.0
If we subtract 0 from 22, we get 22.
Take the next digit (9) from the dividend and append it to 22, then repeat: 229 / 38

Moving on to step 3:
If we divide 229 by 38, we get 6 and a remainder of 1.
Put 6 as the next digit of the answer. 
Result so far: 6.0
If we take 228 away from 229, we end up with 1.
Include the next digit (8) from the dividend after 1, then repeat: 18 / 38

Let's proceed to step 4:
When dividing 18 by 38, we get 0 with a remainder of 18.
The number 0 becomes the next digit in our result. 
Result so far: 60.0
The remainder is 18 after subtracting 0 from 18.
Fetch the next digit (3) from the dividend, attach it to 18 and continue: 183 / 38

On to step 5:
When dividing 183 by 38, we get 4 with a remainder of 31.
The next digit of our result is 4. 
Result so far: 604.0
If we subtract 152 from 183, we get 31.
Bring next digit (1) of the dividend behind the 31 and repeat the process: 311 / 38

Going ahead to step 6:
If we divide 311 by 38, we get 8 and a remainder of 7.
Use 8 as the next digit of our solution. 
Result so far: 6048.0
Subtracting 304 from 311 leaves us with 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Advancing to step 7:
If we divide 70 by 38, we get 1 and a remainder of 32.
Put 1 as the next digit of the answer. 
Result so far: 6048.1
Subtract 38 from 70 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 8:
38 can be fit into 320 8 times, resulting in a remainder of 16.
The next digit of our result is 8. 
Result so far: 6048.18
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 9:
38 goes into 160 4 times with a remainder of 8.
The next digit of our result is 4. 
Result so far: 6048.184
Deduct 152 from 160 and we're left 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.

Let's proceed to step 10:
80 divided by 38 is 2 with a remainder of 4.
Put 2 as the next digit of the answer. 
Result so far: 6048.1842
If we subtract 76 from 80, we 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.

Advancing to step 11:
The number 38 fits into 40 1 times, leaving a remainder of 2.
Write down 1 as next digit of the result. 
Result so far: 6048.18421
If we subtract 38 from 40, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 12:
The number 38 fits into 20 0 times, leaving a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 6048.18421
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.

On to step 13:
If we divide 200 by 38, we get 5 and a remainder of 10.
Write down 5 as next digit of the result. 
Result so far: 6048.1842105
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.

Going ahead to step 14:
When dividing 100 by 38, we get 2 with a remainder of 24.
Use 2 as the next digit of our solution. 
Result so far: 6048.18421052
The remainder is 24 after subtracting 76 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

The final outcome is 6048.18421052, with a leftover of 2.4e-08.