Let $N$ be the number of ordered triples $(A,B,C)$ of integers satisfying the conditions: \begin{itemize} \item[(a)] $0\le A<B<C\le119$, \item[(b)] there exist integers $a$, $b$, and $c$, and prime $p$ where $0\le b<a<c<p$, \item[(c)] $p$ divides $A-a$, $B-b$, and $C-c$, and \item[(d)] each ordered triple $(A,B,C)$ and each ordered triple $(b,a,c)$ form arithmetic sequences. \end{itemize} Find $N$.