For how many ordered pairs (p,q) of positive integers with q < p ≤ 2015 is each of p/q, (p+1)/(q+1) and (p+2)/(q+2) an integer?
I see what I did. I didn't consider square factors. Put another way I included nonessential factors. For example, with q=2, 2*3*4=24 will work for p but so will 3*4.

Posted by xdog
on 20150603 18:39:48 