331175 divided by 40 
We want to figure out the number of times 331175 can be divided by 40.

Going ahead to step 1:
When dividing 3 by 40, we get 0 with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 3, we get 3.
Append the next digit (3) from the dividend to 3 and continue with: 33 / 40

Step 2:
When dividing 33 by 40, we get 0 with a remainder of 33.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 33 leaves us with 33.
Grab the next digit (1) from the dividend, add it to 33, then carry on: 331 / 40

Going ahead to step 3:
331 divided by 40 is 8 with a remainder of 11.
The next digit of our result is 8. 
Result so far: 8.0
The remainder is 11 after subtracting 320 from 331.
Bring next digit (1) of the dividend behind the 11 and repeat the process: 111 / 40

On to step 4:
40 goes into 111 2 times with a remainder of 31.
Use 2 as the next digit of our solution. 
Result so far: 82.0
Subtract 80 from 111 to get 31.
Take the next digit (7) from the dividend and append it to 31, then repeat: 317 / 40

Let's proceed to step 5:
The number 40 fits into 317 7 times, leaving a remainder of 37.
The next digit of our result is 7. 
Result so far: 827.0
Subtracting 280 from 317 leaves us with 37.
Fetch the next digit (5) from the dividend, attach it to 37 and continue: 375 / 40

On to step 6:
The number 40 fits into 375 9 times, leaving a remainder of 15.
Use 9 as the next digit of our solution. 
Result so far: 8279.0
If we subtract 360 from 375, we get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Let's proceed to step 7:
40 goes into 150 3 times with a remainder of 30.
Write down 3 as next digit of the result. 
Result so far: 8279.3
Subtracting 120 from 150 leaves us with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 8:
When dividing 300 by 40, we get 7 with a remainder of 20.
Use 7 as the next digit of our solution. 
Result so far: 8279.37
If we subtract 280 from 300, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 9:
When dividing 200 by 40, we get 5 with a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 8279.375
If we subtract 200 from 200, 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.

Let's proceed to step 10:
0 divided by 40 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 8279.375
Subtracting 0 from 0 leaves us 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 11:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 8279.375
Deduct 0 from 0 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.

The quotient of the division is 8279.375, and the remainder is 0.0.