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

On to step 1:
1 divided by 397 is 0 with a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Take the next digit (1) from the dividend and append it to 1, then repeat: 11 / 397

Going ahead to step 2:
11 divided by 397 is 0 with a remainder of 11.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 11, we get 11.
Grab the next digit (1) from the dividend, add it to 11, then carry on: 111 / 397

On to step 3:
When dividing 111 by 397, we get 0 with a remainder of 111.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 111, we end up with 111.
Fetch the next digit (1) from the dividend, attach it to 111 and continue: 1111 / 397

On to step 4:
1111 divided by 397 is 2 with a remainder of 317.
The next digit of our result is 2. 
Result so far: 2.0
The remainder is 317 after subtracting 794 from 1111.
Grab the next digit (1) from the dividend, add it to 317, then carry on: 3171 / 397

Going ahead to step 5:
397 goes into 3171 7 times with a remainder of 392.
Record the quotient 7 as the next digit in the result. 
Result so far: 27.0
If we subtract 2779 from 3171, we get 392.
Grab the next digit (2) from the dividend, add it to 392, then carry on: 3922 / 397

Let's proceed to step 6:
The number 397 fits into 3922 9 times, leaving a remainder of 349.
Record the quotient 9 as the next digit in the result. 
Result so far: 279.0
If we subtract 3573 from 3922, we get 349.
Include the next digit (8) from the dividend after 349, then repeat: 3498 / 397

Step 7:
When dividing 3498 by 397, we get 8 with a remainder of 322.
Record the quotient 8 as the next digit in the result. 
Result so far: 2798.0
The remainder is 322 after subtracting 3176 from 3498.
Append the next digit (4) from the dividend to 322 and continue with: 3224 / 397

Let's proceed to step 8:
397 goes into 3224 8 times with a remainder of 48.
Write down 8 as next digit of the result. 
Result so far: 27988.0
If we subtract 3176 from 3224, we get 48.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

Step 9:
397 goes into 480 1 times with a remainder of 83.
Record the quotient 1 as the next digit in the result. 
Result so far: 27988.1
Subtracting 397 from 480 leaves us with 83.
Since there are no more digits in the dividend, we add a zero to the remainder making it 830, and continue the process.

Moving on to step 10:
397 goes into 830 2 times with a remainder of 36.
The next digit of our result is 2. 
Result so far: 27988.12
If we take 794 away from 830, we end up 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.

Advancing to step 11:
360 divided by 397 is 0 with a remainder of 360.
Use 0 as the next digit of our solution. 
Result so far: 27988.12
The remainder is 360 after subtracting 0 from 360.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3600, and continue the process.

Going ahead to step 12:
The number 397 fits into 3600 9 times, leaving a remainder of 27.
The next digit of our result is 9. 
Result so far: 27988.1209
The remainder is 27 after subtracting 3573 from 3600.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

Step 13:
397 can be fit into 270 0 times, resulting in a remainder of 270.
Record the quotient 0 as the next digit in the result. 
Result so far: 27988.1209
Subtracting 0 from 270 leaves us with 270.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2700, and continue the process.

Let's proceed to step 14:
397 goes into 2700 6 times with a remainder of 318.
Record the quotient 6 as the next digit in the result. 
Result so far: 27988.120906
If we take 2382 away from 2700, we end up with 318.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3180, and continue the process.

Let's proceed to step 15:
3180 divided by 397 is 8 with a remainder of 4.
Put 8 as the next digit of the answer. 
Result so far: 27988.1209068
Deduct 3176 from 3180 and we're left with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

On to step 16:
397 can be fit into 40 0 times, resulting in a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 27988.1209068
Subtract 0 from 40 to get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

After the division, we end up with 27988.1209068 and a remainder of 4e-08.