3100379 divided by 40 
Let's see how many times 40 fits into 3100379.

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

Let's proceed to step 2:
40 can be fit into 31 0 times, resulting in a remainder of 31.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 31 to get 31.
Fetch the next digit (0) from the dividend, attach it to 31 and continue: 310 / 40

Let's proceed to step 3:
40 can be fit into 310 7 times, resulting in a remainder of 30.
Write down 7 as next digit of the result. 
Result so far: 7.0
If we subtract 280 from 310, we get 30.
Fetch the next digit (0) from the dividend, attach it to 30 and continue: 300 / 40

Going ahead to step 4:
40 can be fit into 300 7 times, resulting in a remainder of 20.
The number 7 becomes the next digit in our result. 
Result so far: 77.0
Subtract 280 from 300 to get 20.
Take the next digit (3) from the dividend and append it to 20, then repeat: 203 / 40

Advancing to step 5:
40 can be fit into 203 5 times, resulting in a remainder of 3.
Put 5 as the next digit of the answer. 
Result so far: 775.0
Subtracting 200 from 203 leaves us with 3.
Fetch the next digit (7) from the dividend, attach it to 3 and continue: 37 / 40

Going ahead to step 6:
37 divided by 40 is 0 with a remainder of 37.
Put 0 as the next digit of the answer. 
Result so far: 7750.0
Subtracting 0 from 37 leaves us with 37.
Grab the next digit (9) from the dividend, add it to 37, then carry on: 379 / 40

On to step 7:
The number 40 fits into 379 9 times, leaving a remainder of 19.
The number 9 becomes the next digit in our result. 
Result so far: 77509.0
The remainder is 19 after subtracting 360 from 379.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

On to step 8:
40 goes into 190 4 times with a remainder of 30.
Record the quotient 4 as the next digit in the result. 
Result so far: 77509.4
Deduct 160 from 190 and we're left 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.

Advancing to step 9:
If we divide 300 by 40, we get 7 and a remainder of 20.
Write down 7 as next digit of the result. 
Result so far: 77509.47
Deduct 280 from 300 and we're left with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 10:
The number 40 fits into 200 5 times, leaving a remainder of 0.
Put 5 as the next digit of the answer. 
Result so far: 77509.475
Subtract 200 from 200 to 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.

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: 77509.475
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.

Going ahead to step 12:
When dividing 0 by 40, we get 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 77509.475
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.

Our division results in 77509.475 with a remaining 0.0.