Let's divide 40507241 by 801
We're looking to find how many times 801 goes into 40507241.

Advancing to step 1:
When dividing 4 by 801, we get 0 with a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 801

Let's proceed to step 2:
801 goes into 40 0 times with a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Grab the next digit (5) from the dividend, add it to 40, then carry on: 405 / 801

Advancing to step 3:
If we divide 405 by 801, we get 0 and a remainder of 405.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 405 leaves us with 405.
Bring next digit (0) of the dividend behind the 405 and repeat the process: 4050 / 801

Let's proceed to step 4:
The number 801 fits into 4050 5 times, leaving a remainder of 45.
Use 5 as the next digit of our solution. 
Result so far: 5.0
The remainder is 45 after subtracting 4005 from 4050.
Fetch the next digit (7) from the dividend, attach it to 45 and continue: 457 / 801

Going ahead to step 5:
801 can be fit into 457 0 times, resulting in a remainder of 457.
Write down 0 as next digit of the result. 
Result so far: 50.0
Deduct 0 from 457 and we're left with 457.
Append the next digit (2) from the dividend to 457 and continue with: 4572 / 801

Going ahead to step 6:
4572 divided by 801 is 5 with a remainder of 567.
Put 5 as the next digit of the answer. 
Result so far: 505.0
If we subtract 4005 from 4572, we get 567.
Grab the next digit (4) from the dividend, add it to 567, then carry on: 5674 / 801

Moving on to step 7:
The number 801 fits into 5674 7 times, leaving a remainder of 67.
Put 7 as the next digit of the answer. 
Result so far: 5057.0
Subtracting 5607 from 5674 leaves us with 67.
Grab the next digit (1) from the dividend, add it to 67, then carry on: 671 / 801

Going ahead to step 8:
671 divided by 801 is 0 with a remainder of 671.
Put 0 as the next digit of the answer. 
Result so far: 50570.0
The remainder is 671 after subtracting 0 from 671.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6710, and continue the process.

On to step 9:
801 goes into 6710 8 times with a remainder of 302.
The next digit of our result is 8. 
Result so far: 50570.8
The remainder is 302 after subtracting 6408 from 6710.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3020, and continue the process.

Moving on to step 10:
3020 divided by 801 is 3 with a remainder of 617.
Record the quotient 3 as the next digit in the result. 
Result so far: 50570.83
The remainder is 617 after subtracting 2403 from 3020.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6170, and continue the process.

Step 11:
If we divide 6170 by 801, we get 7 and a remainder of 563.
Write down 7 as next digit of the result. 
Result so far: 50570.837
Subtracting 5607 from 6170 leaves us with 563.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5630, and continue the process.

On to step 12:
801 can be fit into 5630 7 times, resulting in a remainder of 23.
Put 7 as the next digit of the answer. 
Result so far: 50570.8377
Deduct 5607 from 5630 and we're left with 23.
Since there are no more digits in the dividend, we add a zero to the remainder making it 230, and continue the process.

The final result is 50570.8377 with a remainder of 0.00023.