A250131 a(n) is the odd part of the digital sum of 3^n divided by the maximal possible power of 3.
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 1, 1, 5, 1, 5, 1, 5, 1, 1, 7, 7, 1, 1, 1, 7, 1, 7, 1, 11, 1, 1, 5, 5, 1, 5, 11, 5, 1, 5, 11, 1, 7, 13, 1, 1, 13, 13, 5, 1, 5, 5, 1, 7, 13, 11, 5, 17, 17, 1, 5, 13, 1, 17, 17, 1, 5, 1, 17, 19, 5, 17, 1
Offset: 1
Programs
-
PARI
a(n) = my(sd = sumdigits(3^n)); sd/(3^(valuation(sd, 3))*2^(valuation(sd, 2))); \\ Michel Marcus, Dec 12 2014
Extensions
More terms from Peter J. C. Moses, Dec 12 2014
Comments