We're dividing 151782 by 5 
The aim is to understand the frequency of 5 in 151782.

Moving on to step 1:
5 goes into 1 0 times with a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Take the next digit (5) from the dividend and append it to 1, then repeat: 15 / 5

On to step 2:
15 divided by 5 is 3 with a remainder of 0.
The number 3 becomes the next digit in our result. 
Result so far: 3.0
Subtracting 15 from 15 leaves us with 0.
Take the next digit (1) from the dividend and append it to 0, then repeat: 1 / 5

Moving on to step 3:
When dividing 1 by 5, we get 0 with a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 30.0
Subtracting 0 from 1 leaves us with 1.
Fetch the next digit (7) from the dividend, attach it to 1 and continue: 17 / 5

Step 4:
5 goes into 17 3 times with a remainder of 2.
Use 3 as the next digit of our solution. 
Result so far: 303.0
If we take 15 away from 17, we end up with 2.
Grab the next digit (8) from the dividend, add it to 2, then carry on: 28 / 5

On to step 5:
The number 5 fits into 28 5 times, leaving a remainder of 3.
Put 5 as the next digit of the answer. 
Result so far: 3035.0
Subtract 25 from 28 to get 3.
Append the next digit (2) from the dividend to 3 and continue with: 32 / 5

Let's proceed to step 6:
The number 5 fits into 32 6 times, leaving a remainder of 2.
Use 6 as the next digit of our solution. 
Result so far: 30356.0
Subtracting 30 from 32 leaves us 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.

On to step 7:
20 divided by 5 is 4 with a remainder of 0.
Put 4 as the next digit of the answer. 
Result so far: 30356.4
Deduct 20 from 20 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 8:
5 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 30356.4
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Let's proceed to step 9:
0 divided by 5 is 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 30356.4
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

After the division, we end up with 30356.4 and a remainder of 0.0.