login
A026215
a(n) is the position of n in A026214.
3
2, 1, 6, 8, 3, 4, 14, 5, 18, 20, 7, 24, 26, 9, 10, 32, 11, 12, 38, 13, 42, 44, 15, 16, 50, 17, 54, 56, 19, 60, 62, 21, 22, 68, 23, 72, 74, 25, 78, 80, 27, 28, 86, 29, 30, 92, 31, 96, 98, 33, 34, 104, 35, 36, 110, 37, 114, 116, 39, 40, 122, 41
OFFSET
1,1
LINKS
F. M. Dekking, Permutations of N generated by left-right filling algorithms, arXiv:2001.08915 [math.CO], 2020.
MATHEMATICA
With[{s = Array[If[Mod[#/3^IntegerExponent[#, 3], 3] == 1, Ceiling[#/3], #] &[(6 # + 1)/4 - (-1)^#/4] &, Floor[2 #/3]] &[189]}, Array[FirstPosition[s, #][[1]] &, LengthWhile[Differences@ Union[s], # == 1 &]]] (* Michael De Vlieger, Aug 29 2021 *)
CROSSREFS
Cf. A026214.
Sequence in context: A220884 A217877 A138510 * A026220 A138750 A342369
KEYWORD
nonn
STATUS
approved