Problem

Source: Turkey TST 2014 Day 2 Problem 4

Tags: modular arithmetic, number theory proposed, number theory



Find all pairs $(m,n)$ of positive odd integers, such that $n \mid 3m+1$ and $m \mid n^2+3$.