Let's divide 31731575 by 666
We want to figure out the number of times 31731575 can be divided by 666.

Step 1:
If we divide 3 by 666, we get 0 and a remainder of 3.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Append the next digit (1) from the dividend to 3 and continue with: 31 / 666

Step 2:
666 goes into 31 0 times with a remainder of 31.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 31, we end up with 31.
Grab the next digit (7) from the dividend, add it to 31, then carry on: 317 / 666

On to step 3:
The number 666 fits into 317 0 times, leaving a remainder of 317.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 317, we end up with 317.
Append the next digit (3) from the dividend to 317 and continue with: 3173 / 666

Advancing to step 4:
666 goes into 3173 4 times with a remainder of 509.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
Deduct 2664 from 3173 and we're left with 509.
Include the next digit (1) from the dividend after 509, then repeat: 5091 / 666

Let's proceed to step 5:
666 goes into 5091 7 times with a remainder of 429.
Use 7 as the next digit of our solution. 
Result so far: 47.0
If we take 4662 away from 5091, we end up with 429.
Grab the next digit (5) from the dividend, add it to 429, then carry on: 4295 / 666

On to step 6:
If we divide 4295 by 666, we get 6 and a remainder of 299.
Write down 6 as next digit of the result. 
Result so far: 476.0
If we subtract 3996 from 4295, we get 299.
Take the next digit (7) from the dividend and append it to 299, then repeat: 2997 / 666

Step 7:
666 can be fit into 2997 4 times, resulting in a remainder of 333.
Write down 4 as next digit of the result. 
Result so far: 4764.0
Subtract 2664 from 2997 to get 333.
Include the next digit (5) from the dividend after 333, then repeat: 3335 / 666

Going ahead to step 8:
666 goes into 3335 5 times with a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 47645.0
If we take 3330 away from 3335, we end up with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Going ahead to step 9:
If we divide 50 by 666, we get 0 and a remainder of 50.
The number 0 becomes the next digit in our result. 
Result so far: 47645.0
If we take 0 away from 50, we end up with 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

Going ahead to step 10:
The number 666 fits into 500 0 times, leaving a remainder of 500.
The number 0 becomes the next digit in our result. 
Result so far: 47645.0
If we take 0 away from 500, we end up with 500.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5000, and continue the process.

After the division, we end up with 47645.0 and a remainder of 0.5.