I am not able to
Plot[(-1)^x + 2^x - 2 x - 1, {x, -4, 4}]
directly. Some rework might be needed with complex branch cuts perhaps.
There are real roots at $ x=3, x=2 $. I configured this expression with the first root 3 and there are several other concomitant complex roots. It comes to me as a surprise so with the infallible Mathematica. What may be something that I miss? I wish to be able to see the plot and all roots in the domain with your help.
NSolve[(-1)^x + 2^x - 2 x - 1 == 0 && -4 < Re@x < 4 && -1 < Im@x < 1, x]
$\endgroup$