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!)
A066937 For n=1,2,3,..., define b(n) as follows: initialize v at v=n; then for k=2,3,4,..., if v>0 and k divides v, replace v with v-k. Set b(n)=v. Then {a(n)} is the subsequence consisting of the nonzero terms of {b(n)}. 1
1, 2, 3, 4, 5, 7, 6, 8, 11, 10, 13, 9, 17, 12, 19, 14, 23, 16, 20, 15, 29, 31, 22, 18, 25, 21, 26, 37, 24, 41, 43, 27, 34, 28, 47, 32, 38, 53, 35, 40, 33, 59, 44, 30, 61, 46, 49, 50, 39, 67, 42, 71, 36, 73, 58, 55, 79, 52, 48, 62, 83, 65, 51, 45, 89, 56, 57, 74, 97, 101, 103 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
A permutation of the positive integers.
LINKS
MATHEMATICA
terms = 71; m0 = 400; dm = 200; Clear[f]; f[m_] := f[m] = (r = Range[m]; Do[r = r /. {n_ /; n > 0 && Mod[n, k] == 0 :> n - k }, {k, 2, Floor[m/2]}]; DeleteCases[r, 0] [[1 ;; terms]]); f[m0]; f[m = m0 + dm]; While[f[m] != f[m - dm], m = m + dm]; f[m] (* Jean-François Alcover, Mar 20 2013 *)
CROSSREFS
Sequence in context: A343150 A338698 A361946 * A217266 A347539 A209637
KEYWORD
nonn
AUTHOR
John W. Layman, Jan 24 2002
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 8 00:08 EDT 2024. Contains 373206 sequences. (Running on oeis4.)