If A={0,1,2,3}A = \{0, 1, 2, 3\}A={0,1,2,3 and , then
Applying y=x+1y=x+1y=x+1 with both x,y∈A={0,1,2,3}x,y\in A=\{0,1,2,3\}x,y∈A={0,1,2,3}: x=0,1,2x=0,1,2x=0,1,2 give y=1,2,3y=1,2,3y=1,2,3, all in AAA, but x=3x=3x=3 gives y=4∉Ay=4\notin Ay=4∈/A and is excluded. So R={(0,1),(1,2),(2,3)}R=\{(0,1),(1,2),(2,3)\}R={(0,1),(1,2),(2,3)}.