{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}”No results found for “{{searchWords}}”× back to contents
Let $N$ denote the number of ordered triples of positive integers $(a, b, c)$ such that $a, b, c \leq 3^6$ and $a^3 + b^3 + c^3$ is a multiple of $3^7$. Find the remainder when $N$ is divided by $1000$.
For $a$ prime to $3$, $a^3\equiv\pm1\pmod9$, and $a^3\equiv b^3\pmod{3^{k+1}}$ iff $a\equiv b\pmod{3^k}$. So the $486$ units $a\le3^6$ have distinct cubes mod $3^7$, filling all $486$ units that are $\equiv\pm1\pmod9$.
Group $a,b,c$ by $3$-adic valuation ($0,1,2,\ge3$, with $486,162,54,27$ numbers). Three units give $\pm1\pm1\pm1\not\equiv0\pmod9$; a lone smallest valuation can't cancel. So the valuations are $(0,0,\ge1)$, $(1,1,\ge2)$ or all $\ge2$, in some order.
$(0,0,\ge1)$: for any $a$ and $c$ ($486\cdot243$ ways), $-a^3-c^3\equiv\mp1\pmod9$ is a unit cube, so exactly one $b$, giving $118098$, times $3$ positions. $(1,1,\ge2)$: with $a=3a'$, $b=3b'$, we need $a'^3+b'^3\equiv-c^3/27\pmod{81}$, which fixes $b'\bmod27$, giving $162\cdot9\cdot81=118098$, times $3$. All $\ge2$, $a=9a''$ etc., and $729(a''^3+b''^3+c''^3)\equiv0$ means $3\mid a''+b''+c''$, giving $\frac{81^3}3=177147$.
$N=3\cdot118098+3\cdot118098+177147=885735$. The remainder is $735$. The answer is $\boxed{735}$.
Let $N$ denote the number of ordered triples of positive integers $(a, b, c)$ such that $a, b, c \leq 3^5$ and $a^3 + b^3 + c^3$ is a multiple of $3^7$. Find the remainder when $N$ is divided by $1000$.