We're dividing 51278840 by 157 
We want to divide 51278840 by 157.

Advancing to step 1:
When dividing 5 by 157, we get 0 with a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Fetch the next digit (1) from the dividend, attach it to 5 and continue: 51 / 157

Moving on to step 2:
157 goes into 51 0 times with a remainder of 51.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 51, we end up with 51.
Take the next digit (2) from the dividend and append it to 51, then repeat: 512 / 157

Going ahead to step 3:
If we divide 512 by 157, we get 3 and a remainder of 41.
The next digit of our result is 3. 
Result so far: 3.0
If we subtract 471 from 512, we get 41.
Grab the next digit (7) from the dividend, add it to 41, then carry on: 417 / 157

Going ahead to step 4:
157 goes into 417 2 times with a remainder of 103.
The number 2 becomes the next digit in our result. 
Result so far: 32.0
The remainder is 103 after subtracting 314 from 417.
Include the next digit (8) from the dividend after 103, then repeat: 1038 / 157

Moving on to step 5:
157 goes into 1038 6 times with a remainder of 96.
Put 6 as the next digit of the answer. 
Result so far: 326.0
The remainder is 96 after subtracting 942 from 1038.
Bring next digit (8) of the dividend behind the 96 and repeat the process: 968 / 157

Step 6:
157 can be fit into 968 6 times, resulting in a remainder of 26.
Put 6 as the next digit of the answer. 
Result so far: 3266.0
Deduct 942 from 968 and we're left with 26.
Include the next digit (4) from the dividend after 26, then repeat: 264 / 157

Let's proceed to step 7:
157 goes into 264 1 times with a remainder of 107.
The next digit of our result is 1. 
Result so far: 32661.0
Deduct 157 from 264 and we're left with 107.
Include the next digit (0) from the dividend after 107, then repeat: 1070 / 157

Going ahead to step 8:
157 can be fit into 1070 6 times, resulting in a remainder of 128.
Record the quotient 6 as the next digit in the result. 
Result so far: 326616.0
The remainder is 128 after subtracting 942 from 1070.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1280, and continue the process.

Advancing to step 9:
The number 157 fits into 1280 8 times, leaving a remainder of 24.
The number 8 becomes the next digit in our result. 
Result so far: 326616.8
The remainder is 24 after subtracting 1256 from 1280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Step 10:
When dividing 240 by 157, we get 1 with a remainder of 83.
The number 1 becomes the next digit in our result. 
Result so far: 326616.81
If we take 157 away from 240, we end up with 83.
Since there are no more digits in the dividend, we add a zero to the remainder making it 830, and continue the process.

Let's proceed to step 11:
830 divided by 157 is 5 with a remainder of 45.
Write down 5 as next digit of the result. 
Result so far: 326616.815
If we take 785 away from 830, we end up with 45.
Since there are no more digits in the dividend, we add a zero to the remainder making it 450, and continue the process.

Let's proceed to step 12:
450 divided by 157 is 2 with a remainder of 136.
Use 2 as the next digit of our solution. 
Result so far: 326616.8152
Subtracting 314 from 450 leaves us with 136.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1360, and continue the process.

Advancing to step 13:
1360 divided by 157 is 8 with a remainder of 104.
Record the quotient 8 as the next digit in the result. 
Result so far: 326616.81528
Subtracting 1256 from 1360 leaves us with 104.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1040, and continue the process.

Step 14:
157 goes into 1040 6 times with a remainder of 98.
Use 6 as the next digit of our solution. 
Result so far: 326616.815286
Subtract 942 from 1040 to get 98.
Since there are no more digits in the dividend, we add a zero to the remainder making it 980, and continue the process.

Let's proceed to step 15:
157 can be fit into 980 6 times, resulting in a remainder of 38.
The next digit of our result is 6. 
Result so far: 326616.8152866
Deduct 942 from 980 and we're left with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

The final result is 326616.8152866 with a remainder of 3.8e-07.