当x=1时,y=k/x=k,A(1,k),当x=2时,y=k/x=k/2,A(2,k/2),设直线AB的解析式为y=ax+b,则,a+b=k,2a+b=k/2解得a=-k/2,b=3k/2所以直线AB解析式为y=(-k/2)x+3k/2当y=0时,x=3所以C(3,0)由△AOC面积为6,得,(1/2)*OC*k=6,即(1/2)×3k=6,解得k=4