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.

A136640 A limited integer Devil's staircase from a winding number function.

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, 4, 9, 13, 16, 18, 20, 22, 24, 26, 28, 29, 31, 33, 34, 36, 37, 39, 40, 41, 43, 44, 46, 47, 49, 50, 51, 51, 53, 54, 56, 58, 58, 60, 61, 63, 65, 67, 67, 67, 67, 67, 67, 70, 72, 73, 75, 76, 77, 79
Offset: 1

Views

Author

Roger L. Bagula, Apr 01 2008

Keywords

Comments

Designed to be integer and 200 in length, this function is a limited representation of a Devil's staircase function; a projection of a set of rational numbers onto the integers.

Programs

  • Mathematica
    f[{omega_,t_}]:={omega,t+omega-Sin[2Pi t]/(2Pi)}; WindingNumber[n_,{omega_,t_}]:=(Nest[f,{omega,t},n][[2]]-t)/n; a=Table[Floor[1+200*WindingNumber[1000,{omega,0}]], {omega,0,1,.005}]

Formula

a(n) = floor(1+200*Winding_Number(Omega)): 0<=omega<=1;in steps of 1/200