40517973 divided by 395 
Our goal is to divide 40517973 by 395.

Moving on to step 1:
If we divide 4 by 395, 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 / 395

Going ahead to step 2:
395 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
Deduct 0 from 40 and we're left with 40.
Fetch the next digit (5) from the dividend, attach it to 40 and continue: 405 / 395

Let's proceed to step 3:
405 divided by 395 is 1 with a remainder of 10.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we take 395 away from 405, we end up with 10.
Grab the next digit (1) from the dividend, add it to 10, then carry on: 101 / 395

Let's proceed to step 4:
The number 395 fits into 101 0 times, leaving a remainder of 101.
The next digit of our result is 0. 
Result so far: 10.0
If we take 0 away from 101, we end up with 101.
Take the next digit (7) from the dividend and append it to 101, then repeat: 1017 / 395

Let's proceed to step 5:
1017 divided by 395 is 2 with a remainder of 227.
Put 2 as the next digit of the answer. 
Result so far: 102.0
Subtract 790 from 1017 to get 227.
Fetch the next digit (9) from the dividend, attach it to 227 and continue: 2279 / 395

Advancing to step 6:
When dividing 2279 by 395, we get 5 with a remainder of 304.
The number 5 becomes the next digit in our result. 
Result so far: 1025.0
The remainder is 304 after subtracting 1975 from 2279.
Bring next digit (7) of the dividend behind the 304 and repeat the process: 3047 / 395

Moving on to step 7:
If we divide 3047 by 395, we get 7 and a remainder of 282.
The number 7 becomes the next digit in our result. 
Result so far: 10257.0
If we subtract 2765 from 3047, we get 282.
Include the next digit (3) from the dividend after 282, then repeat: 2823 / 395

Step 8:
When dividing 2823 by 395, we get 7 with a remainder of 58.
Record the quotient 7 as the next digit in the result. 
Result so far: 102577.0
Subtract 2765 from 2823 to get 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

Step 9:
395 can be fit into 580 1 times, resulting in a remainder of 185.
The next digit of our result is 1. 
Result so far: 102577.1
The remainder is 185 after subtracting 395 from 580.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1850, and continue the process.

Moving on to step 10:
When dividing 1850 by 395, we get 4 with a remainder of 270.
Use 4 as the next digit of our solution. 
Result so far: 102577.14
If we subtract 1580 from 1850, we get 270.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2700, and continue the process.

Let's proceed to step 11:
395 can be fit into 2700 6 times, resulting in a remainder of 330.
Write down 6 as next digit of the result. 
Result so far: 102577.146
The remainder is 330 after subtracting 2370 from 2700.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3300, and continue the process.

Advancing to step 12:
395 goes into 3300 8 times with a remainder of 140.
The number 8 becomes the next digit in our result. 
Result so far: 102577.1468
Deduct 3160 from 3300 and we're left with 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1400, and continue the process.

Moving on to step 13:
1400 divided by 395 is 3 with a remainder of 215.
The number 3 becomes the next digit in our result. 
Result so far: 102577.14683
If we take 1185 away from 1400, we end up with 215.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2150, and continue the process.

Step 14:
2150 divided by 395 is 5 with a remainder of 175.
Write down 5 as next digit of the result. 
Result so far: 102577.146835
The remainder is 175 after subtracting 1975 from 2150.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1750, and continue the process.

Moving on to step 15:
395 can be fit into 1750 4 times, resulting in a remainder of 170.
The next digit of our result is 4. 
Result so far: 102577.1468354
Subtracting 1580 from 1750 leaves us with 170.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1700, and continue the process.

On to step 16:
When dividing 1700 by 395, we get 4 with a remainder of 120.
Put 4 as the next digit of the answer. 
Result so far: 102577.14683544
The remainder is 120 after subtracting 1580 from 1700.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1200, and continue the process.

The quotient of the division is 102577.14683544, and the remainder is 1.2e-07.