here is my working out to find answer, if u feel that the answer is wrong then do the reverse calculation by putting n value to the equation. hope u understood and stay safe!
No, it is not a function. Since all the lines have been drawn in the grid line do not have any connection between them even a point in common. I hope this has been useful for you.