OFFSET
1,1
LINKS
K. D. Bajpai, Table of n, a(n) for n = 1..1000
EXAMPLE
The digitsum(5^4) = 13 > 11 = digitsum(5^(4+1)). Hence, 4 appears in the sequence.
The digitsum(5^11) = 38 > 28 = digitsum(5^(11+1)). Hence, 11 appears in the sequence.
MAPLE
a := proc(n) local a, b, d, e; a:=5^n; b:=add( i, i = convert((a), base, 10))(a); d:=5^(n+1); e:=add( i, i = convert((d), base, 10))(d); if b > e then RETURN (n); fi; end: seq(a(n), n=1..300);
MATHEMATICA
k=Table[Total[IntegerDigits[5^n, 10]], {n, 1, 300}]; Flatten[Position[Greater@@@Partition[k, 2, 1], True]]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
K. D. Bajpai, Apr 08 2014
STATUS
approved