40835158 divided by 376 
We want to figure out the number of times 40835158 can be divided by 376.

Advancing to step 1:
376 can be fit into 4 0 times, resulting in a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 376

Step 2:
If we divide 40 by 376, we get 0 and a remainder of 40.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 40 to get 40.
Grab the next digit (8) from the dividend, add it to 40, then carry on: 408 / 376

On to step 3:
If we divide 408 by 376, we get 1 and a remainder of 32.
Write down 1 as next digit of the result. 
Result so far: 1.0
The remainder is 32 after subtracting 376 from 408.
Append the next digit (3) from the dividend to 32 and continue with: 323 / 376

Moving on to step 4:
The number 376 fits into 323 0 times, leaving a remainder of 323.
The next digit of our result is 0. 
Result so far: 10.0
Subtract 0 from 323 to get 323.
Append the next digit (5) from the dividend to 323 and continue with: 3235 / 376

Let's proceed to step 5:
If we divide 3235 by 376, we get 8 and a remainder of 227.
Record the quotient 8 as the next digit in the result. 
Result so far: 108.0
The remainder is 227 after subtracting 3008 from 3235.
Bring next digit (1) of the dividend behind the 227 and repeat the process: 2271 / 376

Advancing to step 6:
When dividing 2271 by 376, we get 6 with a remainder of 15.
The next digit of our result is 6. 
Result so far: 1086.0
Subtract 2256 from 2271 to get 15.
Append the next digit (5) from the dividend to 15 and continue with: 155 / 376

Let's proceed to step 7:
376 goes into 155 0 times with a remainder of 155.
The number 0 becomes the next digit in our result. 
Result so far: 10860.0
Deduct 0 from 155 and we're left with 155.
Grab the next digit (8) from the dividend, add it to 155, then carry on: 1558 / 376

On to step 8:
1558 divided by 376 is 4 with a remainder of 54.
The number 4 becomes the next digit in our result. 
Result so far: 108604.0
The remainder is 54 after subtracting 1504 from 1558.
Since there are no more digits in the dividend, we add a zero to the remainder making it 540, and continue the process.

Let's proceed to step 9:
If we divide 540 by 376, we get 1 and a remainder of 164.
Write down 1 as next digit of the result. 
Result so far: 108604.1
Subtracting 376 from 540 leaves us with 164.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1640, and continue the process.

On to step 10:
The number 376 fits into 1640 4 times, leaving a remainder of 136.
The number 4 becomes the next digit in our result. 
Result so far: 108604.14
The remainder is 136 after subtracting 1504 from 1640.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1360, and continue the process.

On to step 11:
When dividing 1360 by 376, we get 3 with a remainder of 232.
Use 3 as the next digit of our solution. 
Result so far: 108604.143
Subtracting 1128 from 1360 leaves us with 232.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2320, and continue the process.

Going ahead to step 12:
The number 376 fits into 2320 6 times, leaving a remainder of 64.
The next digit of our result is 6. 
Result so far: 108604.1436
Deduct 2256 from 2320 and we're left with 64.
Since there are no more digits in the dividend, we add a zero to the remainder making it 640, and continue the process.

Going ahead to step 13:
The number 376 fits into 640 1 times, leaving a remainder of 264.
The number 1 becomes the next digit in our result. 
Result so far: 108604.14361
The remainder is 264 after subtracting 376 from 640.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2640, and continue the process.

Let's proceed to step 14:
376 goes into 2640 7 times with a remainder of 8.
Write down 7 as next digit of the result. 
Result so far: 108604.143617
Deduct 2632 from 2640 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 15:
If we divide 80 by 376, we get 0 and a remainder of 80.
Use 0 as the next digit of our solution. 
Result so far: 108604.143617
Subtracting 0 from 80 leaves us with 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

On to step 16:
376 can be fit into 800 2 times, resulting in a remainder of 48.
Put 2 as the next digit of the answer. 
Result so far: 108604.14361702
Deduct 752 from 800 and we're left with 48.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

The final result is 108604.14361702 with a remainder of 4.8e-08.