login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A164286 Sequence resulting from an infinite series of reordering steps applied to the sequence of natural numbers A000027: At step n, when number n is at position p, the number k at position p+n is moved to position p+1. 3
1, 2, 4, 6, 9, 11, 15, 17, 20, 25, 27, 29, 33, 36, 40, 42, 46, 49, 51, 54, 60, 63, 65, 68, 70, 75, 77, 82, 85, 89, 92, 94, 97, 101, 103, 106, 110, 113, 115, 118, 125, 127, 132, 134, 136, 140, 143, 146, 148, 153, 157, 159, 162, 165, 169, 173, 178, 180, 182, 186, 189 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

It seems that a(n)/n > 3 for all n > 40.

This sequence is not a permutation of the natural numbers.

LINKS

Alois P. Heinz Table of n, a(n) for n = 1..5000

Eric Angelini, Colour, drag and drop sequence

E. Angelini, Colour, drag and drop sequence [Cached copy, with permission]

MAPLE

mx:= 300: # increase mx to get more items

l:= [i$i=1..3*mx]: pos:= proc(n) global l; local i; for i to nops(l) while l[i]<>n do od; `if`(i>nops(l), -1, i) end: for n from 1 to mx do p:= pos(n); l:= [l[1..p][], l[n+p], l[p+1..n+p-1][], l[n+p+1..nops(l)][]] od: for p to nops(l) do if l[p]>=mx then break fi od: a:= n-> `if`(n<p, l[n], NULL): seq(a(n), n=1..p);

MATHEMATICA

max = 900; r = Range[max]; For[n = 1, True, n++, p = Position[r, n]; If[p == {} || p[[1, 1]] + n > max, Break[], c = r[[p[[1, 1]] + n]]; r = r /. {a___, n, b___, c, d___} :> {a, n, c, b, d}]]; A164286 = r[[1 ;; 61]] (* Jean-Fran├žois Alcover, Jun 14 2012 *)

CROSSREFS

Cf. A164287.

Sequence in context: A293956 A022760 A347778 * A054519 A168434 A300416

Adjacent sequences:  A164283 A164284 A164285 * A164287 A164288 A164289

KEYWORD

nice,nonn

AUTHOR

Eric Angelini and Alois P. Heinz, Aug 12 2009

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 17 14:07 EDT 2021. Contains 347478 sequences. (Running on oeis4.)