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!)
A261807 a(n) = n XOR n^3. 2
0, 0, 10, 24, 68, 120, 222, 336, 520, 720, 994, 1336, 1740, 2200, 2742, 3360, 4112, 4896, 5850, 6872, 8020, 9272, 10638, 12176, 13848, 15632, 17586, 19704, 21980, 24408, 26982, 29760, 32800, 35904, 39338, 42840, 46692, 50680, 54910, 59280, 64040, 68880, 74050, 79544 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
XOR the binary representations of n and n^3.
n^3 + n >= a(n) >= n^3 - n. - Robert Israel, Sep 02 2015
LINKS
MAPLE
seq(Bits[Xor](n, n^3), n=0..100); # Robert Israel, Sep 02 2015
MATHEMATICA
Table[BitXor[n, n^3], {n, 0, 43}] (* Michael De Vlieger, Sep 01 2015 *)
PROG
(Python)
for n in range(55): print(str(n ^ n*n*n), end=", ")
(PARI) first(m)=vector(m, i, i--; bitxor(i, i^3)) \\ Anders Hellström, Sep 01 2015
CROSSREFS
Cf. A169810.
Sequence in context: A250576 A126911 A223408 * A135285 A235940 A103071
KEYWORD
nonn,base
AUTHOR
Alex Ratushnyak, Sep 01 2015
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 23 12:27 EDT 2024. Contains 371912 sequences. (Running on oeis4.)