40108557 divided by 37 
Let's see how many times 37 fits into 40108557.

Going ahead to step 1:
4 divided by 37 is 0 with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 37

On to step 2:
37 can be fit into 40 1 times, resulting in a remainder of 3.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we subtract 37 from 40, we get 3.
Include the next digit (1) from the dividend after 3, then repeat: 31 / 37

Going ahead to step 3:
37 goes into 31 0 times with a remainder of 31.
Write down 0 as next digit of the result. 
Result so far: 10.0
If we subtract 0 from 31, we get 31.
Take the next digit (0) from the dividend and append it to 31, then repeat: 310 / 37

Going ahead to step 4:
37 can be fit into 310 8 times, resulting in a remainder of 14.
Put 8 as the next digit of the answer. 
Result so far: 108.0
Subtract 296 from 310 to get 14.
Fetch the next digit (8) from the dividend, attach it to 14 and continue: 148 / 37

Advancing to step 5:
When dividing 148 by 37, we get 4 with a remainder of 0.
The next digit of our result is 4. 
Result so far: 1084.0
Deduct 148 from 148 and we're left with 0.
Include the next digit (5) from the dividend after 0, then repeat: 5 / 37

Going ahead to step 6:
The number 37 fits into 5 0 times, leaving a remainder of 5.
The next digit of our result is 0. 
Result so far: 10840.0
Deduct 0 from 5 and we're left with 5.
Grab the next digit (5) from the dividend, add it to 5, then carry on: 55 / 37

Step 7:
55 divided by 37 is 1 with a remainder of 18.
Put 1 as the next digit of the answer. 
Result so far: 108401.0
The remainder is 18 after subtracting 37 from 55.
Grab the next digit (7) from the dividend, add it to 18, then carry on: 187 / 37

On to step 8:
If we divide 187 by 37, we get 5 and a remainder of 2.
Write down 5 as next digit of the result. 
Result so far: 1084015.0
Subtracting 185 from 187 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 9:
37 can be fit into 20 0 times, resulting in a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 1084015.0
If we take 0 away from 20, we end up 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.

Let's proceed to step 10:
The number 37 fits into 200 5 times, leaving a remainder of 15.
The next digit of our result is 5. 
Result so far: 1084015.05
Deduct 185 from 200 and we're left with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Step 11:
37 goes into 150 4 times with a remainder of 2.
The number 4 becomes the next digit in our result. 
Result so far: 1084015.054
Deduct 148 from 150 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 12:
37 can be fit into 20 0 times, resulting in a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 1084015.054
If we take 0 away from 20, we end up 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.

Advancing to step 13:
If we divide 200 by 37, we get 5 and a remainder of 15.
Put 5 as the next digit of the answer. 
Result so far: 1084015.05405
Subtract 185 from 200 to 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.

Going ahead to step 14:
150 divided by 37 is 4 with a remainder of 2.
Record the quotient 4 as the next digit in the result. 
Result so far: 1084015.054054
Deduct 148 from 150 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 15:
37 goes into 20 0 times with a remainder of 20.
The number 0 becomes the next digit in our result. 
Result so far: 1084015.054054
If we take 0 away from 20, we end up 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.

On to step 16:
37 can be fit into 200 5 times, resulting in a remainder of 15.
Record the quotient 5 as the next digit in the result. 
Result so far: 1084015.05405405
Subtracting 185 from 200 leaves us with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

After the division, we end up with 1084015.05405405 and a remainder of 1.5e-08.