79317 ÷ 6 = 13219 R3
We're going to perform division on 79317 with 6 as the divisor.

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

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

Step 3:
6 goes into 13 2 times with a remainder of 1.
Write down 2 as next digit of of the result. 
Result so far: 132
Subtract 12 from 13 to get 1.
Bring next digit (1) of the dividend behind the 1 and repeat the process: 11 / 6

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

Step 5:
6 goes into 57 9 times with a remainder of 3.
Write down 9 as next digit of of the result. 
Result so far: 13219
Subtract 54 from 57 to get 3.

The final result is 13219 with a remainder of 3.