For some positive integers $p$, there is a quadrilateral $ABCD$ with positive integer side lengths, perimeter $p$, right angles at $B$ and $C$, $AB=2$, and $CD=AD$.
How many different values of $p$ are possible?
EDIT: $2015\geq{p}$
This is a contest problem by the AMC 12. As of right now, I am completely lost on how to solve it. I tried to rewrite everything as a single variable and then sieving through the integer values generated. Unfortunately, I could not consider the right angle.
I would appreciate IF HINTS ARE ONLY GIVEN AT FIRST. Thank you.
If $AD =CD= x$, then we have $BC= \sqrt{x^2-(2-x)^2} =2\sqrt{x-1}$. Thus, perimeter $$p = 2x +2\sqrt{x-1} +2$$ Now check what are the possible values $p$ can take.
Also, on a side note, is there any other condition specified?