|
|
A026141
|
|
a(n) = (s(n)-s(n-1))/2, where s = A026139.
|
|
3
|
|
|
1, 2, 1, 3, 2, 1, 2, 1, 3, 3, 2, 1, 3, 2, 1, 2, 1, 3, 2, 1, 2, 1, 3, 3, 2, 1, 3, 3, 2, 1, 3, 2, 1, 2, 1, 3, 3, 2, 1, 3, 2, 1, 2, 1, 3, 2, 1, 2, 1, 3, 3, 2, 1, 3, 2, 1, 2, 1, 3, 2, 1, 2, 1, 3, 3, 2, 1, 3, 3, 2, 1, 3, 2, 1, 2, 1, 3, 3, 2, 1, 3, 3, 2, 1, 3, 2, 1, 2, 1, 3, 3, 2, 1, 3, 2, 1
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
2,2
|
|
LINKS
|
|
|
MATHEMATICA
|
Block[{a, r, s, nn = 105}, a[1] = 1; Do[If[! IntegerQ[a[#1]], Set[a[#1], i], Set[a[#2], i]] & @@ {i - #, i + #} &@ Floor[i/2], {i, 4 nn}]; s = TakeWhile[Array[a[#] &, 2 nn], IntegerQ]; Map[(#2 - #1)/2 & @@ # &, Partition[Union@ FoldList[Max, s], 2, 1]]] (* Michael De Vlieger, Aug 27 2021 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|