Let's divide 51172146 by 871
The aim is to understand the frequency of 871 in 51172146.

Going ahead to step 1:
When dividing 5 by 871, we get 0 with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Include the next digit (1) from the dividend after 5, then repeat: 51 / 871

Going ahead to step 2:
871 can be fit into 51 0 times, resulting in a remainder of 51.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 51, we end up with 51.
Grab the next digit (1) from the dividend, add it to 51, then carry on: 511 / 871

On to step 3:
871 goes into 511 0 times with a remainder of 511.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 511 after subtracting 0 from 511.
Grab the next digit (7) from the dividend, add it to 511, then carry on: 5117 / 871

Step 4:
5117 divided by 871 is 5 with a remainder of 762.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
If we take 4355 away from 5117, we end up with 762.
Bring next digit (2) of the dividend behind the 762 and repeat the process: 7622 / 871

Moving on to step 5:
When dividing 7622 by 871, we get 8 with a remainder of 654.
Record the quotient 8 as the next digit in the result. 
Result so far: 58.0
If we subtract 6968 from 7622, we get 654.
Include the next digit (1) from the dividend after 654, then repeat: 6541 / 871

Going ahead to step 6:
When dividing 6541 by 871, we get 7 with a remainder of 444.
The number 7 becomes the next digit in our result. 
Result so far: 587.0
The remainder is 444 after subtracting 6097 from 6541.
Fetch the next digit (4) from the dividend, attach it to 444 and continue: 4444 / 871

Moving on to step 7:
If we divide 4444 by 871, we get 5 and a remainder of 89.
Put 5 as the next digit of the answer. 
Result so far: 5875.0
Subtracting 4355 from 4444 leaves us with 89.
Take the next digit (6) from the dividend and append it to 89, then repeat: 896 / 871

On to step 8:
If we divide 896 by 871, we get 1 and a remainder of 25.
Write down 1 as next digit of the result. 
Result so far: 58751.0
The remainder is 25 after subtracting 871 from 896.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Let's proceed to step 9:
If we divide 250 by 871, we get 0 and a remainder of 250.
Use 0 as the next digit of our solution. 
Result so far: 58751.0
The remainder is 250 after subtracting 0 from 250.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2500, and continue the process.

Let's proceed to step 10:
871 can be fit into 2500 2 times, resulting in a remainder of 758.
The number 2 becomes the next digit in our result. 
Result so far: 58751.02
The remainder is 758 after subtracting 1742 from 2500.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7580, and continue the process.

On to step 11:
When dividing 7580 by 871, we get 8 with a remainder of 612.
Use 8 as the next digit of our solution. 
Result so far: 58751.028
Deduct 6968 from 7580 and we're left with 612.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6120, and continue the process.

Step 12:
6120 divided by 871 is 7 with a remainder of 23.
Write down 7 as next digit of the result. 
Result so far: 58751.0287
The remainder is 23 after subtracting 6097 from 6120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Let's proceed to step 13:
871 can be fit into 230 0 times, resulting in a remainder of 230.
Use 0 as the next digit of our solution. 
Result so far: 58751.0287
If we subtract 0 from 230, we get 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2300, and continue the process.

Advancing to step 14:
When dividing 2300 by 871, we get 2 with a remainder of 558.
Use 2 as the next digit of our solution. 
Result so far: 58751.028702
If we take 1742 away from 2300, we end up with 558.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5580, and continue the process.

Going ahead to step 15:
The number 871 fits into 5580 6 times, leaving a remainder of 354.
The number 6 becomes the next digit in our result. 
Result so far: 58751.0287026
The remainder is 354 after subtracting 5226 from 5580.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3540, and continue the process.

Going ahead to step 16:
If we divide 3540 by 871, we get 4 and a remainder of 56.
Use 4 as the next digit of our solution. 
Result so far: 58751.02870264
Subtracting 3484 from 3540 leaves us with 56.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Our division results in 58751.02870264 with a remaining 5.6e-08.