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.

A160357 Sign of first differences of Recamán's sequence A005132.

Original entry on oeis.org

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

Views

Author

M. F. Hasler, Jun 03 2009

Keywords

Crossrefs

Programs

Formula

a(n) = sign(A005132(n)-A005132(n-1)) = sign(A160356(n)) = (-1)^A160351(n) = -(-1)^A076213(n-1).
a(n) = (A005132(n)-A005132(n-1))/n. - N. J. A. Sloane, Jul 15 2011
A160357 = chi_A057165 - chi_A057166, where chi_A denotes the characteristic function of (the set of values of) A.

Extensions

a(0)=1 added by N. J. A. Sloane, May 01 2020