40366378 ÷ 516 
Our goal is to divide 40366378 by 516.

Step 1:
4 divided by 516 is 0 with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 516

Going ahead to step 2:
The number 516 fits into 40 0 times, leaving a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 40 after subtracting 0 from 40.
Fetch the next digit (3) from the dividend, attach it to 40 and continue: 403 / 516

Advancing to step 3:
If we divide 403 by 516, we get 0 and a remainder of 403.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 403, we end up with 403.
Take the next digit (6) from the dividend and append it to 403, then repeat: 4036 / 516

Let's proceed to step 4:
516 goes into 4036 7 times with a remainder of 424.
Write down 7 as next digit of the result. 
Result so far: 7.0
The remainder is 424 after subtracting 3612 from 4036.
Bring next digit (6) of the dividend behind the 424 and repeat the process: 4246 / 516

Going ahead to step 5:
If we divide 4246 by 516, we get 8 and a remainder of 118.
Record the quotient 8 as the next digit in the result. 
Result so far: 78.0
If we take 4128 away from 4246, we end up with 118.
Grab the next digit (3) from the dividend, add it to 118, then carry on: 1183 / 516

Step 6:
516 goes into 1183 2 times with a remainder of 151.
Write down 2 as next digit of the result. 
Result so far: 782.0
Deduct 1032 from 1183 and we're left with 151.
Take the next digit (7) from the dividend and append it to 151, then repeat: 1517 / 516

Going ahead to step 7:
516 goes into 1517 2 times with a remainder of 485.
Use 2 as the next digit of our solution. 
Result so far: 7822.0
If we take 1032 away from 1517, we end up with 485.
Fetch the next digit (8) from the dividend, attach it to 485 and continue: 4858 / 516

Going ahead to step 8:
If we divide 4858 by 516, we get 9 and a remainder of 214.
Use 9 as the next digit of our solution. 
Result so far: 78229.0
If we take 4644 away from 4858, we end up with 214.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2140, and continue the process.

Going ahead to step 9:
When dividing 2140 by 516, we get 4 with a remainder of 76.
The next digit of our result is 4. 
Result so far: 78229.4
Subtract 2064 from 2140 to get 76.
Since there are no more digits in the dividend, we add a zero to the remainder making it 760, and continue the process.

Step 10:
The number 516 fits into 760 1 times, leaving a remainder of 244.
Write down 1 as next digit of the result. 
Result so far: 78229.41
Deduct 516 from 760 and we're left with 244.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2440, and continue the process.

Step 11:
516 goes into 2440 4 times with a remainder of 376.
Use 4 as the next digit of our solution. 
Result so far: 78229.414
If we subtract 2064 from 2440, we get 376.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3760, and continue the process.

Moving on to step 12:
If we divide 3760 by 516, we get 7 and a remainder of 148.
Use 7 as the next digit of our solution. 
Result so far: 78229.4147
If we subtract 3612 from 3760, we get 148.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1480, and continue the process.

Going ahead to step 13:
516 goes into 1480 2 times with a remainder of 448.
Record the quotient 2 as the next digit in the result. 
Result so far: 78229.41472
Subtract 1032 from 1480 to get 448.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4480, and continue the process.

Step 14:
When dividing 4480 by 516, we get 8 with a remainder of 352.
The number 8 becomes the next digit in our result. 
Result so far: 78229.414728
Subtracting 4128 from 4480 leaves us with 352.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3520, and continue the process.

Moving on to step 15:
If we divide 3520 by 516, we get 6 and a remainder of 424.
Write down 6 as next digit of the result. 
Result so far: 78229.4147286
If we subtract 3096 from 3520, we get 424.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4240, and continue the process.

Let's proceed to step 16:
516 goes into 4240 8 times with a remainder of 112.
Write down 8 as next digit of the result. 
Result so far: 78229.41472868
Deduct 4128 from 4240 and we're left with 112.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1120, and continue the process.

Our division results in 78229.41472868 with a remaining 1.12e-07.