|
|
A256224
|
|
a(n) = n if n <= 3, otherwise a(n) is the smallest number not occurring earlier such that gcd(a(n-2), a(n)) is a prime or a power of a prime (but not 1) and gcd(a(n-1), a(n))=1.
|
|
3
|
|
|
1, 2, 3, 4, 9, 8, 15, 14, 5, 6, 25, 16, 35, 12, 7, 10, 21, 22, 27, 11, 18, 55, 26, 33, 13, 24, 65, 28, 39, 20, 51, 32, 17, 30, 119, 38, 49, 19, 42, 95, 34, 45, 44, 57, 40, 63, 46, 75, 23, 36, 115, 52, 69, 50, 81, 56, 87, 62, 29, 31, 58, 93, 64, 99, 68, 77, 48
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
COMMENTS
|
The sequence is infinite.
Conjecture: This is a permutation of the natural numbers.
|
|
LINKS
|
David L. Applegate, Hans Havermann, Bob Selcoe, Vladimir Shevelev, N. J. A. Sloane, and Reinhard Zumkeller, The Yellowstone Permutation, arXiv preprint arXiv:1501.01669, 2015.
|
|
MATHEMATICA
|
a[n_] := a[n] = If[n <= 3, n, For[k = 1, True, k++, If[FreeQ[Array[a, n-1], k], g = GCD[a[n-2], k]; If[g>1 && PrimeNu[g] == 1 && GCD[a[n-1], k] == 1, Return[k]]]]];
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|