ClearAll;
$DefaultFont = {"Times-Roman",10};
P[0,x_] = 1; P[1,x_] = x; P[n_,x_]:= Simplify[((2n-1)x P[n-1,x] - (n-1) P[n-2,x])/n];
P[3,x]
P[5,x]