cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A261807 a(n) = n XOR n^3.

Original entry on oeis.org

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
Offset: 0

Views

Author

Alex Ratushnyak, Sep 01 2015

Keywords

Comments

XOR the binary representations of n and n^3.
n^3 + n >= a(n) >= n^3 - n. - Robert Israel, Sep 02 2015

Crossrefs

Cf. A169810.

Programs

  • 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 *)
  • PARI
    first(m)=vector(m,i,i--;bitxor(i,i^3)) \\ Anders Hellström, Sep 01 2015
  • Python
    for n in range(55): print(str(n ^ n*n*n), end=",")