(a) Is there a natural number $n$ such that the number $2^n$ has last digit $6$ and the sum of the other digits is $2$? b) Are there natural numbers $a$ and $m\ge 3$ such that the number $a^m$ has last digit $6$ and the sum of the other digits is 3?
Source: Lithuania TST 2014 p4
Tags: number theory, Last digit, sum of digits
(a) Is there a natural number $n$ such that the number $2^n$ has last digit $6$ and the sum of the other digits is $2$? b) Are there natural numbers $a$ and $m\ge 3$ such that the number $a^m$ has last digit $6$ and the sum of the other digits is 3?