Yellowstone sequence: Difference between revisions

Content deleted Content added
m →‎{{header|REXX}}: changed a comment.
PureFox (talk | contribs)
Moved task, extra etc. out of contents list and rejigged them a bit.
Line 15: Line 15:




;Example:
=== Task ===
a(4) is 4 because 4 is the smallest number following 1, 2, 3 in the sequence that is relatively prime to the entry before it (3), and is not relatively prime to the number two entries before it (2).


;Task
: Find and show as output the first 30 Yellowstone numbers.
: Find and show as output the first 30 Yellowstone numbers.




=== Extra ===
;Extra
: Demonstrate how to plot, with x = n and y coordinate a(n), the first 100 Yellowstone numbers.
: Demonstrate how to plot, with x = n and y coordinate a(n), the first 100 Yellowstone numbers.




;Example:
a(4) is 4 because 4 is the smallest number following 1, 2, 3 in the sequence that is relatively prime to the entry before it (3),
and is not relatively prime to the number two entries before it (2).


;Related tasks:
;Related tasks:
Line 32: Line 31:
:*   [https://rosettacode.org/wiki/Plot_coordinate_pairs Plot coordinate pairs].
:*   [https://rosettacode.org/wiki/Plot_coordinate_pairs Plot coordinate pairs].


See also:


;See also:
:*   The OEIS entry:   [https://oeis.org/A098550 A098550 The Yellowstone permutation].
:*   The OEIS entry:   [https://oeis.org/A098550 A098550 The Yellowstone permutation].
:*   Applegate et al, 2015: The Yellowstone Permutation [https://arxiv.org/abs/1501.01669]
:*   Applegate et al, 2015: The Yellowstone Permutation [https://arxiv.org/abs/1501.01669].

<br> <br>