We're dividing 403040 by 7 
Let's see how many times 7 fits into 403040.

Going ahead to step 1:
When dividing 4 by 7, we get 0 with a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Take the next digit (0) from the dividend and append it to 4, then repeat: 40 / 7

Step 2:
If we divide 40 by 7, we get 5 and a remainder of 5.
Put 5 as the next digit of the answer. 
Result so far: 5.0
Deduct 35 from 40 and we're left with 5.
Bring next digit (3) of the dividend behind the 5 and repeat the process: 53 / 7

Going ahead to step 3:
53 divided by 7 is 7 with a remainder of 4.
The next digit of our result is 7. 
Result so far: 57.0
Deduct 49 from 53 and we're left with 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 7

Moving on to step 4:
The number 7 fits into 40 5 times, leaving a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 575.0
Deduct 35 from 40 and we're left with 5.
Take the next digit (4) from the dividend and append it to 5, then repeat: 54 / 7

Step 5:
If we divide 54 by 7, we get 7 and a remainder of 5.
The next digit of our result is 7. 
Result so far: 5757.0
If we subtract 49 from 54, we get 5.
Append the next digit (0) from the dividend to 5 and continue with: 50 / 7

Moving on to step 6:
If we divide 50 by 7, we get 7 and a remainder of 1.
The next digit of our result is 7. 
Result so far: 57577.0
Subtract 49 from 50 to get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

On to step 7:
If we divide 10 by 7, we get 1 and a remainder of 3.
The number 1 becomes the next digit in our result. 
Result so far: 57577.1
Deduct 7 from 10 and we're left with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 8:
When dividing 30 by 7, we get 4 with a remainder of 2.
Write down 4 as next digit of the result. 
Result so far: 57577.14
Subtracting 28 from 30 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 9:
The number 7 fits into 20 2 times, leaving a remainder of 6.
Put 2 as the next digit of the answer. 
Result so far: 57577.142
Deduct 14 from 20 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Going ahead to step 10:
The number 7 fits into 60 8 times, leaving a remainder of 4.
Use 8 as the next digit of our solution. 
Result so far: 57577.1428
The remainder is 4 after subtracting 56 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 11:
7 can be fit into 40 5 times, resulting in a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 57577.14285
Subtract 35 from 40 to get 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Let's proceed to step 12:
7 can be fit into 50 7 times, resulting in a remainder of 1.
The next digit of our result is 7. 
Result so far: 57577.142857
If we take 49 away from 50, we end up with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 13:
When dividing 10 by 7, we get 1 with a remainder of 3.
Write down 1 as next digit of the result. 
Result so far: 57577.1428571
Subtracting 7 from 10 leaves us with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 14:
7 goes into 30 4 times with a remainder of 2.
Put 4 as the next digit of the answer. 
Result so far: 57577.14285714
Deduct 28 from 30 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

After the division, we end up with 57577.14285714 and a remainder of 2e-09.