A261009 Write 2^n in base 3, add up the "digits".
1, 2, 2, 4, 4, 4, 4, 6, 4, 8, 8, 10, 10, 8, 10, 16, 12, 14, 12, 16, 14, 18, 16, 12, 10, 12, 14, 20, 20, 22, 24, 26, 24, 22, 22, 22, 18, 20, 26, 28, 28, 28, 26, 30, 30, 30, 26, 26, 26, 32, 38, 40, 38, 38, 28, 34, 40, 42, 38, 40, 46, 40, 38, 42, 48, 44, 42, 40, 42, 48, 48, 44
Offset: 0
Examples
2^7 = 128_10 = 11202_3, so a(7) = 1+1+2+0+2 = 6.
Links
- Giovanni Resta, Table of n, a(n) for n = 0..10000
- Cernenoks J., Iraids J., Opmanis M., Opmanis R., Podnieks K., Integer complexity: experimental and analytical results II, arXiv:1409.0446 [math.NT] (September 2014)
- Ronald L. Graham, Donald E. Knuth and Oren Patashnik, Concrete Math., 2n-d ed.; Addison-Wesley, 1994
- Sebastian Tim Holdum, Frederik Ravn Klausen, Peter Michael Reichstein Rasmussen, Powers in prime bases and a problem on central coefficients, Integers 15 (2015), #A43
- K. Podnieks, Digits of pi: limits to the seeming randomness, arXiv:1411.3911 [math.NT], 2014.
Crossrefs
Programs
-
Haskell
a261009 = a053735 . a000079 -- Reinhard Zumkeller, Aug 14 2015
-
Maple
S:=n->add(i,i in convert(2^n,base,3)); [seq(S(n),n=0..100)];
-
Mathematica
Table[Total@ IntegerDigits[2^n, 3], {n, 0, 100}] (* Giovanni Resta, Aug 14 2015 *)
-
PARI
a(n) = vecsum(digits(2^n, 3)); \\ Michel Marcus, Aug 14 2015
Comments