The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A105697 A simple "Fractal Jump Sequence" (FJS). 1
2, 2, 1, 2, 2, 2, 1, 2, 2, 1, 2, 2, 2, 1, 2, 2, 2, 1, 2, 2, 1, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 1, 2, 2, 2, 2, 1, 2, 2, 1, 1, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
See A105397 for definition of Fractal Jump Sequence.
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
PROG
(PARI) first(n)=my(v=apply(k->k+1, binary(255641055942322677663)), i=1, j=1); if(#v<n, v=concat(v, vector(3*n-#v))); while(i<=n, if(v[j]==0, v[j]=v[i]); if(v[i]==0, v[i]=v[j]); if(v[i]==0, v[i]=v[j]=1); if(v[i]!=v[j], error("Failed at step "i", "j", was "v[i]" and needed to be "v[j])); j+=v[j]+1; i++); v[1..n] \\ Charles R Greathouse IV, Aug 26 2017
CROSSREFS
Sequence in context: A085030 A078377 A291454 * A340456 A080757 A037196
KEYWORD
easy,nonn
AUTHOR
Eric Angelini, May 04 2005
EXTENSIONS
Partially edited by N. J. A. Sloane, Jun 08 2010
Corrected and extended by Charles R Greathouse IV, Aug 26 2017
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 6 23:24 EDT 2024. Contains 373135 sequences. (Running on oeis4.)