We're dividing 40151894 by 513 
We're looking to find how many times 513 goes into 40151894.

Going ahead to step 1:
513 goes into 4 0 times with a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 513

Going ahead to step 2:
513 can be fit into 40 0 times, resulting in a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 40 to get 40.
Fetch the next digit (1) from the dividend, attach it to 40 and continue: 401 / 513

Moving on to step 3:
513 can be fit into 401 0 times, resulting in a remainder of 401.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 401 to get 401.
Grab the next digit (5) from the dividend, add it to 401, then carry on: 4015 / 513

Step 4:
The number 513 fits into 4015 7 times, leaving a remainder of 424.
Record the quotient 7 as the next digit in the result. 
Result so far: 7.0
The remainder is 424 after subtracting 3591 from 4015.
Bring next digit (1) of the dividend behind the 424 and repeat the process: 4241 / 513

Let's proceed to step 5:
The number 513 fits into 4241 8 times, leaving a remainder of 137.
Put 8 as the next digit of the answer. 
Result so far: 78.0
If we take 4104 away from 4241, we end up with 137.
Append the next digit (8) from the dividend to 137 and continue with: 1378 / 513

On to step 6:
513 goes into 1378 2 times with a remainder of 352.
Write down 2 as next digit of the result. 
Result so far: 782.0
Deduct 1026 from 1378 and we're left with 352.
Bring next digit (9) of the dividend behind the 352 and repeat the process: 3529 / 513

Advancing to step 7:
513 goes into 3529 6 times with a remainder of 451.
Write down 6 as next digit of the result. 
Result so far: 7826.0
Subtract 3078 from 3529 to get 451.
Fetch the next digit (4) from the dividend, attach it to 451 and continue: 4514 / 513

On to step 8:
513 can be fit into 4514 8 times, resulting in a remainder of 410.
Record the quotient 8 as the next digit in the result. 
Result so far: 78268.0
If we take 4104 away from 4514, we end up with 410.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4100, and continue the process.

Let's proceed to step 9:
4100 divided by 513 is 7 with a remainder of 509.
Write down 7 as next digit of the result. 
Result so far: 78268.7
The remainder is 509 after subtracting 3591 from 4100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5090, and continue the process.

Let's proceed to step 10:
5090 divided by 513 is 9 with a remainder of 473.
Write down 9 as next digit of the result. 
Result so far: 78268.79
If we take 4617 away from 5090, we end up with 473.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4730, and continue the process.

Let's proceed to step 11:
When dividing 4730 by 513, we get 9 with a remainder of 113.
The next digit of our result is 9. 
Result so far: 78268.799
Deduct 4617 from 4730 and we're left with 113.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1130, and continue the process.

The final result is 78268.799 with a remainder of 0.0113.