The elements of R={(a,b):a+5b=42, a,b∈N}
satisfy a=42−5b>0.
Hence,
5b<42⟹b=1,2,3,4,5,6,7,8.
Therefore,
m=8.
Now,
∑n=1m(1−in!)=8−∑n=18in!.
Observe that
i1!=i,i2!=i2=−1,i3!=i6=i2=−1.
Also, for n≥4,
n! is divisible by 4,
so
in!=1.
Therefore,
∑n=18in!=i+(−1)+(−1)+1+1+1+1+1=3+i.
Hence,
x+iy=8−(3+i)=5−i.
Thus,
x=5,y=−1.
Finally,
m+x+y=8+5−1=12.
Therefore,
12.