We're dividing 78164873 by 397 
The aim is to understand the frequency of 397 in 78164873.

Moving on to step 1:
397 can be fit into 7 0 times, resulting in a remainder of 7.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 7 leaves us with 7.
Grab the next digit (8) from the dividend, add it to 7, then carry on: 78 / 397

Let's proceed to step 2:
397 goes into 78 0 times with a remainder of 78.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 78 to get 78.
Append the next digit (1) from the dividend to 78 and continue with: 781 / 397

On to step 3:
397 can be fit into 781 1 times, resulting in a remainder of 384.
Use 1 as the next digit of our solution. 
Result so far: 1.0
The remainder is 384 after subtracting 397 from 781.
Take the next digit (6) from the dividend and append it to 384, then repeat: 3846 / 397

Moving on to step 4:
3846 divided by 397 is 9 with a remainder of 273.
Write down 9 as next digit of the result. 
Result so far: 19.0
If we subtract 3573 from 3846, we get 273.
Append the next digit (4) from the dividend to 273 and continue with: 2734 / 397

Going ahead to step 5:
When dividing 2734 by 397, we get 6 with a remainder of 352.
Record the quotient 6 as the next digit in the result. 
Result so far: 196.0
If we take 2382 away from 2734, we end up with 352.
Append the next digit (8) from the dividend to 352 and continue with: 3528 / 397

Going ahead to step 6:
When dividing 3528 by 397, we get 8 with a remainder of 352.
Use 8 as the next digit of our solution. 
Result so far: 1968.0
If we subtract 3176 from 3528, we get 352.
Bring next digit (7) of the dividend behind the 352 and repeat the process: 3527 / 397

Advancing to step 7:
When dividing 3527 by 397, we get 8 with a remainder of 351.
The number 8 becomes the next digit in our result. 
Result so far: 19688.0
Subtract 3176 from 3527 to get 351.
Bring next digit (3) of the dividend behind the 351 and repeat the process: 3513 / 397

On to step 8:
3513 divided by 397 is 8 with a remainder of 337.
Write down 8 as next digit of the result. 
Result so far: 196888.0
The remainder is 337 after subtracting 3176 from 3513.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3370, and continue the process.

Let's proceed to step 9:
If we divide 3370 by 397, we get 8 and a remainder of 194.
The next digit of our result is 8. 
Result so far: 196888.8
Subtracting 3176 from 3370 leaves us with 194.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1940, and continue the process.

Step 10:
397 can be fit into 1940 4 times, resulting in a remainder of 352.
Use 4 as the next digit of our solution. 
Result so far: 196888.84
If we take 1588 away from 1940, we end up with 352.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3520, and continue the process.

Advancing to step 11:
The number 397 fits into 3520 8 times, leaving a remainder of 344.
Write down 8 as next digit of the result. 
Result so far: 196888.848
If we subtract 3176 from 3520, we get 344.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3440, and continue the process.

Step 12:
When dividing 3440 by 397, we get 8 with a remainder of 264.
Use 8 as the next digit of our solution. 
Result so far: 196888.8488
The remainder is 264 after subtracting 3176 from 3440.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2640, and continue the process.

Our division results in 196888.8488 with a remaining 0.00264.