find x(not necessary to be the smallest one).
======================================
by my knowledge,
if a^x≡1(mod b) and a and b are relatively prime,then we can find x by euler function.
a^[ φ(b) ]≡1(mod b).
for detail,http://en.wikipedia.org/wiki/Euler's_totient_function
so in the above case,
x=φ(4) =2
==========================================
my question arise, if a and b is not relatively prime, how can i solve the question?
更新1:
http://hk.knowledge.yahoo.com/question/?qid=7007102102544 http://hk.knowledge.yahoo.com/question/?qid=7007102102510 http://hk.knowledge.yahoo.com/question/?qid=7007102101873 and if you have time plz help me for the above questions, thz all