40221251 divided by 785 
We want to figure out the number of times 40221251 can be divided by 785.

On to step 1:
If we divide 4 by 785, we get 0 and a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 785

Advancing to step 2:
785 can be fit into 40 0 times, resulting in a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Fetch the next digit (2) from the dividend, attach it to 40 and continue: 402 / 785

Step 3:
785 goes into 402 0 times with a remainder of 402.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 402, we get 402.
Append the next digit (2) from the dividend to 402 and continue with: 4022 / 785

Moving on to step 4:
The number 785 fits into 4022 5 times, leaving a remainder of 97.
Use 5 as the next digit of our solution. 
Result so far: 5.0
Subtracting 3925 from 4022 leaves us with 97.
Fetch the next digit (1) from the dividend, attach it to 97 and continue: 971 / 785

On to step 5:
When dividing 971 by 785, we get 1 with a remainder of 186.
The next digit of our result is 1. 
Result so far: 51.0
Deduct 785 from 971 and we're left with 186.
Fetch the next digit (2) from the dividend, attach it to 186 and continue: 1862 / 785

Advancing to step 6:
If we divide 1862 by 785, we get 2 and a remainder of 292.
Record the quotient 2 as the next digit in the result. 
Result so far: 512.0
Subtract 1570 from 1862 to get 292.
Append the next digit (5) from the dividend to 292 and continue with: 2925 / 785

Step 7:
785 can be fit into 2925 3 times, resulting in a remainder of 570.
Put 3 as the next digit of the answer. 
Result so far: 5123.0
If we take 2355 away from 2925, we end up with 570.
Fetch the next digit (1) from the dividend, attach it to 570 and continue: 5701 / 785

Advancing to step 8:
785 goes into 5701 7 times with a remainder of 206.
Put 7 as the next digit of the answer. 
Result so far: 51237.0
If we subtract 5495 from 5701, we get 206.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2060, and continue the process.

Going ahead to step 9:
The number 785 fits into 2060 2 times, leaving a remainder of 490.
Write down 2 as next digit of the result. 
Result so far: 51237.2
If we take 1570 away from 2060, we end up with 490.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4900, and continue the process.

Advancing to step 10:
785 goes into 4900 6 times with a remainder of 190.
Write down 6 as next digit of the result. 
Result so far: 51237.26
Deduct 4710 from 4900 and we're left with 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1900, and continue the process.

Moving on to step 11:
1900 divided by 785 is 2 with a remainder of 330.
The next digit of our result is 2. 
Result so far: 51237.262
If we take 1570 away from 1900, we end up with 330.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3300, and continue the process.

Let's proceed to step 12:
When dividing 3300 by 785, we get 4 with a remainder of 160.
The number 4 becomes the next digit in our result. 
Result so far: 51237.2624
Subtracting 3140 from 3300 leaves us with 160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1600, and continue the process.

Going ahead to step 13:
1600 divided by 785 is 2 with a remainder of 30.
The next digit of our result is 2. 
Result so far: 51237.26242
The remainder is 30 after subtracting 1570 from 1600.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Moving on to step 14:
300 divided by 785 is 0 with a remainder of 300.
Record the quotient 0 as the next digit in the result. 
Result so far: 51237.26242
If we subtract 0 from 300, we get 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3000, and continue the process.

Step 15:
3000 divided by 785 is 3 with a remainder of 645.
The number 3 becomes the next digit in our result. 
Result so far: 51237.2624203
If we take 2355 away from 3000, we end up with 645.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6450, and continue the process.

Going ahead to step 16:
785 can be fit into 6450 8 times, resulting in a remainder of 170.
The next digit of our result is 8. 
Result so far: 51237.26242038
Subtract 6280 from 6450 to get 170.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1700, and continue the process.

Our division results in 51237.26242038 with a remaining 1.7e-07.