We divide 787971 by 18
The aim is to understand the frequency of 18 in 787971.

Let's proceed to step 1:
When dividing 7 by 18, we get 0 with a remainder of 7.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 7 to get 7.
Bring next digit (8) of the dividend behind the 7 and repeat the process: 78 / 18

Going ahead to step 2:
When dividing 78 by 18, we get 4 with a remainder of 6.
Put 4 as the next digit of the answer. 
Result so far: 4.0
If we take 72 away from 78, we end up with 6.
Take the next digit (7) from the dividend and append it to 6, then repeat: 67 / 18

Advancing to step 3:
When dividing 67 by 18, we get 3 with a remainder of 13.
Put 3 as the next digit of the answer. 
Result so far: 43.0
If we take 54 away from 67, we end up with 13.
Bring next digit (9) of the dividend behind the 13 and repeat the process: 139 / 18

Advancing to step 4:
If we divide 139 by 18, we get 7 and a remainder of 13.
The next digit of our result is 7. 
Result so far: 437.0
Deduct 126 from 139 and we're left with 13.
Append the next digit (7) from the dividend to 13 and continue with: 137 / 18

Step 5:
When dividing 137 by 18, we get 7 with a remainder of 11.
Record the quotient 7 as the next digit in the result. 
Result so far: 4377.0
Subtract 126 from 137 to get 11.
Take the next digit (1) from the dividend and append it to 11, then repeat: 111 / 18

On to step 6:
If we divide 111 by 18, we get 6 and a remainder of 3.
Use 6 as the next digit of our solution. 
Result so far: 43776.0
Subtracting 108 from 111 leaves us with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Step 7:
18 goes into 30 1 times with a remainder of 12.
Record the quotient 1 as the next digit in the result. 
Result so far: 43776.1
Subtracting 18 from 30 leaves us with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

On to step 8:
The number 18 fits into 120 6 times, leaving a remainder of 12.
The number 6 becomes the next digit in our result. 
Result so far: 43776.16
Deduct 108 from 120 and we're left with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Advancing to step 9:
If we divide 120 by 18, we get 6 and a remainder of 12.
Write down 6 as next digit of the result. 
Result so far: 43776.166
Deduct 108 from 120 and we're left with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

The quotient of the division is 43776.166, and the remainder is 0.0012.