We're dividing 15797828 by 877 
The aim is to understand the frequency of 877 in 15797828.

On to step 1:
877 goes into 1 0 times with a remainder of 1.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Include the next digit (5) from the dividend after 1, then repeat: 15 / 877

On to step 2:
877 goes into 15 0 times with a remainder of 15.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 15 to get 15.
Fetch the next digit (7) from the dividend, attach it to 15 and continue: 157 / 877

Moving on to step 3:
If we divide 157 by 877, we get 0 and a remainder of 157.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 157, we end up with 157.
Bring next digit (9) of the dividend behind the 157 and repeat the process: 1579 / 877

On to step 4:
When dividing 1579 by 877, we get 1 with a remainder of 702.
Put 1 as the next digit of the answer. 
Result so far: 1.0
Subtract 877 from 1579 to get 702.
Include the next digit (7) from the dividend after 702, then repeat: 7027 / 877

Let's proceed to step 5:
877 can be fit into 7027 8 times, resulting in a remainder of 11.
The number 8 becomes the next digit in our result. 
Result so far: 18.0
The remainder is 11 after subtracting 7016 from 7027.
Fetch the next digit (8) from the dividend, attach it to 11 and continue: 118 / 877

Step 6:
877 goes into 118 0 times with a remainder of 118.
The number 0 becomes the next digit in our result. 
Result so far: 180.0
The remainder is 118 after subtracting 0 from 118.
Grab the next digit (2) from the dividend, add it to 118, then carry on: 1182 / 877

Let's proceed to step 7:
When dividing 1182 by 877, we get 1 with a remainder of 305.
Put 1 as the next digit of the answer. 
Result so far: 1801.0
Subtract 877 from 1182 to get 305.
Take the next digit (8) from the dividend and append it to 305, then repeat: 3058 / 877

On to step 8:
When dividing 3058 by 877, we get 3 with a remainder of 427.
Write down 3 as next digit of the result. 
Result so far: 18013.0
The remainder is 427 after subtracting 2631 from 3058.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4270, and continue the process.

On to step 9:
877 goes into 4270 4 times with a remainder of 762.
The next digit of our result is 4. 
Result so far: 18013.4
If we subtract 3508 from 4270, we get 762.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7620, and continue the process.

Step 10:
877 goes into 7620 8 times with a remainder of 604.
Put 8 as the next digit of the answer. 
Result so far: 18013.48
If we subtract 7016 from 7620, we get 604.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6040, and continue the process.

Going ahead to step 11:
877 goes into 6040 6 times with a remainder of 778.
Record the quotient 6 as the next digit in the result. 
Result so far: 18013.486
The remainder is 778 after subtracting 5262 from 6040.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7780, and continue the process.

Let's proceed to step 12:
877 can be fit into 7780 8 times, resulting in a remainder of 764.
The number 8 becomes the next digit in our result. 
Result so far: 18013.4868
If we take 7016 away from 7780, we end up with 764.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7640, and continue the process.

Going ahead to step 13:
877 can be fit into 7640 8 times, resulting in a remainder of 624.
Put 8 as the next digit of the answer. 
Result so far: 18013.48688
Subtract 7016 from 7640 to get 624.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6240, and continue the process.

The quotient of the division is 18013.48688, and the remainder is 0.000624.