While studying a certain Diophantine equation in the integer $k \ge 2$, I believe I have proven the necessary restriction
$$2^{k-1} \equiv 1\!\!\pmod{k^2}. \qquad(\star)$$
Based on what I read about Wieferich primes on Wikipedia (http://en.wikipedia.org/wiki/Wieferich_prime), if $k$ is a prime, it must be a Wieferich prime. So far, so good.
However, I haven’t found anything — on Wikipedia or elsewhere — that proves there are no composite solutions to the congruence ($\star$). Is that statement true? If so, what’s an easy proof? If not, what's an easy disproof?
Many thanks,
Kieren.
EDIT: In case it helps with the proof/disproof, $k$ is squarefree.
EDIT: This question has been cross-posted to MO (https://mathoverflow.net/questions/142526/are-wieferich-primes-the-only-solutions-to-the-equation-2k-1-equiv-1-pmo), once I realized the difficulty level of the question I was asking.