Let's divide 10586864 by 338
The aim is to understand the frequency of 338 in 10586864.

On to step 1:
When dividing 1 by 338, we get 0 with a remainder of 1.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Append the next digit (0) from the dividend to 1 and continue with: 10 / 338

Going ahead to step 2:
When dividing 10 by 338, we get 0 with a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 10, we get 10.
Append the next digit (5) from the dividend to 10 and continue with: 105 / 338

Going ahead to step 3:
338 can be fit into 105 0 times, resulting in a remainder of 105.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 105, we get 105.
Fetch the next digit (8) from the dividend, attach it to 105 and continue: 1058 / 338

Moving on to step 4:
1058 divided by 338 is 3 with a remainder of 44.
Write down 3 as next digit of the result. 
Result so far: 3.0
Subtract 1014 from 1058 to get 44.
Bring next digit (6) of the dividend behind the 44 and repeat the process: 446 / 338

Let's proceed to step 5:
446 divided by 338 is 1 with a remainder of 108.
The number 1 becomes the next digit in our result. 
Result so far: 31.0
The remainder is 108 after subtracting 338 from 446.
Fetch the next digit (8) from the dividend, attach it to 108 and continue: 1088 / 338

Moving on to step 6:
1088 divided by 338 is 3 with a remainder of 74.
The next digit of our result is 3. 
Result so far: 313.0
Subtract 1014 from 1088 to get 74.
Append the next digit (6) from the dividend to 74 and continue with: 746 / 338

Going ahead to step 7:
If we divide 746 by 338, we get 2 and a remainder of 70.
Record the quotient 2 as the next digit in the result. 
Result so far: 3132.0
If we take 676 away from 746, we end up with 70.
Grab the next digit (4) from the dividend, add it to 70, then carry on: 704 / 338

Going ahead to step 8:
338 goes into 704 2 times with a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 31322.0
Subtracting 676 from 704 leaves us with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Going ahead to step 9:
If we divide 280 by 338, we get 0 and a remainder of 280.
Record the quotient 0 as the next digit in the result. 
Result so far: 31322.0
Subtract 0 from 280 to get 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2800, and continue the process.

On to step 10:
338 goes into 2800 8 times with a remainder of 96.
The number 8 becomes the next digit in our result. 
Result so far: 31322.08
If we subtract 2704 from 2800, we get 96.
Since there are no more digits in the dividend, we add a zero to the remainder making it 960, and continue the process.

Let's proceed to step 11:
338 can be fit into 960 2 times, resulting in a remainder of 284.
Write down 2 as next digit of the result. 
Result so far: 31322.082
Subtract 676 from 960 to get 284.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2840, and continue the process.

Let's proceed to step 12:
338 goes into 2840 8 times with a remainder of 136.
Put 8 as the next digit of the answer. 
Result so far: 31322.0828
Subtracting 2704 from 2840 leaves us with 136.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1360, and continue the process.

Moving on to step 13:
If we divide 1360 by 338, we get 4 and a remainder of 8.
Record the quotient 4 as the next digit in the result. 
Result so far: 31322.08284
Deduct 1352 from 1360 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Step 14:
When dividing 80 by 338, we get 0 with a remainder of 80.
The number 0 becomes the next digit in our result. 
Result so far: 31322.08284
Subtracting 0 from 80 leaves us with 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

On to step 15:
338 goes into 800 2 times with a remainder of 124.
Write down 2 as next digit of the result. 
Result so far: 31322.0828402
If we subtract 676 from 800, we get 124.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1240, and continue the process.

On to step 16:
The number 338 fits into 1240 3 times, leaving a remainder of 226.
Write down 3 as next digit of the result. 
Result so far: 31322.08284023
Deduct 1014 from 1240 and we're left with 226.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2260, and continue the process.

After the division, we end up with 31322.08284023 and a remainder of 2.26e-07.