540717 divided by 84 
The aim is to understand the frequency of 84 in 540717.

Going ahead to step 1:
When dividing 5 by 84, we get 0 with a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Append the next digit (4) from the dividend to 5 and continue with: 54 / 84

Going ahead to step 2:
84 goes into 54 0 times with a remainder of 54.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 54, we end up with 54.
Take the next digit (0) from the dividend and append it to 54, then repeat: 540 / 84

Going ahead to step 3:
The number 84 fits into 540 6 times, leaving a remainder of 36.
The number 6 becomes the next digit in our result. 
Result so far: 6.0
Subtract 504 from 540 to get 36.
Append the next digit (7) from the dividend to 36 and continue with: 367 / 84

Going ahead to step 4:
84 goes into 367 4 times with a remainder of 31.
Record the quotient 4 as the next digit in the result. 
Result so far: 64.0
Subtract 336 from 367 to get 31.
Include the next digit (1) from the dividend after 31, then repeat: 311 / 84

Moving on to step 5:
84 can be fit into 311 3 times, resulting in a remainder of 59.
The next digit of our result is 3. 
Result so far: 643.0
Deduct 252 from 311 and we're left with 59.
Grab the next digit (7) from the dividend, add it to 59, then carry on: 597 / 84

On to step 6:
84 can be fit into 597 7 times, resulting in a remainder of 9.
Use 7 as the next digit of our solution. 
Result so far: 6437.0
Deduct 588 from 597 and we're left with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

On to step 7:
If we divide 90 by 84, we get 1 and a remainder of 6.
Put 1 as the next digit of the answer. 
Result so far: 6437.1
Deduct 84 from 90 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

On to step 8:
84 goes into 60 0 times with a remainder of 60.
The number 0 becomes the next digit in our result. 
Result so far: 6437.1
Subtracting 0 from 60 leaves us with 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 600, and continue the process.

On to step 9:
The number 84 fits into 600 7 times, leaving a remainder of 12.
Use 7 as the next digit of our solution. 
Result so far: 6437.107
If we take 588 away from 600, we end up 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.

Going ahead to step 10:
When dividing 120 by 84, we get 1 with a remainder of 36.
Put 1 as the next digit of the answer. 
Result so far: 6437.1071
If we take 84 away from 120, we end up with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Going ahead to step 11:
When dividing 360 by 84, we get 4 with a remainder of 24.
Put 4 as the next digit of the answer. 
Result so far: 6437.10714
If we subtract 336 from 360, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

On to step 12:
If we divide 240 by 84, we get 2 and a remainder of 72.
Use 2 as the next digit of our solution. 
Result so far: 6437.107142
If we take 168 away from 240, we end up with 72.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

Step 13:
The number 84 fits into 720 8 times, leaving a remainder of 48.
Use 8 as the next digit of our solution. 
Result so far: 6437.1071428
Deduct 672 from 720 and we're left with 48.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

Moving on to step 14:
If we divide 480 by 84, we get 5 and a remainder of 60.
The next digit of our result is 5. 
Result so far: 6437.10714285
If we take 420 away from 480, we end up with 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 600, and continue the process.

After the division, we end up with 6437.10714285 and a remainder of 6e-08.