Suppose$\ k\ge 2\ $ is a positive integer.
Can I find all positive integers $\ n>1\ $ with $$2^{n-1}\equiv k\mod n$$ ?
I only found out yet that there is always a solution if $\ k>2\ $ and $\ k-1\ $ is not a power of $\ 2\ $. In this case, $\ k\ $ has an odd prime factor $\ q\ $, for which we have $\ 2^{q-1}\equiv k\mod q\ $ as desired.
I am particularly interested whether for $\ k=5\ $, there is a solution and whether for $\ k=11\ $, there is a solution besides $\ n=5\ $. Finally, for $\ k=3\ $, is $\ 10669\ $ the only solution?
Check out sequences in the OEIS linked from 2^n mod n OEIS Wiki page. In particular, you'll find that
ADDED. Overall, I believe there are infinitely many solutions for most integer $k$ (except some rare cases like $k=-1$). However, I doubt there exists a simple formula for getting them all. What we can hope for is getting all solutions below a certain bound.
From practical perspective, there is a number of tricks that may speed up the search for solutions, e.g. see Joe Crump's 2^n mod n = c webpage.