A 50V 2A rectifier would be nice.
If you use a 24V tranformer then the max output voltage that you can get is 21V (because the Vin must be around 3V higher that Vout).
For that value (21V) and the use of this equation: Vout = 1.25V * (1 + R2/R1) + Iadj * R2 (that describes the LM317) =>...