第 596 题:(2002 AIME II, 5)
Find the sum of all positive integers $a=2^n3^m$ where $n$ and $m$ are non-negative integers, for which $a^6$ is not a divisor of $6^a$.
- $a^6=2^{6n}3^{6m}$ divides $6^a=2^a3^a$ exactly when $6n\le a$ and $6m\le a$.
- If $m=0$, $a=2^n$ and $6n>2^n$ holds for $n=1,2,3,4$, giving $a=2,4,8,16$. If $n=0$, $a=3^m$ and $6m>3^m$ holds for $m=1,2$, giving $a=3,9$.
- If $n,m\ge1$, then $a\ge2^n\cdot3\ge6n$ and $a\ge2\cdot3^m\ge6m$, so the divisibility holds.
- The sum is $2+4+8+16+3+9=42$. The answer is $\boxed{042}$.
Find the sum of all positive integers $a=2^n3^m$ where $n$ and $m$ are non-negative integers, for which $a^8$ is not a divisor of $6^a$.