Let's divide 485161 by 40
Let's see how many times 40 fits into 485161.

On to step 1:
4 divided by 40 is 0 with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 4 to get 4.
Grab the next digit (8) from the dividend, add it to 4, then carry on: 48 / 40

Going ahead to step 2:
When dividing 48 by 40, we get 1 with a remainder of 8.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
The remainder is 8 after subtracting 40 from 48.
Include the next digit (5) from the dividend after 8, then repeat: 85 / 40

Advancing to step 3:
85 divided by 40 is 2 with a remainder of 5.
Record the quotient 2 as the next digit in the result. 
Result so far: 12.0
Deduct 80 from 85 and we're left with 5.
Fetch the next digit (1) from the dividend, attach it to 5 and continue: 51 / 40

Step 4:
51 divided by 40 is 1 with a remainder of 11.
Put 1 as the next digit of the answer. 
Result so far: 121.0
Subtracting 40 from 51 leaves us with 11.
Bring next digit (6) of the dividend behind the 11 and repeat the process: 116 / 40

Step 5:
40 can be fit into 116 2 times, resulting in a remainder of 36.
Put 2 as the next digit of the answer. 
Result so far: 1212.0
Subtracting 80 from 116 leaves us with 36.
Bring next digit (1) of the dividend behind the 36 and repeat the process: 361 / 40

Let's proceed to step 6:
40 can be fit into 361 9 times, resulting in a remainder of 1.
Put 9 as the next digit of the answer. 
Result so far: 12129.0
Deduct 360 from 361 and we're left 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.

Let's proceed to step 7:
40 goes into 10 0 times with a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 12129.0
Subtracting 0 from 10 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Let's proceed to step 8:
The number 40 fits into 100 2 times, leaving a remainder of 20.
Write down 2 as next digit of the result. 
Result so far: 12129.02
The remainder is 20 after subtracting 80 from 100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Step 9:
If we divide 200 by 40, we get 5 and a remainder of 0.
The next digit of our result is 5. 
Result so far: 12129.025
The remainder is 0 after subtracting 200 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 10:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 12129.025
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Let's proceed to step 11:
0 divided by 40 is 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 12129.025
Subtracting 0 from 0 leaves us with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final outcome is 12129.025, with a leftover of 0.0.