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.

A178894 a(n) = n OR 7n, where OR is bitwise OR.

Original entry on oeis.org

0, 7, 14, 23, 28, 39, 46, 55, 56, 63, 78, 79, 92, 95, 110, 111, 112, 119, 126, 151, 156, 151, 158, 183, 184, 191, 190, 191, 220, 223, 222, 223, 224, 231, 238, 247, 252, 295, 302, 311, 312, 319, 302, 303, 316, 319, 366, 367, 368, 375, 382, 375, 380, 375, 382
Offset: 0

Views

Author

Dmitry Kamenetsky, Jun 21 2010

Keywords

Comments

From Robert Israel, Dec 27 2016: (Start)
7*n <= a(n) < 8*n.
a(n) = 7*n if and only if n is in A048715.
It appears that a(n) = 8*n-1 if and only if n = (4*8^j+2*8^k+3)/7 for some j and k. (End)

Crossrefs

Programs

  • Maple
    seq(Bits:-Or(n,7*n), n=0..100); # Robert Israel, Dec 27 2016
  • Mathematica
    f[n_] := BitOr[n, 7n]; Array[f, 55, 0] (* Robert G. Wilson v, Jun 28 2010 *)

Extensions

More terms from Robert G. Wilson v, Jun 28 2010