plot erlang distribution

how to plot under different n. when n=5, n=50, it went on very well,
after n=100, a exponential part(x^k) in erlang pdf become inf .