A145831 Log_2 ( A145768( A145830(n))).
0, 4, 0, 8, 9, 8
Offset: 1
Crossrefs
Programs
-
PARI
an=0; for( i=1,10^7, an=bitxor(an,i^2); an & an==1<
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.
an=0; for( i=1,10^7, an=bitxor(an,i^2); an & an==1<
import Data.Bits (xor) a145768 n = a145768_list !! n a145768_list = scanl1 xor a000290_list -- Reinhard Zumkeller, Jun 05 2012
A[0]:= 0: for n from 1 to 100 do A[n]:= Bits:-Xor(A[n-1],n^2) od: seq(A[i],i=0..100); # Robert Israel, Dec 08 2019
Rest@ FoldList[BitXor, 0, Array[#^2 &, 50]]
an=0; for( i=1,50, print1(an=bitxor(an,i^2),",")) \\ M. F. Hasler, Oct 20 2008
al(n)=local(m);vector(n,k,m=bitxor(m,k^2))
from functools import reduce from operator import xor def A145768(n): return reduce(xor, [x**2 for x in range(n+1)]) # Chai Wah Wu, Aug 08 2014
Comments