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!)
A258136 Lexicographically earliest sequence of odd positive integers such that the terms and their absolute first differences are all distinct. 2
1, 3, 7, 13, 5, 15, 27, 9, 23, 39, 11, 31, 53, 17, 41, 67, 19, 49, 81, 21, 55, 93, 25, 65, 107, 29, 73, 119, 33, 83, 135, 35, 89, 145, 37, 95, 157, 43, 109, 45, 115, 187, 47, 121, 197, 51, 131, 213, 57, 141, 229, 59, 149, 241, 61, 155, 251, 63, 161, 263, 69 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

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

E. Angelini, Derangements on the SeqFan list, May 21 2015

FORMULA

a(n) = 2*A081145(n)-1.

MAPLE

b:= proc() false end:

a:= proc(n) option remember; local k;

      if n=1 then b(1):= true; 1

    else a(n-1); for k while b(k) or

         b(abs(a(n-1)-k)) by 2 do od;

         b(k), b(abs(a(n-1)-k)):= true$2; k

      fi

    end:

seq(a(n), n=1..101);

CROSSREFS

Cf. A081145, A258137 (absolute first differences), A257941, A257944.

Sequence in context: A096856 A108154 A010260 * A209387 A128156 A108768

Adjacent sequences:  A258133 A258134 A258135 * A258137 A258138 A258139

KEYWORD

nonn

AUTHOR

Eric Angelini and Alois P. Heinz, May 21 2015

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 March 4 00:34 EST 2021. Contains 341772 sequences. (Running on oeis4.)