We divide 400945 by 51
Let's see how many times 51 fits into 400945.

Step 1:
4 divided by 51 is 0 with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 51

On to step 2:
When dividing 40 by 51, we get 0 with 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 (0) from the dividend, attach it to 40 and continue: 400 / 51

Advancing to step 3:
400 divided by 51 is 7 with a remainder of 43.
Use 7 as the next digit of our solution. 
Result so far: 7.0
Deduct 357 from 400 and we're left with 43.
Append the next digit (9) from the dividend to 43 and continue with: 439 / 51

Let's proceed to step 4:
439 divided by 51 is 8 with a remainder of 31.
Write down 8 as next digit of the result. 
Result so far: 78.0
The remainder is 31 after subtracting 408 from 439.
Append the next digit (4) from the dividend to 31 and continue with: 314 / 51

Moving on to step 5:
51 goes into 314 6 times with a remainder of 8.
Write down 6 as next digit of the result. 
Result so far: 786.0
Deduct 306 from 314 and we're left with 8.
Fetch the next digit (5) from the dividend, attach it to 8 and continue: 85 / 51

Going ahead to step 6:
51 can be fit into 85 1 times, resulting in a remainder of 34.
Write down 1 as next digit of the result. 
Result so far: 7861.0
If we take 51 away from 85, we end up with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Let's proceed to step 7:
51 goes into 340 6 times with a remainder of 34.
Use 6 as the next digit of our solution. 
Result so far: 7861.6
Subtract 306 from 340 to get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Advancing to step 8:
51 can be fit into 340 6 times, resulting in a remainder of 34.
Record the quotient 6 as the next digit in the result. 
Result so far: 7861.66
Subtract 306 from 340 to get 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

Our division results in 7861.66 with a remaining 0.034.