OFFSET
1,2
COMMENTS
a(n) is coprime to n.
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..3000
MAPLE
A117532 := proc(nmax) local a, n, nxt, asu ; a := [1] ; asu := 1 ; while nops(a) < nmax do n := nops(a)+1 ; nxt := 1 ; while nxt in a or gcd(n, asu+nxt) <> 1 do nxt := nxt+1 ; od ; a := [op(a), nxt] ; asu := asu+nxt ; od ; a ; end: A117533 := proc(a117532, n) local i ; add(op(i, a117532), i=1..n) ; end: a117532 := A117532(80) : seq( A117533(a117532, n), n=1..nops(a117532)) ; # R. J. Mathar, May 10 2007
MATHEMATICA
Accumulate@ Fold[Append[#1, Block[{k = 2}, While[Nand[FreeQ[#1, k], CoprimeQ[Total@ #1 + k, #2]], k++]; k]] &, {1}, Range[2, 53]] (* Michael De Vlieger, Sep 30 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Leroy Quet, Mar 26 2006
EXTENSIONS
More terms from R. J. Mathar, May 10 2007
STATUS
approved