A338503 a(n) is the square root of A338502(1) XOR ... XOR A338502(n) (where XOR denotes the bitwise XOR operator).
0, 1, 2, 0, 3, 1, 4, 0, 5, 1, 6, 7, 4, 2, 3, 6, 2, 5, 7, 1, 8, 10, 9, 5, 6, 4, 8, 11, 6, 10, 7, 0, 9, 3, 7, 9, 6, 8, 2, 11, 4, 10, 1, 11, 3, 8, 5, 12, 14, 13, 6, 12, 15, 10, 14, 8, 15, 11, 0, 12, 4, 13, 1, 12, 2, 13, 0, 14, 9, 15, 6, 14, 11, 13, 10, 12, 3, 15
Offset: 1
Examples
For n = 3: - A338502(1) AND A338502(2) AND A338502(3) = 0 AND 1 AND 5 = 4 = 2^2, - so a(3) = 2.
Links
- Rémy Sigrist, Table of n, a(n) for n = 1..10000
- Rémy Sigrist, PARI program for A338503
Programs
-
PARI
See Links section.