STATUS
reviewed
approved
reviewed
approved
proposed
reviewed
editing
proposed
(PARI) a(n)=((n%8>3)+(n%4==1))%2 \\ Jaume Oliver Lafont, Mar 19 2009]
(PARI) a(n)=210\2^(n%8)%2; \\ Jaume Oliver Lafont, Mar 24 2009]
approved
editing
proposed
approved
editing
proposed
(Python)
def A130198(n): return n&1^bool(n+1&4) # Chai Wah Wu, Aug 30 2024
approved
editing
proposed
approved
editing
proposed
a(n) = (1/56)*(8*(n mod 8) + ((n+1) mod 8) - 6*((n+2) mod 8) + 8*((n+3) mod 8) - 6*((n+4) mod 8) + ((n+5) mod 8) + 8*((n+6) mod 8) - 6*((n+7) mod 8)), with n >= 0. - Paolo P. Lava, Nov 09 2007
approved
editing