We look at the division of 40320648 by 367 
The aim is to understand the frequency of 367 in 40320648.

Advancing to step 1:
If we divide 4 by 367, we get 0 and a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 367

On to step 2:
The number 367 fits into 40 0 times, leaving a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Grab the next digit (3) from the dividend, add it to 40, then carry on: 403 / 367

Let's proceed to step 3:
367 can be fit into 403 1 times, resulting in a remainder of 36.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 367 from 403 and we're left with 36.
Grab the next digit (2) from the dividend, add it to 36, then carry on: 362 / 367

Moving on to step 4:
367 can be fit into 362 0 times, resulting in a remainder of 362.
Put 0 as the next digit of the answer. 
Result so far: 10.0
Subtract 0 from 362 to get 362.
Append the next digit (0) from the dividend to 362 and continue with: 3620 / 367

Moving on to step 5:
When dividing 3620 by 367, we get 9 with a remainder of 317.
Use 9 as the next digit of our solution. 
Result so far: 109.0
Subtract 3303 from 3620 to get 317.
Include the next digit (6) from the dividend after 317, then repeat: 3176 / 367

Advancing to step 6:
367 can be fit into 3176 8 times, resulting in a remainder of 240.
Record the quotient 8 as the next digit in the result. 
Result so far: 1098.0
If we take 2936 away from 3176, we end up with 240.
Grab the next digit (4) from the dividend, add it to 240, then carry on: 2404 / 367

On to step 7:
When dividing 2404 by 367, we get 6 with a remainder of 202.
Use 6 as the next digit of our solution. 
Result so far: 10986.0
Deduct 2202 from 2404 and we're left with 202.
Grab the next digit (8) from the dividend, add it to 202, then carry on: 2028 / 367

Advancing to step 8:
367 can be fit into 2028 5 times, resulting in a remainder of 193.
Write down 5 as next digit of the result. 
Result so far: 109865.0
If we subtract 1835 from 2028, we get 193.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1930, and continue the process.

Advancing to step 9:
If we divide 1930 by 367, we get 5 and a remainder of 95.
The number 5 becomes the next digit in our result. 
Result so far: 109865.5
If we subtract 1835 from 1930, we get 95.
Since there are no more digits in the dividend, we add a zero to the remainder making it 950, and continue the process.

Moving on to step 10:
367 goes into 950 2 times with a remainder of 216.
Record the quotient 2 as the next digit in the result. 
Result so far: 109865.52
Subtracting 734 from 950 leaves us with 216.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2160, and continue the process.

Going ahead to step 11:
367 goes into 2160 5 times with a remainder of 325.
The next digit of our result is 5. 
Result so far: 109865.525
The remainder is 325 after subtracting 1835 from 2160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3250, and continue the process.

On to step 12:
If we divide 3250 by 367, we get 8 and a remainder of 314.
Write down 8 as next digit of the result. 
Result so far: 109865.5258
The remainder is 314 after subtracting 2936 from 3250.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3140, and continue the process.

Going ahead to step 13:
The number 367 fits into 3140 8 times, leaving a remainder of 204.
The number 8 becomes the next digit in our result. 
Result so far: 109865.52588
If we subtract 2936 from 3140, we get 204.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2040, and continue the process.

After the division, we end up with 109865.52588 and a remainder of 0.000204.