We're dividing 515290 by 6 
The aim is to understand the frequency of 6 in 515290.

Step 1:
6 can be fit into 5 0 times, resulting in a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Fetch the next digit (1) from the dividend, attach it to 5 and continue: 51 / 6

Step 2:
The number 6 fits into 51 8 times, leaving a remainder of 3.
Put 8 as the next digit of the answer. 
Result so far: 8.0
If we subtract 48 from 51, we get 3.
Fetch the next digit (5) from the dividend, attach it to 3 and continue: 35 / 6

On to step 3:
35 divided by 6 is 5 with a remainder of 5.
Use 5 as the next digit of our solution. 
Result so far: 85.0
If we subtract 30 from 35, we get 5.
Bring next digit (2) of the dividend behind the 5 and repeat the process: 52 / 6

Going ahead to step 4:
The number 6 fits into 52 8 times, leaving a remainder of 4.
Put 8 as the next digit of the answer. 
Result so far: 858.0
The remainder is 4 after subtracting 48 from 52.
Include the next digit (9) from the dividend after 4, then repeat: 49 / 6

Step 5:
If we divide 49 by 6, we get 8 and a remainder of 1.
The next digit of our result is 8. 
Result so far: 8588.0
Subtract 48 from 49 to get 1.
Fetch the next digit (0) from the dividend, attach it to 1 and continue: 10 / 6

Moving on to step 6:
10 divided by 6 is 1 with a remainder of 4.
Put 1 as the next digit of the answer. 
Result so far: 85881.0
Subtract 6 from 10 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 7:
The number 6 fits into 40 6 times, leaving a remainder of 4.
Record the quotient 6 as the next digit in the result. 
Result so far: 85881.6
If we subtract 36 from 40, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 8:
The number 6 fits into 40 6 times, leaving a remainder of 4.
Write down 6 as next digit of the result. 
Result so far: 85881.66
Subtract 36 from 40 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Our division results in 85881.66 with a remaining 0.004.