login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A259368 Number of digits in n^n when written in binary. 0
1, 3, 5, 9, 12, 16, 20, 25, 29, 34, 39, 44, 49, 54, 59, 65, 70, 76, 81, 87, 93, 99, 105, 111, 117, 123, 129, 135, 141, 148, 154, 161, 167, 173, 180, 187, 193, 200, 207, 213, 220, 227, 234, 241, 248, 255, 262, 269, 276, 283, 290, 297, 304, 311, 318, 326, 333 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Table of n, a(n) for n=1..57.

FORMULA

a(n) = floor(n*log(n)/log(2)) + 1.

a(n) = A070939(A000312(n)). - Michel Marcus, Jul 03 2015

EXAMPLE

For n=3, 3^3=11011_2 so a(3)=5.

MATHEMATICA

Array[IntegerLength[#^#, 2] &, 60] (* or *)

Array[Floor[# Log[2, #]] + 1 &, 60] (* Michael De Vlieger, Jul 03 2015 *)

PROG

(PARI) a(n) = #binary(n^n); \\ Michel Marcus, Jul 03 2015

(MAGMA) [Floor(n*Log(n)/Log(2)) + 1: n in [1..70]]; // Vincenzo Librandi, Jul 15 2015

CROSSREFS

Cf. A000312, A066022, A070939.

Sequence in context: A006282 A086845 A243205 * A175098 A242067 A127722

Adjacent sequences:  A259365 A259366 A259367 * A259369 A259370 A259371

KEYWORD

nonn,easy,base

AUTHOR

Adam J.T. Partridge, Jun 25 2015

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 25 10:33 EDT 2020. Contains 334592 sequences. (Running on oeis4.)