|  | 
|  | 
| back to board | Good problem some hintsif a == 1
 output 1 n - 1;
 in the begin a %= n;
 this realy helps me with WA 2
 
 Edited by author 26.08.2008 14:42
Re: Good problem Don't understand... if for example, a=1, n=32 the result should be 1 15 17 31... not only 1 and 31Re: Good problem n should be prime | 
 | 
|