login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A178894 a(n) = n OR 7n, where OR is bitwise OR. 8
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
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)
LINKS
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 *)
CROSSREFS
Sequence in context: A297426 A036556 A013644 * A356183 A050953 A333859
KEYWORD
nonn,look
AUTHOR
Dmitry Kamenetsky, Jun 21 2010
EXTENSIONS
More terms from Robert G. Wilson v, Jun 28 2010
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 28 18:04 EDT 2024. Contains 371254 sequences. (Running on oeis4.)