Let's divide 8040435 by 371
Our goal is to divide 8040435 by 371.

Let's proceed to step 1:
8 divided by 371 is 0 with a remainder of 8.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 8 to get 8.
Grab the next digit (0) from the dividend, add it to 8, then carry on: 80 / 371

Advancing to step 2:
When dividing 80 by 371, we get 0 with a remainder of 80.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 80 after subtracting 0 from 80.
Include the next digit (4) from the dividend after 80, then repeat: 804 / 371

Step 3:
804 divided by 371 is 2 with a remainder of 62.
Use 2 as the next digit of our solution. 
Result so far: 2.0
If we take 742 away from 804, we end up with 62.
Take the next digit (0) from the dividend and append it to 62, then repeat: 620 / 371

Let's proceed to step 4:
The number 371 fits into 620 1 times, leaving a remainder of 249.
Write down 1 as next digit of the result. 
Result so far: 21.0
Subtract 371 from 620 to get 249.
Include the next digit (4) from the dividend after 249, then repeat: 2494 / 371

Step 5:
371 can be fit into 2494 6 times, resulting in a remainder of 268.
The next digit of our result is 6. 
Result so far: 216.0
Subtracting 2226 from 2494 leaves us with 268.
Grab the next digit (3) from the dividend, add it to 268, then carry on: 2683 / 371

Let's proceed to step 6:
The number 371 fits into 2683 7 times, leaving a remainder of 86.
The next digit of our result is 7. 
Result so far: 2167.0
The remainder is 86 after subtracting 2597 from 2683.
Include the next digit (5) from the dividend after 86, then repeat: 865 / 371

Step 7:
371 can be fit into 865 2 times, resulting in a remainder of 123.
Use 2 as the next digit of our solution. 
Result so far: 21672.0
Subtract 742 from 865 to get 123.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1230, and continue the process.

Step 8:
371 can be fit into 1230 3 times, resulting in a remainder of 117.
Use 3 as the next digit of our solution. 
Result so far: 21672.3
Subtract 1113 from 1230 to get 117.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1170, and continue the process.

Let's proceed to step 9:
If we divide 1170 by 371, we get 3 and a remainder of 57.
Write down 3 as next digit of the result. 
Result so far: 21672.33
Deduct 1113 from 1170 and we're left with 57.
Since there are no more digits in the dividend, we add a zero to the remainder making it 570, and continue the process.

After the division, we end up with 21672.33 and a remainder of 0.057.