We look at the division of 2538457 by 387 
The aim is to understand the frequency of 387 in 2538457.

On to step 1:
387 goes into 2 0 times with a remainder of 2.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 2 after subtracting 0 from 2.
Fetch the next digit (5) from the dividend, attach it to 2 and continue: 25 / 387

On to step 2:
387 can be fit into 25 0 times, resulting in a remainder of 25.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 25 after subtracting 0 from 25.
Grab the next digit (3) from the dividend, add it to 25, then carry on: 253 / 387

On to step 3:
253 divided by 387 is 0 with a remainder of 253.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 253 to get 253.
Include the next digit (8) from the dividend after 253, then repeat: 2538 / 387

On to step 4:
If we divide 2538 by 387, we get 6 and a remainder of 216.
The number 6 becomes the next digit in our result. 
Result so far: 6.0
Deduct 2322 from 2538 and we're left with 216.
Include the next digit (4) from the dividend after 216, then repeat: 2164 / 387

Moving on to step 5:
387 goes into 2164 5 times with a remainder of 229.
Use 5 as the next digit of our solution. 
Result so far: 65.0
If we take 1935 away from 2164, we end up with 229.
Append the next digit (5) from the dividend to 229 and continue with: 2295 / 387

Let's proceed to step 6:
2295 divided by 387 is 5 with a remainder of 360.
Write down 5 as next digit of the result. 
Result so far: 655.0
Subtracting 1935 from 2295 leaves us with 360.
Fetch the next digit (7) from the dividend, attach it to 360 and continue: 3607 / 387

On to step 7:
3607 divided by 387 is 9 with a remainder of 124.
Write down 9 as next digit of the result. 
Result so far: 6559.0
Subtract 3483 from 3607 to get 124.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1240, and continue the process.

On to step 8:
387 goes into 1240 3 times with a remainder of 79.
The number 3 becomes the next digit in our result. 
Result so far: 6559.3
Subtract 1161 from 1240 to get 79.
Since there are no more digits in the dividend, we add a zero to the remainder making it 790, and continue the process.

On to step 9:
387 goes into 790 2 times with a remainder of 16.
Write down 2 as next digit of the result. 
Result so far: 6559.32
If we subtract 774 from 790, 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.

Let's proceed to step 10:
When dividing 160 by 387, we get 0 with a remainder of 160.
The number 0 becomes the next digit in our result. 
Result so far: 6559.32
Deduct 0 from 160 and we're left with 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1600, and continue the process.

Step 11:
If we divide 1600 by 387, we get 4 and a remainder of 52.
Write down 4 as next digit of the result. 
Result so far: 6559.3204
The remainder is 52 after subtracting 1548 from 1600.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Let's proceed to step 12:
When dividing 520 by 387, we get 1 with a remainder of 133.
Record the quotient 1 as the next digit in the result. 
Result so far: 6559.32041
The remainder is 133 after subtracting 387 from 520.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1330, and continue the process.

Step 13:
The number 387 fits into 1330 3 times, leaving a remainder of 169.
Use 3 as the next digit of our solution. 
Result so far: 6559.320413
Subtract 1161 from 1330 to get 169.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1690, and continue the process.

Going ahead to step 14:
387 can be fit into 1690 4 times, resulting in a remainder of 142.
Put 4 as the next digit of the answer. 
Result so far: 6559.3204134
Subtracting 1548 from 1690 leaves us with 142.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1420, and continue the process.

On to step 15:
387 can be fit into 1420 3 times, resulting in a remainder of 259.
Write down 3 as next digit of the result. 
Result so far: 6559.32041343
Subtract 1161 from 1420 to get 259.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2590, and continue the process.

The final result is 6559.32041343 with a remainder of 2.59e-07.