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

A184617 With nonadjacent forms: A184615(n) + A184616(n).

Original entry on oeis.org

0, 1, 2, 5, 4, 5, 10, 9, 8, 9, 10, 21, 20, 21, 18, 17, 16, 17, 18, 21, 20, 21, 42, 41, 40, 41, 42, 37, 36, 37, 34, 33, 32, 33, 34, 37, 36, 37, 42, 41, 40, 41, 42, 85, 84, 85, 82, 81, 80, 81, 82, 85, 84, 85, 74, 73, 72, 73, 74, 69, 68, 69, 66, 65, 64, 65, 66, 69, 68, 69, 74, 73, 72, 73, 74, 85, 84, 85, 82, 81, 80, 81, 82
Offset: 0

Views

Author

Joerg Arndt, Jan 18 2011

Keywords

Comments

No two adjacent bits in the binary representations of a(n) are 1.
The value 0 appears once, otherwise, if the binary representation of a(n) has k set bits then it appears 2^(k-1) times.

Examples

			See A184615.
		

Crossrefs

Cf. A178729.
Cf. A184615 (positive parts), A184616 (negated negative parts).

Programs

  • Mathematica
    a[n_] := Module[{nh, n3, c}, nh = BitShiftRight[n]; n3 = n + nh; c = BitXor[nh, n3]; BitAnd[n3, c] + BitAnd[nh, c]];
    Table[a[n], {n, 0, 100}] (* Jean-François Alcover, May 30 2019, from PARI code in A184615 *)
  • PARI
    (see A184615)
    
  • Python
    for n in range(77):
      print((n^(n*3))/2, end=',')
    # Alex Ratushnyak, Aug 13 2012

Formula

a(n) = A184615(n) + A184616(n).
a(n) = A178729(n)/2 = (n XOR n*3)/2. Note a(2^n) = 2^n. - Alex Ratushnyak, Aug 13 2012

A178731 a(n) = n XOR 5n, where XOR is bitwise XOR.

Original entry on oeis.org

0, 4, 8, 12, 16, 28, 24, 36, 32, 36, 56, 60, 48, 76, 72, 68, 64, 68, 72, 76, 112, 124, 120, 100, 96, 100, 152, 156, 144, 140, 136, 132, 128, 132, 136, 140, 144, 156, 152, 228, 224, 228, 248, 252, 240, 204, 200, 196, 192, 196, 200, 204, 304, 316, 312, 292, 288, 292
Offset: 0

Views

Author

Dmitry Kamenetsky, Jun 08 2010

Keywords

Crossrefs

Programs

Extensions

a(30) onwards from Robert G. Wilson v, Jun 09 2010

A178734 a(n) = n XOR 8n, where XOR is bitwise XOR.

Original entry on oeis.org

0, 9, 18, 27, 36, 45, 54, 63, 72, 65, 90, 83, 108, 101, 126, 119, 144, 153, 130, 139, 180, 189, 166, 175, 216, 209, 202, 195, 252, 245, 238, 231, 288, 297, 306, 315, 260, 269, 278, 287, 360, 353, 378, 371, 332, 325, 350, 343, 432, 441, 418, 427, 404, 413, 390
Offset: 0

Views

Author

Dmitry Kamenetsky, Jun 08 2010

Keywords

Crossrefs

Programs

Extensions

a(30) onwards from Robert G. Wilson v, Jun 09 2010

A178732 a(n) = n XOR 6n, where XOR is bitwise XOR.

Original entry on oeis.org

0, 7, 14, 17, 28, 27, 34, 45, 56, 63, 54, 73, 68, 67, 90, 85, 112, 119, 126, 97, 108, 107, 146, 157, 136, 143, 134, 185, 180, 179, 170, 165, 224, 231, 238, 241, 252, 251, 194, 205, 216, 223, 214, 297, 292, 291, 314, 309, 272, 279, 286, 257, 268, 267, 370, 381
Offset: 0

Views

Author

Dmitry Kamenetsky, Jun 08 2010

Keywords

Crossrefs

Programs

  • Mathematica
    f[n_] := BitXor[n, 6 n]; Array[f, 60, 0] (* Robert G. Wilson v, Jun 09 2010 *)

Extensions

a(30) onwards from Robert G. Wilson v, Jun 09 2010

A178733 a(n) = n XOR 7n, where XOR is bitwise XOR.

Original entry on oeis.org

0, 6, 12, 22, 24, 38, 44, 54, 48, 54, 76, 70, 88, 86, 108, 102, 96, 102, 108, 150, 152, 134, 140, 182, 176, 182, 172, 166, 216, 214, 204, 198, 192, 198, 204, 214, 216, 294, 300, 310, 304, 310, 268, 262, 280, 278, 364, 358, 352, 358, 364, 342, 344, 326, 332, 438
Offset: 0

Views

Author

Dmitry Kamenetsky, Jun 08 2010

Keywords

Crossrefs

Programs

  • Mathematica
    f[n_] := BitXor[n, 7 n]; Array[f, 60, 0] (* Robert G. Wilson v, Jun 09 2010 *)

Extensions

a(30) onwards from Robert G. Wilson v, Jun 09 2010

A178735 a(n) = n XOR 9n, where XOR is bitwise XOR.

Original entry on oeis.org

0, 8, 16, 24, 32, 40, 48, 56, 64, 88, 80, 104, 96, 120, 112, 136, 128, 136, 176, 184, 160, 168, 208, 216, 192, 248, 240, 232, 224, 280, 272, 264, 256, 264, 272, 280, 352, 360, 368, 376, 320, 344, 336, 424, 416, 440, 432, 392, 384, 392, 496, 504, 480, 488, 464
Offset: 0

Views

Author

Dmitry Kamenetsky, Jun 08 2010

Keywords

Crossrefs

Programs

  • Mathematica
    f[n_] := BitXor[n, 9 n]; Array[f, 60, 0] (* Robert G. Wilson v, Jun 09 2010 *)

Extensions

a(30) onwards from Robert G. Wilson v, Jun 09 2010

A178736 a(n) = n XOR 10n, where XOR is bitwise XOR.

Original entry on oeis.org

0, 11, 22, 29, 44, 55, 58, 65, 88, 83, 110, 101, 116, 143, 130, 153, 176, 187, 166, 173, 220, 199, 202, 241, 232, 227, 286, 277, 260, 319, 306, 297, 352, 363, 374, 381, 332, 343, 346, 417, 440, 435, 398, 389, 404, 495, 482, 505, 464, 475, 454, 461, 572, 551
Offset: 0

Views

Author

Dmitry Kamenetsky, Jun 08 2010

Keywords

Crossrefs

Programs

  • Mathematica
    f[n_] := BitXor[n, 10 n]; Array[f, 60, 0] (* Robert G. Wilson v, Jun 09 2010 *)

Extensions

a(30) onwards from Robert G. Wilson v, Jun 09 2010
Showing 1-7 of 7 results.