第 652 题:(2018 AIME II, 3)
Find the sum of all positive integers $b < 1000$ such that the base-$b$ integer $36_{b}$ is a perfect square and the base-$b$ integer $27_{b}$ is a perfect cube.
- $36_b=3b+6$ and $27_b=2b+7$, with $b\ge8$.
- $2b+7$ is an odd cube: $2b+7=(2k+1)^3$, $b=\frac{(2k+1)^3-7}2$, so $k=1,\dots,5$ give $b=10,59,168,361,662$ (and $k=6$ gives $b>1000$).
- $3b+6$ is a square only for $b=10$ ($36$) and $b=361$ ($1089=33^2$). The sum is $371$.
- The answer is $\boxed{371}$.
Find the sum of all positive integers $b < 1000$ such that the base-$b$ integer $19_{b}$ is a perfect square and the base-$b$ integer $40_{b}$ is a perfect cube.