I ran into the sentence
Die Punkte A, B und C liegen auf einer Geraden.
From the dictionary I understand that "Gerade" takes on the form "Geraden" for both plural and genitive. But here it looks like the dative case, and it cannot be a masculine N-Noun (like Herr, Journalist, Student, etc.) because it's feminine. What's the explanation then?