cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A055223 One-fourth the digital sum of base 5 representations of 2^n.

Original entry on oeis.org

1, 1, 1, 1, 2, 1, 1, 2, 3, 3, 3, 3, 2, 3, 4, 5, 5, 5, 4, 3, 5, 6, 7, 5, 8, 8, 6, 8, 10, 10, 8, 6, 7, 8, 8, 10, 7, 9, 9, 10, 11, 10, 9, 10, 9, 11, 11, 11, 11, 12, 13, 13, 12, 14, 10, 14, 17, 15, 13, 13, 12, 15, 14, 16, 15, 12, 14, 15, 15, 16, 15, 15, 15, 16, 13, 12, 16, 17, 14, 20, 20, 20
Offset: 2

Views

Author

Lekraj Beedassy, Jun 20 2000

Keywords

Examples

			a(19) = 4 because 2^20 = 1048576 = 232023301 (to scale 5) and (2+3+2+0+2+3+3+0+1)/4 = 4.
		

Crossrefs

Cf. A000866.

Programs

  • Mathematica
    a[n_] := 1/4* Module[{aux = IntegerDigits[2^n, 5]},Sum[aux[[i]], {i, 1, Length[aux]}]]; Table[a[n], {n, 2, 83}] (* José María Grau Ribas, Feb 13 2010 *)

Extensions

More terms from James Sellers, Jul 04 2000