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!)
A178731 a(n) = n XOR 5n, where XOR is bitwise XOR. 7
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 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

LINKS

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

MATHEMATICA

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

PROG

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

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

CROSSREFS

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

Sequence in context: A045783 A316712 A261650 * A071072 A175670 A194374

Adjacent sequences:  A178728 A178729 A178730 * A178732 A178733 A178734

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 April 4 05:34 EDT 2020. Contains 333212 sequences. (Running on oeis4.)