Let's divide 161024 by 87
The aim is to understand the frequency of 87 in 161024.

Let's proceed to step 1:
1 divided by 87 is 0 with a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 1 to get 1.
Include the next digit (6) from the dividend after 1, then repeat: 16 / 87

Going ahead to step 2:
If we divide 16 by 87, we get 0 and a remainder of 16.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 16 leaves us with 16.
Append the next digit (1) from the dividend to 16 and continue with: 161 / 87

Step 3:
161 divided by 87 is 1 with a remainder of 74.
Write down 1 as next digit of the result. 
Result so far: 1.0
The remainder is 74 after subtracting 87 from 161.
Fetch the next digit (0) from the dividend, attach it to 74 and continue: 740 / 87

Advancing to step 4:
The number 87 fits into 740 8 times, leaving a remainder of 44.
Put 8 as the next digit of the answer. 
Result so far: 18.0
Deduct 696 from 740 and we're left with 44.
Grab the next digit (2) from the dividend, add it to 44, then carry on: 442 / 87

Step 5:
When dividing 442 by 87, we get 5 with a remainder of 7.
Record the quotient 5 as the next digit in the result. 
Result so far: 185.0
Subtracting 435 from 442 leaves us with 7.
Fetch the next digit (4) from the dividend, attach it to 7 and continue: 74 / 87

Advancing to step 6:
The number 87 fits into 74 0 times, leaving a remainder of 74.
Put 0 as the next digit of the answer. 
Result so far: 1850.0
Deduct 0 from 74 and we're left with 74.
Since there are no more digits in the dividend, we add a zero to the remainder making it 740, and continue the process.

Advancing to step 7:
87 can be fit into 740 8 times, resulting in a remainder of 44.
Put 8 as the next digit of the answer. 
Result so far: 1850.8
Subtracting 696 from 740 leaves us with 44.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

Let's proceed to step 8:
87 can be fit into 440 5 times, resulting in a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 1850.85
If we subtract 435 from 440, we get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 9:
50 divided by 87 is 0 with a remainder of 50.
Record the quotient 0 as the next digit in the result. 
Result so far: 1850.85
Subtract 0 from 50 to get 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

On to step 10:
The number 87 fits into 500 5 times, leaving a remainder of 65.
Put 5 as the next digit of the answer. 
Result so far: 1850.8505
The remainder is 65 after subtracting 435 from 500.
Since there are no more digits in the dividend, we add a zero to the remainder making it 650, and continue the process.

Step 11:
If we divide 650 by 87, we get 7 and a remainder of 41.
Record the quotient 7 as the next digit in the result. 
Result so far: 1850.85057
Subtract 609 from 650 to get 41.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

Going ahead to step 12:
When dividing 410 by 87, we get 4 with a remainder of 62.
Use 4 as the next digit of our solution. 
Result so far: 1850.850574
The remainder is 62 after subtracting 348 from 410.
Since there are no more digits in the dividend, we add a zero to the remainder making it 620, and continue the process.

Moving on to step 13:
87 goes into 620 7 times with a remainder of 11.
Write down 7 as next digit of the result. 
Result so far: 1850.8505747
Deduct 609 from 620 and we're left with 11.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Moving on to step 14:
87 can be fit into 110 1 times, resulting in a remainder of 23.
The number 1 becomes the next digit in our result. 
Result so far: 1850.85057471
The remainder is 23 after subtracting 87 from 110.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

Our division results in 1850.85057471 with a remaining 2.3e-08.