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!)
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
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
(Python)
def A178729(n): return n^ 3*n # Chai Wah Wu, Jun 29 2022
CROSSREFS
Cf. A184617.
Sequence in context: A331708 A227289 A200742 * A124108 A173824 A356603
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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 12:37 EDT 2024. Contains 371937 sequences. (Running on oeis4.)