OFFSET
1,2
LINKS
MATHEMATICA
a3309[nmax_] := a3309[nmax] = Module[{t = Range[2, nmax], k, r = {1}}, While[Length[t] > 0, k = First[t]; AppendTo[r, k]; t = Drop[t, {1, -1, k}]]; r];
nmax = 1000;
Riffle[a3309[nmax], Complement[Range[nmax], a3309[nmax]]] (* Jean-François Alcover, Dec 10 2021, after Ray Chandler in A003309 *)
PROG
(Haskell)
import Data.List (transpose)
a237056 n = a237056_list !! (n-1)
a237056_list = concat $ transpose [a003309_list, a192607_list]
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen and Reinhard Zumkeller, Feb 04 2014
STATUS
approved