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.

Showing 1-2 of 2 results.

A104321 Smallest number m such that A104320(m)=n.

Original entry on oeis.org

0, 5, 8, 18, 13, 26, 27, 23, 42, 25, 37, 58, 47, 46, 61, 67, 54, 71, 77, 73, 88, 99, 141, 100, 115, 114, 119, 117, 113, 112, 109, 135, 110, 127, 133, 136, 164, 162, 177, 186, 193, 195, 163, 189, 201, 196, 191, 199, 206, 188, 208, 200, 221, 266, 235, 234, 238, 280
Offset: 0

Views

Author

Reinhard Zumkeller, Mar 01 2005

Keywords

Comments

A104320(a(n))=n and A104320(m)<>n for m
If it exists, a(115) > 10^5. - Michel Marcus, Oct 19 2016

Crossrefs

Programs

  • PARI
    a(n) = {my(k = 0); while (#select(x->(x==0), digits(2^k, 3)) != n, k++); k;} \\ Michel Marcus, Oct 19 2016

A375472 Least k such that the ternary representation of 2^k has exactly 2*n 1's, or -1 if no such k exists.

Original entry on oeis.org

1, 2, 8, 14, 24, 26, 42, 45, 50, 53, 70, 74, 96, 76, 124, 98, 116, 121, 143, 141, 179, 150, 187, 181, 192, 215, 209, 233, 220, 257, 245, 264, 243, 278, 260, 310, 297, 303, 315, 339, 329, 387, 341, 357, 354, 366, 403, 420, 350, 400, 411, 415, 474, 455, 466, 442
Offset: 0

Author

Pontus von Brömssen, Aug 17 2024

Keywords

Examples

			For n = 3, the smallest power of 2 with exactly 2*3 = 6 1's in its ternary representation is 2^14 = 211110211_3, so a(3) = 14.
		

Crossrefs

Programs

  • PARI
    a(n) = my(k=1); while (#select(x->(x==1), digits(2^k, 3)) != 2*n, k++); k; \\ Michel Marcus, Aug 17 2024

Formula

Conjecture: a(n) ~ 6*log_2(3)*n = 6*A020857*n.
Showing 1-2 of 2 results.