A262438 Number of digits of hexadecimal representation of n.
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
Links
- Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
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
Comments