8582 ÷ 7 = 1226 R0
We're going to perform division on 8582 with 7 as the divisor.

Step 1:
7 goes into 8 1 times with a remainder of 1.
Write down 1 as next digit of of the result. 
Result so far: 1
Subtract 7 from 8 to get 1.
Bring next digit (5) of the dividend behind the 1 and repeat the process: 15 / 7

Step 2:
7 goes into 15 2 times with a remainder of 1.
Write down 2 as next digit of of the result. 
Result so far: 12
Subtract 14 from 15 to get 1.
Bring next digit (8) of the dividend behind the 1 and repeat the process: 18 / 7

Step 3:
7 goes into 18 2 times with a remainder of 4.
Write down 2 as next digit of of the result. 
Result so far: 122
Subtract 14 from 18 to get 4.
Bring next digit (2) of the dividend behind the 4 and repeat the process: 42 / 7

Step 4:
7 goes into 42 6 times with a remainder of 0.
Write down 6 as next digit of of the result. 
Result so far: 1226
Subtract 42 from 42 to get 0.

The final result is 1226 with a remainder of 0.