Proof and extension of the resistance formula for an m x n cobweb network conjectured by Tan, Zhou and Yang