i是虚数单位,若1+2i1+i=a+bi(a,b∈R),则a+b的值是(  ) A.-12 B.-2 C.2 D.12

问题描述:

i是虚数单位,若

1+2i
1+i
=a+bi(a,b∈R),则a+b的值是(  )
A. -
1
2

B. -2
C. 2
D.
1
2

1+2i
1+i
=
(1+2i)(1−i)
(1+i)(1−i)
=
3+i
2
,且
1+2i
1+i
=a+bi,∴a=
3
2
,b=
1
2

则a+b=
3
2
+
1
2
=2.
故选C.