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-3 of 3 results.

A112249 Numbers m such that m mod floor(log_2(m)) = 0.

Original entry on oeis.org

2, 3, 4, 6, 9, 12, 15, 16, 20, 24, 28, 35, 40, 45, 50, 55, 60, 66, 72, 78, 84, 90, 96, 102, 108, 114, 120, 126, 133, 140, 147, 154, 161, 168, 175, 182, 189, 196, 203, 210, 217, 224, 231, 238, 245, 252, 256, 264, 272, 280, 288, 296, 304, 312, 320, 328, 336, 344
Offset: 1

Views

Author

Reinhard Zumkeller, Aug 30 2005

Keywords

Comments

The asymptotic density of this sequence is 0 (Cooper and Kennedy, 1989). - Amiram Eldar, Jul 10 2020

Crossrefs

Complement of A112250.

Programs

  • Mathematica
    Select[Range[2, 350], Divisible[#, Floor@Log2@#] &] (* Ivan Neretin, Nov 26 2016 *)

Formula

A112248(a(n)) = 0.

Extensions

Name corrected by Ivan Neretin, Nov 26 2016

A112248 a(n) = n mod floor(log_2(n)).

Original entry on oeis.org

0, 0, 0, 1, 0, 1, 2, 0, 1, 2, 0, 1, 2, 0, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4
Offset: 2

Views

Author

Reinhard Zumkeller, Aug 30 2005

Keywords

Comments

a(A112249(n)) = 0, a(A112250(n)) > 0, a(A112251(n)) = 1.

Crossrefs

Programs

  • Maple
    seq(seq(n mod d, n=2^d .. 2^(d+1)-1),d=1..8); # Robert Israel, Aug 27 2020
  • Mathematica
    Table[Mod[n, Floor @ Log2[n]], {n, 2, 100}] (* Amiram Eldar, Aug 27 2020 *)
  • PARI
    a(n) = n % logint(n, 2); \\ Michel Marcus, Aug 27 2020

Extensions

Name edited by Michel Marcus, Aug 27 2020

A112251 Numbers m such that m mod log_2(m) = 1.

Original entry on oeis.org

5, 7, 10, 13, 17, 21, 25, 29, 36, 41, 46, 51, 56, 61, 67, 73, 79, 85, 91, 97, 103, 109, 115, 121, 127, 134, 141, 148, 155, 162, 169, 176, 183, 190, 197, 204, 211, 218, 225, 232, 239, 246, 253, 257, 265, 273, 281, 289, 297, 305, 313, 321, 329, 337, 345, 353, 361
Offset: 1

Views

Author

Reinhard Zumkeller, Aug 30 2005

Keywords

Comments

A112248(a(n)) = 1; subsequence of A112250.

Crossrefs

Cf. A000523.
Showing 1-3 of 3 results.