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.

A253513 The characteristic function of the multiples of eight.

Original entry on oeis.org

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

Views

Author

Mikael Aaltonen, Jan 03 2015

Keywords

Comments

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

Crossrefs

Cf. A008590 (multiples of 8), A010877, A014025, A168181, A244413.

Programs

Formula

a(n) = floor(n/8) - floor((n-1)/8).
a(n) = sin((sin(Pi*(n+1)/2)^2)*Pi*(n+2)/4)/2 + (sin(Pi*(n+1)/2)^2)/4 + sin(Pi*(n+1)/2)/4.
a(n) = abs(A014025(n)).
From Alois P. Heinz, Jan 03 2015: (Start)
a(n) = 1 - A168181(n).
G.f.: 1/(1-x^8). (End)