由x= lim n→∞ 2n+1 λn+2n = lim n→∞ 2 ( λ 2 )n+1 .当λ=2时,x=1;当|λ|<2时,x=2;当|λ|>2时,x=0.∴M的元素为0,1,2共3个.故答案为3.