We divide 596040 by 6
The aim is to understand the frequency of 6 in 596040.

On to step 1:
If we divide 5 by 6, we get 0 and a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Take the next digit (9) from the dividend and append it to 5, then repeat: 59 / 6

Going ahead to step 2:
If we divide 59 by 6, we get 9 and a remainder of 5.
Record the quotient 9 as the next digit in the result. 
Result so far: 9.0
Subtracting 54 from 59 leaves us with 5.
Fetch the next digit (6) from the dividend, attach it to 5 and continue: 56 / 6

On to step 3:
When dividing 56 by 6, we get 9 with a remainder of 2.
Record the quotient 9 as the next digit in the result. 
Result so far: 99.0
Deduct 54 from 56 and we're left with 2.
Fetch the next digit (0) from the dividend, attach it to 2 and continue: 20 / 6

Moving on to step 4:
When dividing 20 by 6, we get 3 with a remainder of 2.
The number 3 becomes the next digit in our result. 
Result so far: 993.0
The remainder is 2 after subtracting 18 from 20.
Grab the next digit (4) from the dividend, add it to 2, then carry on: 24 / 6

On to step 5:
24 divided by 6 is 4 with a remainder of 0.
Use 4 as the next digit of our solution. 
Result so far: 9934.0
If we take 24 away from 24, we end up with 0.
Take the next digit (0) from the dividend and append it to 0, then repeat: 0 / 6

Let's proceed to step 6:
0 divided by 6 is 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 99340.0
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.

Advancing to step 7:
When dividing 0 by 6, we get 0 with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 99340.0
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.

Advancing to step 8:
The number 6 fits into 0 0 times, leaving a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 99340.0
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 quotient of the division is 99340.0, and the remainder is 0.0.