Consider the following statements?
(1) The length p of the perpendicular from the origin to the lines ax+by=c satisfies the relation p2=c2a2+b2
(2) The length p of the perpendicular from the origin to the line xa+yb=1 satisfies the relation 1p2=1a2+1b2
(3) The length p of the perpendicular from the origin to the line y=mx+c satisfies the relation 1p2=1+m2+c2c2
Which of the above is/are correct?