solve[(x-n) mod (2n)==0, n>0, x>0, n]