531171 divided by 6 
The aim is to understand the frequency of 6 in 531171.

Going ahead to step 1:
The number 6 fits into 5 0 times, leaving a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Take the next digit (3) from the dividend and append it to 5, then repeat: 53 / 6

Let's proceed to step 2:
6 goes into 53 8 times with a remainder of 5.
Put 8 as the next digit of the answer. 
Result so far: 8.0
The remainder is 5 after subtracting 48 from 53.
Grab the next digit (1) from the dividend, add it to 5, then carry on: 51 / 6

Moving on to step 3:
6 can be fit into 51 8 times, resulting in a remainder of 3.
The next digit of our result is 8. 
Result so far: 88.0
The remainder is 3 after subtracting 48 from 51.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 6

Moving on to step 4:
If we divide 31 by 6, we get 5 and a remainder of 1.
The next digit of our result is 5. 
Result so far: 885.0
If we subtract 30 from 31, we get 1.
Bring next digit (7) of the dividend behind the 1 and repeat the process: 17 / 6

Let's proceed to step 5:
6 can be fit into 17 2 times, resulting in a remainder of 5.
Use 2 as the next digit of our solution. 
Result so far: 8852.0
Subtract 12 from 17 to get 5.
Fetch the next digit (1) from the dividend, attach it to 5 and continue: 51 / 6

Let's proceed to step 6:
If we divide 51 by 6, we get 8 and a remainder of 3.
Put 8 as the next digit of the answer. 
Result so far: 88528.0
The remainder is 3 after subtracting 48 from 51.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Going ahead to step 7:
If we divide 30 by 6, we get 5 and a remainder of 0.
The next digit of our result is 5. 
Result so far: 88528.5
If we subtract 30 from 30, we 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.

Advancing to step 8:
6 can be fit into 0 0 times, resulting in a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 88528.5
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 9:
6 can be fit into 0 0 times, resulting in a remainder of 0.
The next digit of our result is 0. 
Result so far: 88528.5
If we subtract 0 from 0, we 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.

The final outcome is 88528.5, with a leftover of 0.0.