776271 divided by 40 
Let's see how many times 40 fits into 776271.

Let's proceed to step 1:
40 can be fit into 7 0 times, resulting in a remainder of 7.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 7 after subtracting 0 from 7.
Bring next digit (7) of the dividend behind the 7 and repeat the process: 77 / 40

Advancing to step 2:
40 goes into 77 1 times with a remainder of 37.
Use 1 as the next digit of our solution. 
Result so far: 1.0
Deduct 40 from 77 and we're left with 37.
Bring next digit (6) of the dividend behind the 37 and repeat the process: 376 / 40

Moving on to step 3:
If we divide 376 by 40, we get 9 and a remainder of 16.
The number 9 becomes the next digit in our result. 
Result so far: 19.0
The remainder is 16 after subtracting 360 from 376.
Bring next digit (2) of the dividend behind the 16 and repeat the process: 162 / 40

Advancing to step 4:
162 divided by 40 is 4 with a remainder of 2.
Write down 4 as next digit of the result. 
Result so far: 194.0
If we take 160 away from 162, we end up with 2.
Grab the next digit (7) from the dividend, add it to 2, then carry on: 27 / 40

Moving on to step 5:
When dividing 27 by 40, we get 0 with a remainder of 27.
Put 0 as the next digit of the answer. 
Result so far: 1940.0
Subtract 0 from 27 to get 27.
Fetch the next digit (1) from the dividend, attach it to 27 and continue: 271 / 40

Going ahead to step 6:
271 divided by 40 is 6 with a remainder of 31.
Write down 6 as next digit of the result. 
Result so far: 19406.0
Deduct 240 from 271 and we're left with 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Let's proceed to step 7:
When dividing 310 by 40, we get 7 with a remainder of 30.
Use 7 as the next digit of our solution. 
Result so far: 19406.7
If we take 280 away from 310, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 8:
40 can be fit into 300 7 times, resulting in a remainder of 20.
Record the quotient 7 as the next digit in the result. 
Result so far: 19406.77
If we subtract 280 from 300, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

After the division, we end up with 19406.77 and a remainder of 0.02.