A={x|(x-3)(x-a)=0,a∈R},
A={3,a,a∈R},
B={x|(x-4)(x-1)=0},
B={4,1},
A∪B={3,4,1,a,a∈R},
a=1时,A∩B={1},
a=4时,A∩B={4},
否则 A∩B=φ