A072061 [t], 1+[t], [2t], 2+[2t], [3t], 3+[3t], ..., where t=tau = (1+sqrt(5))/2 and []=floor.
1, 2, 3, 5, 4, 7, 6, 10, 8, 13, 9, 15, 11, 18, 12, 20, 14, 23, 16, 26, 17, 28, 19, 31, 21, 34, 22, 36, 24, 39, 25, 41, 27, 44, 29, 47, 30, 49, 32, 52, 33, 54, 35, 57, 37, 60, 38, 62, 40, 65, 42, 68, 43, 70, 45, 73, 46, 75, 48, 78, 50, 81, 51, 83, 53, 86, 55, 89, 56, 91, 58, 94
Offset: 1
References
- David Wells, The Penguin Dictionary of Curious and Interesting Numbers. Penguin Books, NY, 1986, Revised edition 1987. See p. 40.
Links
- Eric Weisstein's World of Mathematics, Wythoff's game.
- Index entries for sequences that are permutations of the natural numbers.
Programs
-
Magma
[n*(1+(-1)^n)/4+Floor((2*n+1-(-1)^n)*(1+Sqrt(5))/8) : n in [1..100]]; // Wesley Ivan Hurt, Apr 10 2015
-
Maple
A072061:=n->n*(1+(-1)^n)/4+floor((2*n+1-(-1)^n)*(1+sqrt(5))/8): seq(A072061(n), n=1..100); # Wesley Ivan Hurt, Apr 10 2015
-
Mathematica
Table[n*(1 + (-1)^n)/4 + Floor[(2 n + 1 - (-1)^n) (1 + Sqrt[5])/8], {n, 100}] (* Wesley Ivan Hurt, Apr 10 2015 *)
-
PARI
lista(nn) = {v = []; for (n=1, nn, v = concat(v, nt = floor(n*(1+sqrt(5))/2)); v = concat(v, n+nt);); v;} \\ Michel Marcus, Apr 14 2015
Formula
a(n) = n*(1+(-1)^n)/4+floor((2*n+1-(-1)^n)*(1+sqrt(5))/8). - Wesley Ivan Hurt, Apr 10 2015
Extensions
Edited by N. J. A. Sloane, Jul 26 2008
Comments