login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A117533
a(n) = Sum_{k=1..n} A117532(k).
3
1, 3, 7, 13, 16, 23, 31, 41, 46, 57, 69, 83, 92, 107, 124, 137, 155, 175, 191, 213, 232, 255, 279, 305, 326, 353, 382, 407, 437, 469, 497, 531, 562, 597, 633, 671, 704, 743, 784, 821, 863, 907, 947, 993, 1036, 1083, 1131, 1181, 1226, 1277, 1330, 1379, 1433
OFFSET
1,2
COMMENTS
a(n) is coprime to n.
LINKS
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
Sequence in context: A060657 A192148 A151875 * A065057 A363636 A100807
KEYWORD
nonn
AUTHOR
Leroy Quet, Mar 26 2006
EXTENSIONS
More terms from R. J. Mathar, May 10 2007
STATUS
approved