We're dividing 38997165 by 654 
The aim is to understand the frequency of 654 in 38997165.

Step 1:
The number 654 fits into 3 0 times, leaving a remainder of 3.
The next digit of our result is 0. 
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 / 654

Advancing to step 2:
38 divided by 654 is 0 with a remainder of 38.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 38, we get 38.
Bring next digit (9) of the dividend behind the 38 and repeat the process: 389 / 654

Moving on to step 3:
If we divide 389 by 654, we get 0 and a remainder of 389.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 389 after subtracting 0 from 389.
Append the next digit (9) from the dividend to 389 and continue with: 3899 / 654

Let's proceed to step 4:
The number 654 fits into 3899 5 times, leaving a remainder of 629.
Use 5 as the next digit of our solution. 
Result so far: 5.0
Subtracting 3270 from 3899 leaves us with 629.
Grab the next digit (7) from the dividend, add it to 629, then carry on: 6297 / 654

Moving on to step 5:
654 can be fit into 6297 9 times, resulting in a remainder of 411.
Use 9 as the next digit of our solution. 
Result so far: 59.0
The remainder is 411 after subtracting 5886 from 6297.
Fetch the next digit (1) from the dividend, attach it to 411 and continue: 4111 / 654

Moving on to step 6:
If we divide 4111 by 654, we get 6 and a remainder of 187.
The number 6 becomes the next digit in our result. 
Result so far: 596.0
Deduct 3924 from 4111 and we're left with 187.
Grab the next digit (6) from the dividend, add it to 187, then carry on: 1876 / 654

Step 7:
The number 654 fits into 1876 2 times, leaving a remainder of 568.
Put 2 as the next digit of the answer. 
Result so far: 5962.0
If we subtract 1308 from 1876, we get 568.
Fetch the next digit (5) from the dividend, attach it to 568 and continue: 5685 / 654

Step 8:
5685 divided by 654 is 8 with a remainder of 453.
Record the quotient 8 as the next digit in the result. 
Result so far: 59628.0
If we take 5232 away from 5685, we end up with 453.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4530, and continue the process.

Let's proceed to step 9:
654 goes into 4530 6 times with a remainder of 606.
Record the quotient 6 as the next digit in the result. 
Result so far: 59628.6
If we take 3924 away from 4530, we end up with 606.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6060, and continue the process.

Advancing to step 10:
654 can be fit into 6060 9 times, resulting in a remainder of 174.
Put 9 as the next digit of the answer. 
Result so far: 59628.69
Subtract 5886 from 6060 to get 174.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1740, and continue the process.

Step 11:
When dividing 1740 by 654, we get 2 with a remainder of 432.
Record the quotient 2 as the next digit in the result. 
Result so far: 59628.692
Subtract 1308 from 1740 to get 432.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4320, and continue the process.

Advancing to step 12:
The number 654 fits into 4320 6 times, leaving a remainder of 396.
Record the quotient 6 as the next digit in the result. 
Result so far: 59628.6926
If we subtract 3924 from 4320, we get 396.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3960, and continue the process.

Let's proceed to step 13:
654 goes into 3960 6 times with a remainder of 36.
The next digit of our result is 6. 
Result so far: 59628.69266
Deduct 3924 from 3960 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.

After the division, we end up with 59628.69266 and a remainder of 3.6e-05.