I was doing a question from a site,project euler specifically.I came to a question in which I was asked to calculate sum of digits in number 2^1000.Since I program very often I was able to do that question by making array and calculating as We used to do in elementary school.But I was not convinced because How a student calculate that if he/she don't know programming.I mean it is completely biased question isn't it ?
I am asking if there is any way to calculate digit sum in general (a^b)[a to the power b].For student who don't have programming background.
P.S:- If anybody wants to see implementation.I can post here
It's a one-liner in Maple:
convert(convert(2^1000, base, 10),`+`);
You could look up OEIS sequence A001370. Or you could just ask Wolfram Alpha.
But if you're asking for a way of doing it by hand, I very much doubt that there is any.