login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A159195 Let S_0 = [1]; for n>0 let S_n be obtained from S_{n-1} by applying the morphism t -> |t-1|,t,t+1; sequence gives limiting value of S_{2n+1} as n -> oo. 0
0, 1, 2, 1, 0, 1, 0, 1, 2, 1, 0, 1, 0, 1, 2, 1, 2, 3, 0, 1, 2, 1, 2, 3, 2, 3, 4, 1, 0, 1, 0, 1, 2, 1, 2, 3, 0, 1, 2, 1, 0, 1, 0, 1, 2, 1, 0, 1, 0, 1, 2, 1, 2, 3, 0, 1, 2, 1, 0, 1, 0, 1, 2, 1, 0, 1, 0, 1, 2, 1, 2, 3, 0, 1, 2, 1, 2, 3, 2, 3, 4, 1, 0, 1, 0, 1, 2, 1, 2, 3, 0, 1, 2, 1, 0, 1, 0, 1, 2, 1, 0, 1, 0, 1, 2 (list; graph; refs; listen; history; internal format)
OFFSET

0,3

EXAMPLE

S_0 = [1]

S_1 = [0,1,2]

S_2 = [1,0,1,0,1,2,1,2,3]

S_3 = [0,1,2,1,0,1,0,1,2,1,0,1,0,1,2,1,2,3,0,1,2,1,2,3,2,3,4]

etc.

MATHEMATICA

Nest[ Flatten[ # /. a_Integer -> {Abs[a - 1], a, a + 1}] &, {1}, 5]

CROSSREFS

Sequence in context: A141095 A175599 A179759 * A099313 A097468 A098381

Adjacent sequences:  A159192 A159193 A159194 * A159196 A159197 A159198

KEYWORD

nonn

AUTHOR

Robert G. Wilson v (rgwv(AT)rgwv.com), Apr 05 2009

EXTENSIONS

Edited by N. J. A. Sloane, Apr 07 2009

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 16 19:23 EST 2012. Contains 205945 sequences.