Let's divide 31018168 by 959
The aim is to understand the frequency of 959 in 31018168.

Step 1:
If we divide 3 by 959, we get 0 and a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Grab the next digit (1) from the dividend, add it to 3, then carry on: 31 / 959

Going ahead to step 2:
959 goes into 31 0 times with a remainder of 31.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 31, we end up with 31.
Bring next digit (0) of the dividend behind the 31 and repeat the process: 310 / 959

On to step 3:
The number 959 fits into 310 0 times, leaving a remainder of 310.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 310 and we're left with 310.
Append the next digit (1) from the dividend to 310 and continue with: 3101 / 959

Moving on to step 4:
3101 divided by 959 is 3 with a remainder of 224.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
If we subtract 2877 from 3101, we get 224.
Append the next digit (8) from the dividend to 224 and continue with: 2248 / 959

On to step 5:
The number 959 fits into 2248 2 times, leaving a remainder of 330.
The number 2 becomes the next digit in our result. 
Result so far: 32.0
Deduct 1918 from 2248 and we're left with 330.
Bring next digit (1) of the dividend behind the 330 and repeat the process: 3301 / 959

Moving on to step 6:
3301 divided by 959 is 3 with a remainder of 424.
Put 3 as the next digit of the answer. 
Result so far: 323.0
Subtracting 2877 from 3301 leaves us with 424.
Grab the next digit (6) from the dividend, add it to 424, then carry on: 4246 / 959

On to step 7:
959 can be fit into 4246 4 times, resulting in a remainder of 410.
Write down 4 as next digit of the result. 
Result so far: 3234.0
The remainder is 410 after subtracting 3836 from 4246.
Append the next digit (8) from the dividend to 410 and continue with: 4108 / 959

Step 8:
If we divide 4108 by 959, we get 4 and a remainder of 272.
The next digit of our result is 4. 
Result so far: 32344.0
If we take 3836 away from 4108, we end up with 272.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2720, and continue the process.

On to step 9:
When dividing 2720 by 959, we get 2 with a remainder of 802.
Write down 2 as next digit of the result. 
Result so far: 32344.2
Deduct 1918 from 2720 and we're left with 802.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8020, and continue the process.

Let's proceed to step 10:
959 goes into 8020 8 times with a remainder of 348.
The number 8 becomes the next digit in our result. 
Result so far: 32344.28
If we subtract 7672 from 8020, we get 348.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3480, and continue the process.

Let's proceed to step 11:
The number 959 fits into 3480 3 times, leaving a remainder of 603.
The next digit of our result is 3. 
Result so far: 32344.283
Subtract 2877 from 3480 to get 603.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6030, and continue the process.

Let's proceed to step 12:
6030 divided by 959 is 6 with a remainder of 276.
Use 6 as the next digit of our solution. 
Result so far: 32344.2836
The remainder is 276 after subtracting 5754 from 6030.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2760, and continue the process.

Moving on to step 13:
2760 divided by 959 is 2 with a remainder of 842.
Write down 2 as next digit of the result. 
Result so far: 32344.28362
Deduct 1918 from 2760 and we're left with 842.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8420, and continue the process.

Going ahead to step 14:
959 can be fit into 8420 8 times, resulting in a remainder of 748.
The number 8 becomes the next digit in our result. 
Result so far: 32344.283628
Subtracting 7672 from 8420 leaves us with 748.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7480, and continue the process.

Step 15:
959 goes into 7480 7 times with a remainder of 767.
Use 7 as the next digit of our solution. 
Result so far: 32344.2836287
Subtract 6713 from 7480 to get 767.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7670, and continue the process.

Moving on to step 16:
The number 959 fits into 7670 7 times, leaving a remainder of 957.
Use 7 as the next digit of our solution. 
Result so far: 32344.28362877
If we take 6713 away from 7670, we end up with 957.
Since there are no more digits in the dividend, we add a zero to the remainder making it 9570, and continue the process.

The final outcome is 32344.28362877, with a leftover of 9.57e-07.