We divide 31378677 by 126
Let's see how many times 126 fits into 31378677.

Moving on to step 1:
The number 126 fits into 3 0 times, leaving a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Bring next digit (1) of the dividend behind the 3 and repeat the process: 31 / 126

Moving on to step 2:
126 goes into 31 0 times with a remainder of 31.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 31 to get 31.
Include the next digit (3) from the dividend after 31, then repeat: 313 / 126

On to step 3:
If we divide 313 by 126, we get 2 and a remainder of 61.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
The remainder is 61 after subtracting 252 from 313.
Bring next digit (7) of the dividend behind the 61 and repeat the process: 617 / 126

On to step 4:
If we divide 617 by 126, we get 4 and a remainder of 113.
Write down 4 as next digit of the result. 
Result so far: 24.0
If we take 504 away from 617, we end up with 113.
Grab the next digit (8) from the dividend, add it to 113, then carry on: 1138 / 126

Advancing to step 5:
1138 divided by 126 is 9 with a remainder of 4.
Use 9 as the next digit of our solution. 
Result so far: 249.0
Subtracting 1134 from 1138 leaves us with 4.
Fetch the next digit (6) from the dividend, attach it to 4 and continue: 46 / 126

Going ahead to step 6:
126 goes into 46 0 times with a remainder of 46.
Record the quotient 0 as the next digit in the result. 
Result so far: 2490.0
Subtracting 0 from 46 leaves us with 46.
Take the next digit (7) from the dividend and append it to 46, then repeat: 467 / 126

Going ahead to step 7:
The number 126 fits into 467 3 times, leaving a remainder of 89.
Write down 3 as next digit of the result. 
Result so far: 24903.0
Subtracting 378 from 467 leaves us with 89.
Fetch the next digit (7) from the dividend, attach it to 89 and continue: 897 / 126

Advancing to step 8:
The number 126 fits into 897 7 times, leaving a remainder of 15.
Put 7 as the next digit of the answer. 
Result so far: 249037.0
If we take 882 away from 897, we end up with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

On to step 9:
126 goes into 150 1 times with a remainder of 24.
The number 1 becomes the next digit in our result. 
Result so far: 249037.1
If we take 126 away from 150, we end up with 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Let's proceed to step 10:
126 can be fit into 240 1 times, resulting in a remainder of 114.
Put 1 as the next digit of the answer. 
Result so far: 249037.11
If we subtract 126 from 240, we get 114.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1140, and continue the process.

After the division, we end up with 249037.11 and a remainder of 0.114.