设集合A={1,a,b},B={a,a2,ab},且A=B,则实数a=_,b=_.

问题描述:

设集合A={1,a,b},B={a,a2,ab},且A=B,则实数a=______,b=______.

∵集合A={1,a,b},B={a,a2,ab},且A=B,
∴a≠1
则1=a2且b=ab,或1=ab且b=a2
若1=a2且b=ab,则a=-1,b=0,
此时A=B={-1,0,1}满足条件;
若1=ab且b=a2,则a=b=1不满足条件,
故答案为:-1,0.