OFFSET
1,2
COMMENTS
One possible extension of A084937, A103683 to N=4. Here, a(4)=5 is chosen such that a(n) is coprime to a(k) for 0 < k < n <= 4. Another choice is a(k)=k (k<=4), which yieds the different sequence A180348.
It appears that:
- no multiples of 6 occur in this sequence, so it is not a permutation of the integers.
- a(n)=3 (mod 6) iff n=3, n=8, n=13 or n=14+5k, k>0.
- a(n)=0 (mod 2) iff n= 2+5k, k>=0.
- powers of 2 occur in natural order.
- powers of 3 occur in natural order.
- powers of any prime p occur in natural order.
- powers of any number occur in natural order.
LINKS
Zak Seidov, Table of n, a(n) for n = 1..5000
PROG
(PARI) print1("1, 2, 3"); a=[1, 2, 3, L=5]; unused=[4]; v=vector(#a, i, 1); for(n=4, 99, print1(", "a[#a]); for(i=1, #unused, apply(x->gcd(x, unused[i]), a)==v | next; a=concat(vecextract(a, "^1"), unused[i]); unused=vecextract(unused, Str("^", i)); next(2)); L++; while(apply(x->gcd(x, L), a) !=v, unused=concat(unused, L++-1); ); a=concat(vecextract(a, "^1"), L))
CROSSREFS
KEYWORD
nonn
AUTHOR
M. F. Hasler, Jan 18 2011
STATUS
approved