# numerical computation of an expression

I'm a beginner. I would like to draw the plot of a certain function $f(n)$, n=1,2,...

Specifically, my function is

$$\int_0^\infty\left(\frac12 + \frac12\cdot\mathrm{erf}(x/\sqrt 2)\right)^n \exp(-x^2) \mathrm{d}x$$

Thanks!

• Generally, you have a bigger chance of getting an answer if you show some effort of your own, e.g. some code that you got (but doesn't work), or some things you looked at – Lukas Lang Sep 7 '17 at 9:21
• Please see asking guidelines. One of which is to be familiar with basic syntax. – Kuba Sep 7 '17 at 9:24
• You need DiscretePlot, NIntegrate, how to define a function (in terms of n), and avoiding premature evaluation with NIntegrate – Szabolcs Sep 7 '17 at 9:51

You need DiscretePlot, NIntegrate, how to define a function (in terms of n), and avoiding premature evaluation with NIntegrate.
f[n_?NumericQ] :=