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.

A272532 Single bit representation of the sum of two sinusoids with periods 2 and 2*sqrt(2).

Original entry on oeis.org

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

Views

Author

Andres Cicuttin, May 02 2016

Keywords

Comments

Since the ratio of the two periods is irrational, the sequence is strictly non-periodic.
From the factorized expression of the corresponding real function of x : 2*cos(2Pi((2 - sqrt(2))/8)x)*sin(2Pi((2 + sqrt(2))/8)x), it is possible to see that the largest distance between consecutive zeros is not greater than the shortest semi-period, 4/(2 + sqrt(2)), that is smaller than 2, and from this it follows that there are no more than two consecutive 0's or 1's.

Crossrefs

Conjectured quasiperiodicity in A271591 and A272170. A083035.

Programs

  • Mathematica
    nmax=120 ; Table[If[Sin[2*Pi*(1/2)*n]+Sin[2*Pi*(1/(2*Sqrt[2]))*n]<0,0,1],{n,1,nmax}]

Formula

a(n) = floor( (1 + sin(2*Pi*(1/2)*n) + sin(2*Pi*(1/(2*Sqrt[2]))*n)) mod 2).