A283750 a(n) = n^2 XOR (n + 1)^2.
1, 5, 13, 25, 9, 61, 21, 113, 17, 53, 29, 233, 57, 109, 37, 481, 33, 101, 45, 249, 41, 93, 1013, 81, 49, 213, 125, 457, 89, 205, 69, 1985, 65, 197, 77, 473, 73, 253, 85, 945, 209, 117, 477, 169, 121, 4013, 229, 417, 97, 165, 1005, 185, 105, 413, 181, 1937, 241, 405, 189, 905, 153, 397, 133, 8065, 129, 389, 141, 921
Offset: 0
Keywords
Links
- Antti Karttunen, Table of n, a(n) for n = 0..20000
- Ilya Gutkovskiy, Extended graphical example
- Eric Weisstein's World of Mathematics, XOR
- Index entries for sequences related to binary expansion of n
Programs
-
Mathematica
Table[BitXor[n^2, (n + 1)^2], {n, 0, 67}]
-
PARI
A283750(n) = bitxor(n^2, (n+1)^2); \\ Indranil Ghosh, Mar 15 2017, Antti Karttunen, Dec 16 2024
-
Python
def A283750(n): return (n**2)^(n + 1)**2 # Indranil Ghosh, Mar 15 2017
Comments