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.

A262438 Number of digits of hexadecimal representation of n.

Original entry on oeis.org

1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2
Offset: 0

Views

Author

Reinhard Zumkeller, Sep 22 2015

Keywords

Comments

Length of n-th row in A262437.

Crossrefs

Programs

  • Haskell
    a262438 = length . a262437_row
    
  • Maple
    A262438 := proc(n)
        if n =0 then
            1;
        else
            1+floor(log[16](n)) ;
        end if;
    end proc: # R. J. Mathar, Dec 14 2015
  • PARI
    a(n) = if (n, #digits(n, 16), 1); \\ Michel Marcus, Dec 14 2015