The value of a in 2x+y=1 on comparing with the general form of a linear equation in two variables is 2.