OFFSET
1,2
COMMENTS
This sequence seems likely to be a permutation of the positive integers.
LINKS
Ferenc Adorjan, Table of n,a(n) for n=1,10000
Ferenc Adorjan, Some characteristics of _Leroy Quet_'s permutation sequences
MATHEMATICA
f[l_List] := Block[{n = Length[l] + 1, k = Mod[Plus @@ l, n, 1]}, While[MemberQ[l, k], k += n]; Append[l, k]]; Nest[f, {1}, 70] (* Ray Chandler, Feb 04 2007 *)
PROG
(PARI) {Quet_p1(n)=/* Permutation sequence a'la Leroy Quet, A125715 */local(x=[1], s=1, k=0, w=1); for(i=2, n, if((k=s%i)==0, k=i); while(bittest(w, k-1)>0, k+=i); x=concat(x, k); s+=k; w+=2^(k-1)); return(x)}
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Feb 01 2007
EXTENSIONS
Extended by Ray Chandler, Feb 04 2007
STATUS
approved