Let's divide 87145165 by 170
The aim is to understand the frequency of 170 in 87145165.

On to step 1:
When dividing 8 by 170, we get 0 with a remainder of 8.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 8, we end up with 8.
Take the next digit (7) from the dividend and append it to 8, then repeat: 87 / 170

Moving on to step 2:
The number 170 fits into 87 0 times, leaving a remainder of 87.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 87 leaves us with 87.
Append the next digit (1) from the dividend to 87 and continue with: 871 / 170

Moving on to step 3:
170 can be fit into 871 5 times, resulting in a remainder of 21.
Write down 5 as next digit of the result. 
Result so far: 5.0
If we take 850 away from 871, we end up with 21.
Append the next digit (4) from the dividend to 21 and continue with: 214 / 170

Let's proceed to step 4:
170 goes into 214 1 times with a remainder of 44.
Write down 1 as next digit of the result. 
Result so far: 51.0
Deduct 170 from 214 and we're left with 44.
Take the next digit (5) from the dividend and append it to 44, then repeat: 445 / 170

Going ahead to step 5:
The number 170 fits into 445 2 times, leaving a remainder of 105.
Use 2 as the next digit of our solution. 
Result so far: 512.0
Subtract 340 from 445 to get 105.
Include the next digit (1) from the dividend after 105, then repeat: 1051 / 170

On to step 6:
1051 divided by 170 is 6 with a remainder of 31.
Write down 6 as next digit of the result. 
Result so far: 5126.0
If we take 1020 away from 1051, we end up with 31.
Include the next digit (6) from the dividend after 31, then repeat: 316 / 170

On to step 7:
316 divided by 170 is 1 with a remainder of 146.
Put 1 as the next digit of the answer. 
Result so far: 51261.0
If we subtract 170 from 316, we get 146.
Bring next digit (5) of the dividend behind the 146 and repeat the process: 1465 / 170

Going ahead to step 8:
If we divide 1465 by 170, we get 8 and a remainder of 105.
Write down 8 as next digit of the result. 
Result so far: 512618.0
If we subtract 1360 from 1465, we get 105.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1050, and continue the process.

Moving on to step 9:
If we divide 1050 by 170, we get 6 and a remainder of 30.
Write down 6 as next digit of the result. 
Result so far: 512618.6
Subtracting 1020 from 1050 leaves us with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 10:
When dividing 300 by 170, we get 1 with a remainder of 130.
Record the quotient 1 as the next digit in the result. 
Result so far: 512618.61
If we subtract 170 from 300, we get 130.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1300, and continue the process.

Advancing to step 11:
When dividing 1300 by 170, we get 7 with a remainder of 110.
The number 7 becomes the next digit in our result. 
Result so far: 512618.617
Deduct 1190 from 1300 and we're left with 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1100, and continue the process.

Let's proceed to step 12:
When dividing 1100 by 170, we get 6 with a remainder of 80.
Use 6 as the next digit of our solution. 
Result so far: 512618.6176
Subtracting 1020 from 1100 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.

Advancing to step 13:
When dividing 800 by 170, we get 4 with a remainder of 120.
Put 4 as the next digit of the answer. 
Result so far: 512618.61764
The remainder is 120 after subtracting 680 from 800.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1200, and continue the process.

Moving on to step 14:
When dividing 1200 by 170, we get 7 with a remainder of 10.
The number 7 becomes the next digit in our result. 
Result so far: 512618.617647
The remainder is 10 after subtracting 1190 from 1200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Moving on to step 15:
When dividing 100 by 170, we get 0 with a remainder of 100.
Put 0 as the next digit of the answer. 
Result so far: 512618.617647
The remainder is 100 after subtracting 0 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1000, and continue the process.

Advancing to step 16:
1000 divided by 170 is 5 with a remainder of 150.
Write down 5 as next digit of the result. 
Result so far: 512618.61764705
Subtract 850 from 1000 to get 150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1500, and continue the process.

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