We look at the division of 87181678 by 822 
The aim is to understand the frequency of 822 in 87181678.

On to step 1:
822 goes into 8 0 times with a remainder of 8.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 8 after subtracting 0 from 8.
Take the next digit (7) from the dividend and append it to 8, then repeat: 87 / 822

Let's proceed to step 2:
When dividing 87 by 822, we get 0 with a remainder of 87.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 87 and we're left with 87.
Fetch the next digit (1) from the dividend, attach it to 87 and continue: 871 / 822

Advancing to step 3:
When dividing 871 by 822, we get 1 with a remainder of 49.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we take 822 away from 871, we end up with 49.
Grab the next digit (8) from the dividend, add it to 49, then carry on: 498 / 822

Let's proceed to step 4:
If we divide 498 by 822, we get 0 and a remainder of 498.
The next digit of our result is 0. 
Result so far: 10.0
If we take 0 away from 498, we end up with 498.
Append the next digit (1) from the dividend to 498 and continue with: 4981 / 822

Going ahead to step 5:
4981 divided by 822 is 6 with a remainder of 49.
Put 6 as the next digit of the answer. 
Result so far: 106.0
Subtract 4932 from 4981 to get 49.
Include the next digit (6) from the dividend after 49, then repeat: 496 / 822

Advancing to step 6:
When dividing 496 by 822, we get 0 with a remainder of 496.
Record the quotient 0 as the next digit in the result. 
Result so far: 1060.0
If we subtract 0 from 496, we get 496.
Fetch the next digit (7) from the dividend, attach it to 496 and continue: 4967 / 822

Moving on to step 7:
822 goes into 4967 6 times with a remainder of 35.
The next digit of our result is 6. 
Result so far: 10606.0
Subtracting 4932 from 4967 leaves us with 35.
Include the next digit (8) from the dividend after 35, then repeat: 358 / 822

On to step 8:
When dividing 358 by 822, we get 0 with a remainder of 358.
Put 0 as the next digit of the answer. 
Result so far: 106060.0
Deduct 0 from 358 and we're left with 358.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3580, and continue the process.

Step 9:
3580 divided by 822 is 4 with a remainder of 292.
Put 4 as the next digit of the answer. 
Result so far: 106060.4
Subtract 3288 from 3580 to get 292.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2920, and continue the process.

Let's proceed to step 10:
If we divide 2920 by 822, we get 3 and a remainder of 454.
The number 3 becomes the next digit in our result. 
Result so far: 106060.43
The remainder is 454 after subtracting 2466 from 2920.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4540, and continue the process.

Moving on to step 11:
The number 822 fits into 4540 5 times, leaving a remainder of 430.
The number 5 becomes the next digit in our result. 
Result so far: 106060.435
Deduct 4110 from 4540 and we're left with 430.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4300, and continue the process.

Advancing to step 12:
If we divide 4300 by 822, we get 5 and a remainder of 190.
The next digit of our result is 5. 
Result so far: 106060.4355
Subtracting 4110 from 4300 leaves us with 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1900, and continue the process.

Our division results in 106060.4355 with a remaining 0.0019.