Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
@coudy it's a normal exercise among other ones, the chapter name is "divisibility in Z" It doesn't have any thing to do with programming, I can send you a picture (it's in french)
@coudy the first question of this exercise is : what is the last digit of $3^{1000}$ which is very easy. I still have the textbook and I didn't make any mistake...sorry