Given a <strong>0-indexed</strong> integer array <code>nums</code> of length <code>n</code> and an integer <code>k</code>, return <em>the <strong>number of pairs</strong></em><code>(i, j)</code><em>where</em><code>0 <= i < j < n</code>, <em>such that</em><code>nums[i] == nums[j]</code><em>and</em><code>(i * j)</code><em>is divisible by</em><code>k</code>.