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.

A117970 Position of first 0 counting from the least significant digit in the ternary expansion of 2^n.

Original entry on oeis.org

0, 0, 0, 0, 0, 3, 2, 2, 4, 4, 5, 4, 2, 2, 4, 0, 3, 4, 2, 2, 3, 3, 8, 3, 2, 2, 5, 5, 6, 5, 2, 2, 11, 4, 3, 5, 2, 2, 3, 3, 11, 3, 2, 2, 5, 8, 4, 5, 2, 2, 13, 5, 3, 5, 2, 2, 3, 3, 4, 3, 2, 2, 4, 4, 7, 4, 2, 2, 4, 6, 3, 4, 2, 2, 3, 3, 7, 3, 2, 2, 6, 6, 7, 6, 2, 2, 10, 4, 3, 7, 2, 2, 3, 3, 5, 3, 2, 2, 11, 5, 4, 17
Offset: 0

Views

Author

Eric W. Weisstein, Apr 06 2006

Keywords

Crossrefs

Programs

  • PARI
    a(n) = { my (p=2^n); for (k=1, oo, if (p==0, return (0), p%3==0, return (k), p\=3)) } \\ Rémy Sigrist, Dec 20 2019

Extensions

Edited by Charles R Greathouse IV, Aug 05 2010
a(0) = 0 prepended by Rémy Sigrist, Dec 20 2019