login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A178729 a(n) = n XOR 3n, where XOR is bitwise XOR. 8
0, 2, 4, 10, 8, 10, 20, 18, 16, 18, 20, 42, 40, 42, 36, 34, 32, 34, 36, 42, 40, 42, 84, 82, 80, 82, 84, 74, 72, 74, 68, 66, 64, 66, 68, 74, 72, 74, 84, 82, 80, 82, 84, 170, 168, 170, 164, 162, 160, 162, 164, 170, 168, 170, 148, 146, 144, 146, 148, 138, 136, 138, 132, 130 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

LINKS

Vincenzo Librandi, Table of n, a(n) for n = 0..5000

FORMULA

a(n) = A005351(n) XOR A005352(n) (conjectured).

a(n) = 2 * A184617(n). - Alois P. Heinz, Jul 21 2017

MATHEMATICA

f[n_] := BitXor[n, 3 n]; Array[f, 70, 0] (* Robert G. Wilson v, Jun 09 2010 *)

PROG

(PARI) a(n) = bitxor(n, 3*n); \\ Michel Marcus, Jul 11 2017

(MAGMA) [BitwiseXor(n, 3*n): n in [0..80]]; // Vincenzo Librandi, Jul 11 2017

CROSSREFS

Cf. A048724, A048725, A178731, A178732, A178733, A178734, A178735, A178736. - Robert G. Wilson v, Jun 09 2010

Cf. A184617.

Sequence in context: A331708 A227289 A200742 * A124108 A173824 A097211

Adjacent sequences:  A178726 A178727 A178728 * A178730 A178731 A178732

KEYWORD

nonn

AUTHOR

Dmitry Kamenetsky, Jun 08 2010

EXTENSIONS

a(30) onwards from Robert G. Wilson v, Jun 09 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified February 27 05:39 EST 2020. Contains 332299 sequences. (Running on oeis4.)