Skip to main content

1995 AIME Problem 8

Problem 8 of 15IntermediateAlgebraNumber TheoryCombinatorics

For how many ordered pairs of positive integers (x,y),(x,y), with y<x≤100,y<x\leq100, are both xy\frac{x}{y} and x+1y+1\frac{x+1}{y+1} integers?

Your answer

Integer from 0 to 999
Show solution

Solution

Write x=ay.x=ay. Modulo y+1,y+1, we have y≡−1,y\equiv-1, so x+1x+1 is divisible by y+1y+1 exactly when a≡1(mody+1).a\equiv1\pmod {y+1}. Since x>y,x>y, write a=1+t(y+1)a=1+t(y+1) with t≥1.t\geq1. The bound x≤100x\leq100 becomes t≤⌊100−yy(y+1)⌋.t\leq\left\lfloor\frac{100-y}{y(y+1)}\right\rfloor. Only 1≤y≤91\leq y\leq9 contribute, giving 49+16+8+4+3+2+1+1+1=85.\begin{aligned}49+16+8&+4+3\\&+2+1+1+1\\&=85.\end{aligned}
AoPS wiki

Tagged: divisibility · floor and ceiling functions · counting pairs

More practice