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.
@JonMarkPerry: thanks, that's exactly what I did in the case of integer $a$. Maybe for the case $a$ rational I should post another specific question. Thanks again!