The number 31000 is between 21584 and 21585. How many pairs of integers (m,n) are there such that 1≤m≤1583 and 3n<2m<2m+1<3n+1?
582
583
584
585
586