31317682 ÷ 397 
The aim is to understand the frequency of 397 in 31317682.

Let's proceed to step 1:
397 goes into 3 0 times with a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Grab the next digit (1) from the dividend, add it to 3, then carry on: 31 / 397

Going ahead to step 2:
The number 397 fits into 31 0 times, leaving a remainder of 31.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 31 to get 31.
Bring next digit (3) of the dividend behind the 31 and repeat the process: 313 / 397

Going ahead to step 3:
397 goes into 313 0 times with a remainder of 313.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 313 leaves us with 313.
Fetch the next digit (1) from the dividend, attach it to 313 and continue: 3131 / 397

Going ahead to step 4:
If we divide 3131 by 397, we get 7 and a remainder of 352.
The next digit of our result is 7. 
Result so far: 7.0
If we subtract 2779 from 3131, we get 352.
Append the next digit (7) from the dividend to 352 and continue with: 3527 / 397

Let's proceed to step 5:
3527 divided by 397 is 8 with a remainder of 351.
Write down 8 as next digit of the result. 
Result so far: 78.0
Deduct 3176 from 3527 and we're left with 351.
Bring next digit (6) of the dividend behind the 351 and repeat the process: 3516 / 397

Moving on to step 6:
3516 divided by 397 is 8 with a remainder of 340.
The next digit of our result is 8. 
Result so far: 788.0
If we subtract 3176 from 3516, we get 340.
Take the next digit (8) from the dividend and append it to 340, then repeat: 3408 / 397

Step 7:
3408 divided by 397 is 8 with a remainder of 232.
Use 8 as the next digit of our solution. 
Result so far: 7888.0
Deduct 3176 from 3408 and we're left with 232.
Append the next digit (2) from the dividend to 232 and continue with: 2322 / 397

Moving on to step 8:
397 can be fit into 2322 5 times, resulting in a remainder of 337.
Record the quotient 5 as the next digit in the result. 
Result so far: 78885.0
If we subtract 1985 from 2322, we get 337.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3370, and continue the process.

On to step 9:
397 goes into 3370 8 times with a remainder of 194.
Record the quotient 8 as the next digit in the result. 
Result so far: 78885.8
If we subtract 3176 from 3370, we get 194.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1940, and continue the process.

Moving on to step 10:
397 can be fit into 1940 4 times, resulting in a remainder of 352.
The number 4 becomes the next digit in our result. 
Result so far: 78885.84
The remainder is 352 after subtracting 1588 from 1940.
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:
3520 divided by 397 is 8 with a remainder of 344.
Use 8 as the next digit of our solution. 
Result so far: 78885.848
Subtract 3176 from 3520 to 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.

On to step 12:
The number 397 fits into 3440 8 times, leaving a remainder of 264.
Put 8 as the next digit of the answer. 
Result so far: 78885.8488
Subtract 3176 from 3440 to get 264.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2640, and continue the process.

The final result is 78885.8488 with a remainder of 0.00264.