31878521 divided by 395 
We want to divide 31878521 by 395.

Let's proceed to step 1:
If we divide 3 by 395, we get 0 and a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Fetch the next digit (1) from the dividend, attach it to 3 and continue: 31 / 395

On to step 2:
When dividing 31 by 395, we get 0 with a remainder of 31.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 31 after subtracting 0 from 31.
Fetch the next digit (8) from the dividend, attach it to 31 and continue: 318 / 395

Step 3:
When dividing 318 by 395, we get 0 with a remainder of 318.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 318 leaves us with 318.
Grab the next digit (7) from the dividend, add it to 318, then carry on: 3187 / 395

Step 4:
The number 395 fits into 3187 8 times, leaving a remainder of 27.
Use 8 as the next digit of our solution. 
Result so far: 8.0
If we take 3160 away from 3187, we end up with 27.
Take the next digit (8) from the dividend and append it to 27, then repeat: 278 / 395

Let's proceed to step 5:
If we divide 278 by 395, we get 0 and a remainder of 278.
Use 0 as the next digit of our solution. 
Result so far: 80.0
Subtract 0 from 278 to get 278.
Grab the next digit (5) from the dividend, add it to 278, then carry on: 2785 / 395

Step 6:
2785 divided by 395 is 7 with a remainder of 20.
Write down 7 as next digit of the result. 
Result so far: 807.0
If we take 2765 away from 2785, we end up with 20.
Fetch the next digit (2) from the dividend, attach it to 20 and continue: 202 / 395

Going ahead to step 7:
395 goes into 202 0 times with a remainder of 202.
Write down 0 as next digit of the result. 
Result so far: 8070.0
Subtract 0 from 202 to get 202.
Fetch the next digit (1) from the dividend, attach it to 202 and continue: 2021 / 395

On to step 8:
395 can be fit into 2021 5 times, resulting in a remainder of 46.
Put 5 as the next digit of the answer. 
Result so far: 80705.0
If we take 1975 away from 2021, we end up with 46.
Since there are no more digits in the dividend, we add a zero to the remainder making it 460, and continue the process.

Going ahead to step 9:
If we divide 460 by 395, we get 1 and a remainder of 65.
Write down 1 as next digit of the result. 
Result so far: 80705.1
If we subtract 395 from 460, we get 65.
Since there are no more digits in the dividend, we add a zero to the remainder making it 650, and continue the process.

Moving on to step 10:
If we divide 650 by 395, we get 1 and a remainder of 255.
The number 1 becomes the next digit in our result. 
Result so far: 80705.11
Deduct 395 from 650 and we're left with 255.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2550, and continue the process.

Our division results in 80705.11 with a remaining 0.255.