GMAT Tip: Tackling Remainder Questions

Consider the following question:

N is a positive integer. When N is divided by 13, the remainder is 5. When N is divided by 46, the remainder is 31. What is the smallest possible value of N?