Better HN
topnewbestaskshowjobs
Log inSign up

sarcarx

-2 karma · joined Mar 6, 2015 (11y ago) · 2 submissions

Submissions

comment 5y ago · link · parent

Note that the combined xor of the first n integers can be computed in constant time (oeis.org/A003815). a(4n)=4n, (4n+1)=1, a(4n+2)=4n+3, a(4n+3)=0