We look at the division of 38148723 by 642 
The aim is to understand the frequency of 642 in 38148723.

Advancing to step 1:
3 divided by 642 is 0 with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Grab the next digit (8) from the dividend, add it to 3, then carry on: 38 / 642

Advancing to step 2:
If we divide 38 by 642, we get 0 and a remainder of 38.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 38, we end up with 38.
Append the next digit (1) from the dividend to 38 and continue with: 381 / 642

On to step 3:
When dividing 381 by 642, we get 0 with a remainder of 381.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 381 after subtracting 0 from 381.
Append the next digit (4) from the dividend to 381 and continue with: 3814 / 642

Moving on to step 4:
642 can be fit into 3814 5 times, resulting in a remainder of 604.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
Subtracting 3210 from 3814 leaves us with 604.
Fetch the next digit (8) from the dividend, attach it to 604 and continue: 6048 / 642

Let's proceed to step 5:
When dividing 6048 by 642, we get 9 with a remainder of 270.
Record the quotient 9 as the next digit in the result. 
Result so far: 59.0
Subtract 5778 from 6048 to get 270.
Append the next digit (7) from the dividend to 270 and continue with: 2707 / 642

Moving on to step 6:
The number 642 fits into 2707 4 times, leaving a remainder of 139.
The next digit of our result is 4. 
Result so far: 594.0
Subtract 2568 from 2707 to get 139.
Include the next digit (2) from the dividend after 139, then repeat: 1392 / 642

Let's proceed to step 7:
If we divide 1392 by 642, we get 2 and a remainder of 108.
Write down 2 as next digit of the result. 
Result so far: 5942.0
Subtract 1284 from 1392 to get 108.
Take the next digit (3) from the dividend and append it to 108, then repeat: 1083 / 642

Let's proceed to step 8:
The number 642 fits into 1083 1 times, leaving a remainder of 441.
Write down 1 as next digit of the result. 
Result so far: 59421.0
Subtract 642 from 1083 to get 441.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4410, and continue the process.

Moving on to step 9:
642 can be fit into 4410 6 times, resulting in a remainder of 558.
The next digit of our result is 6. 
Result so far: 59421.6
Deduct 3852 from 4410 and we're left with 558.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5580, and continue the process.

Going ahead to step 10:
When dividing 5580 by 642, we get 8 with a remainder of 444.
Write down 8 as next digit of the result. 
Result so far: 59421.68
Subtract 5136 from 5580 to get 444.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4440, and continue the process.

Going ahead to step 11:
When dividing 4440 by 642, we get 6 with a remainder of 588.
Put 6 as the next digit of the answer. 
Result so far: 59421.686
Subtract 3852 from 4440 to get 588.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5880, and continue the process.

On to step 12:
642 can be fit into 5880 9 times, resulting in a remainder of 102.
The next digit of our result is 9. 
Result so far: 59421.6869
If we subtract 5778 from 5880, we get 102.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1020, and continue the process.

Advancing to step 13:
The number 642 fits into 1020 1 times, leaving a remainder of 378.
The next digit of our result is 1. 
Result so far: 59421.68691
Subtracting 642 from 1020 leaves us with 378.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3780, and continue the process.

Step 14:
The number 642 fits into 3780 5 times, leaving a remainder of 570.
Write down 5 as next digit of the result. 
Result so far: 59421.686915
The remainder is 570 after subtracting 3210 from 3780.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5700, and continue the process.

Step 15:
642 can be fit into 5700 8 times, resulting in a remainder of 564.
Write down 8 as next digit of the result. 
Result so far: 59421.6869158
The remainder is 564 after subtracting 5136 from 5700.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5640, and continue the process.

Let's proceed to step 16:
642 goes into 5640 8 times with a remainder of 504.
The next digit of our result is 8. 
Result so far: 59421.68691588
Subtract 5136 from 5640 to get 504.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5040, and continue the process.

After the division, we end up with 59421.68691588 and a remainder of 5.04e-07.