cp's OEIS Frontend

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.

A156707 For all numbers k(n) congruent to +1 or -1 (mod 4) starting with k(n) = {3,5,7,9,11,...}, a(k(n)) is the congruence (mod 4) if k(n) is prime and 0 if k(n) is composite.

Original entry on oeis.org

-1, 1, -1, 0, -1, 1, 0, 1, -1, 0, -1, 0, 0, 1, -1, 0, 0, 1, 0, 1, -1, 0, -1, 0, 0, 1, 0, 0, -1, 1, 0, 0, -1, 0, -1, 1, 0, 0, -1, 0, -1, 0, 0, 1, 0, 0, 0, 1, 0, 1, -1, 0, -1, 1, 0, 1, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 1, -1, 0, 0, 0, 0, 1, -1, 0, 0, 1, 0, 0, -1, 0, -1, 0, 0, 1, 0, 0, -1, 1, 0, 0, 0, 0, -1
Offset: 1

Views

Author

Daniel Forgues, Feb 13 2009, Feb 14 2009

Keywords

Comments

Expression for k(n): k(n) = 4*ceiling(n/2) + (-1)^n, so the parity of n gives us the congruence (mod 4) of k(n). - Daniel Forgues, Mar 01 2009

Crossrefs

The absolute values of this sequence give A101264 (for n > 0.) The partial sums of this sequence give A156749. - Daniel Forgues, Mar 01 2009