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.

A006287 Sum of squares of digits of ternary representation of n.

Original entry on oeis.org

0, 1, 4, 1, 2, 5, 4, 5, 8, 1, 2, 5, 2, 3, 6, 5, 6, 9, 4, 5, 8, 5, 6, 9, 8, 9, 12, 1, 2, 5, 2, 3, 6, 5, 6, 9, 2, 3, 6, 3, 4, 7, 6, 7, 10, 5, 6, 9, 6, 7, 10, 9, 10, 13, 4, 5, 8, 5, 6, 9, 8, 9, 12, 5, 6, 9, 6, 7
Offset: 0

Views

Author

Keywords

References

  • Jeffrey Shallit, personal communication.
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Programs

  • Maple
    A006287 := proc(n)
        local d ;
        convert(n,base,3) ;
        add(d^2,d=%) ;
    end proc: # R. J. Mathar, Jun 13 2014
  • Mathematica
    Table[Total[IntegerDigits[n,3]^2],{n,0,80}]  (* Harvey P. Dale, Apr 23 2011 *)