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!)
A232244 A walk based on the digits of sqrt(2) (A002193). 1
1, 2, 3, 4, 3, 2, 1, 2, 3, 4, 3, 2, 1, 2, 3, 4, 5, 6, 5, 4, 3, 2, 3, 4, 5, 6, 7, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 8, 7, 6, 5, 4, 3, 2, 1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 8, 7, 6, 5, 4, 3, 2, 3, 4, 3 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
sqrt(2)= 1. 41421354237...
Between 1 and 4 we place 2 and 3.
Between 4 and 1 we place 3 and 2.
Between 1 and 4 we place 2 and 3.
Between 4 and 2 we place 3 and so on.
This gives:
1, 2, 3, 4, 3, 2, 1, 2, 3, 4, 3, 2, 1, 2, 3, ...
This could be called a walk (or promenade) on the digits of sqrt(2).
LINKS
PROG
(Haskell)
a232244 n = a232244_list !! (n-1)
a232244_list = 1 : concat (zipWith w a002193_list $ tail a002193_list)
where w v u | v > u = [v - 1, v - 2 .. u]
| v < u = [v + 1 .. u]
| otherwise = [v]
-- Reinhard Zumkeller, Nov 22 2013
CROSSREFS
Cf. A002193.
Sequence in context: A017859 A171456 A028356 * A260644 A073791 A350862
KEYWORD
nonn,easy,base
AUTHOR
Philippe Deléham, Nov 20 2013 at the suggestion of N. J. A. Sloane
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 4 02:51 EDT 2024. Contains 373089 sequences. (Running on oeis4.)