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!)
A102568 a(n+1) = if a(n-1)=a(n)-1 then 2*a(n) else smallest number not occurring earlier; a(1)=1, a(2)=2. 4
1, 2, 4, 3, 5, 6, 12, 7, 8, 16, 9, 10, 20, 11, 13, 14, 28, 15, 17, 18, 36, 19, 21, 22, 44, 23, 24, 48, 25, 26, 52, 27, 29, 30, 60, 31, 32, 64, 33, 34, 68, 35, 37, 38, 76, 39, 40, 80, 41, 42, 84, 43, 45, 46, 92, 47, 49, 50, 100, 51, 53, 54, 108, 55, 56, 112, 57, 58, 116, 59, 61 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Permutation of the natural numbers with inverse A102569;
a(n) <= 2*n; a(n) <> n for n>6;
A102570(n) = a(a(n)).
LINKS
MATHEMATICA
Nest[Append[#, If[#[[-1]] == #[[-2]] + 1, 2 #[[-1]], Min[Complement[Range[Max[#] + 1], #]]]] &, {1, 2}, 69] (* Ivan Neretin, Sep 08 2015 *)
CROSSREFS
Sequence in context: A338252 A086434 A086433 * A338834 A338835 A210536
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Jan 15 2005
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 May 21 02:29 EDT 2024. Contains 372720 sequences. (Running on oeis4.)