I came across such a problem. It asked me to construct a function $f$ on $\mathbb{R}$ with the property that, for all $p \in (1, \infty)$,
$$\int^{\infty}_{-\infty}|f(x)|^pdx<\infty \iff p=4.$$
I have no clue where to start. I've tried something like $\frac{1}{x^{1/4} lnx^{1/4}}$, but it doesn't seem right. Does this problem involving functional analysis? Can anyone enlighten me? Thanks in advance.