Let's divide 171821 by 54
The aim is to understand the frequency of 54 in 171821.

Moving on to step 1:
When dividing 1 by 54, we get 0 with a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we take 0 away from 1, we end up with 1.
Bring next digit (7) of the dividend behind the 1 and repeat the process: 17 / 54

Moving on to step 2:
If we divide 17 by 54, we get 0 and a remainder of 17.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 17 to get 17.
Take the next digit (1) from the dividend and append it to 17, then repeat: 171 / 54

On to step 3:
171 divided by 54 is 3 with a remainder of 9.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
Deduct 162 from 171 and we're left with 9.
Append the next digit (8) from the dividend to 9 and continue with: 98 / 54

Step 4:
If we divide 98 by 54, we get 1 and a remainder of 44.
Put 1 as the next digit of the answer. 
Result so far: 31.0
If we subtract 54 from 98, we get 44.
Include the next digit (2) from the dividend after 44, then repeat: 442 / 54

Let's proceed to step 5:
If we divide 442 by 54, we get 8 and a remainder of 10.
The number 8 becomes the next digit in our result. 
Result so far: 318.0
Subtracting 432 from 442 leaves us with 10.
Append the next digit (1) from the dividend to 10 and continue with: 101 / 54

Going ahead to step 6:
54 goes into 101 1 times with a remainder of 47.
Use 1 as the next digit of our solution. 
Result so far: 3181.0
If we take 54 away from 101, we end up with 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

On to step 7:
54 goes into 470 8 times with a remainder of 38.
Record the quotient 8 as the next digit in the result. 
Result so far: 3181.8
If we subtract 432 from 470, we get 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Going ahead to step 8:
380 divided by 54 is 7 with a remainder of 2.
Write down 7 as next digit of the result. 
Result so far: 3181.87
Deduct 378 from 380 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 9:
When dividing 20 by 54, we get 0 with a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 3181.87
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Step 10:
54 can be fit into 200 3 times, resulting in a remainder of 38.
The number 3 becomes the next digit in our result. 
Result so far: 3181.8703
Deduct 162 from 200 and we're left with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Let's proceed to step 11:
When dividing 380 by 54, we get 7 with a remainder of 2.
Record the quotient 7 as the next digit in the result. 
Result so far: 3181.87037
Subtract 378 from 380 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Advancing to step 12:
When dividing 20 by 54, we get 0 with a remainder of 20.
Put 0 as the next digit of the answer. 
Result so far: 3181.87037
Subtracting 0 from 20 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 13:
54 goes into 200 3 times with a remainder of 38.
Record the quotient 3 as the next digit in the result. 
Result so far: 3181.8703703
If we subtract 162 from 200, we get 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Let's proceed to step 14:
54 goes into 380 7 times with a remainder of 2.
Record the quotient 7 as the next digit in the result. 
Result so far: 3181.87037037
If we take 378 away from 380, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

The final result is 3181.87037037 with a remainder of 2e-09.