a) Since 7n=72+73+74+…+72017+72018, we have 6n=7n−n=72018−7. It follows that 72018=6n+7=6(n+1)+1, and the remainder of the division by 6 of the number 72018 is 1.
Also, n=7+72(1+7)+74(1+7)+…+72016(1+7)=7+8⋅(72+74+…+72016)=7+8p, where p=72+74+…+72016. Hence, 72018=6(8p+7)+7=48p+42+7=48p+49=48(p+1)+1, wherefrom we conclude that the remainder of the division of 72018 by 48 is 1.
b) We have 6n=72018−7. Denoting by u2(x) the number built with the last two digits of the number x, we have u2(74k)=01, u2(74k+1)=07, u2(74k+2)=49, u2(74k+3)=43.
Then u2(72018)=u2(74⋅504+2)=49. Hence u2(6n)=u2(49−7)=42.