login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A054082
Permutation of N: a(1)=2, a(2)=1 and for each k >= 2, let p(k)=least natural number not already an a(i), q(k)=p(k)+k-1, a(2k-1)=q(k), a(2k)=p(k).
3
2, 1, 4, 3, 7, 5, 9, 6, 12, 8, 15, 10, 17, 11, 20, 13, 22, 14, 25, 16, 28, 18, 30, 19, 33, 21, 36, 23, 38, 24, 41, 26, 43, 27, 46, 29, 49, 31, 51, 32, 54, 34, 56, 35, 59, 37, 62, 39, 64, 40, 67, 42, 70, 44, 72, 45, 75, 47, 77, 48, 80, 50, 83
OFFSET
1,1
MATHEMATICA
a[n_] := If[OddQ[n], Floor[((n+1)/2 - 1) GoldenRatio] + (n+1)/2 + 1, Floor[(n/2 - 1) GoldenRatio] + 2]; a[2] = 1;
Array[a, 100] (* Jean-François Alcover, Apr 01 2020 *)
CROSSREFS
Odd-indexed terms: A026356. Even-indexed terms: A026355. Inverse permutation: A064579.
Sequence in context: A114861 A086512 A120751 * A339381 A238544 A101708
KEYWORD
nonn,eigen
STATUS
approved