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.

A132151 Period 8: repeat [0, 1, 0, 0, 0, 0, -1, 0].

This page as a plain text file.
%I A132151 #14 Dec 12 2023 08:54:22
%S A132151 0,1,0,0,0,0,-1,0,0,1,0,0,0,0,-1,0,0,1,0,0,0,0,-1,0,0,1,0,0,0,0,-1,0,
%T A132151 0,1,0,0,0,0,-1,0,0,1,0,0,0,0,-1,0,0,1,0,0,0,0,-1,0,0,1,0,0,0,0,-1,0,
%U A132151 0,1,0,0,0,0,-1,0,0,1,0,0,0,0,-1,0,0,1,0,0,0,0,-1,0
%N A132151 Period 8: repeat [0, 1, 0, 0, 0, 0, -1, 0].
%H A132151 <a href="/index/Rec#order_07">Index entries for linear recurrences with constant coefficients</a>, signature (-1,-1,-1,-1,-1,-1,-1).
%F A132151 a(n) = floor((n-1)/8) - floor((n-2)/8) - floor((n-6)/8) + floor((n-7)/8). - _Wesley Ivan Hurt_, Sep 01 2019
%o A132151 (PARI) a(n)=if(n%8==1,1,n%8==6,-1,0) \\ _Charles R Greathouse IV_, Jul 13 2016
%K A132151 sign,easy
%O A132151 0,1
%A A132151 _Paul Curtz_, Nov 01 2007