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”).

A075086
Rearrangement of natural numbers such that the n-th partial sum is divisible by the n-th composite number.
0
4, 2, 10, 11, 3, 6, 20, 19, 5, 28, 12, 27, 7, 14, 32, 8, 35, 9, 18, 50, 43, 45, 47, 13, 26, 52, 54, 30, 74, 16, 62, 34, 17, 67, 69, 71, 40, 75, 21, 78, 22, 44, 106, 23, 87, 24, 90, 118, 95, 97, 56, 130, 29, 105, 107, 31, 142, 113, 33, 66, 203, 121, 36, 124, 164, 38, 222, 133, 41
OFFSET
1,1
MATHEMATICA
Composite[n_Integer] := FixedPoint[1 + n + PrimePi@ # &, n + PrimePi@ n + 1]; f[s_List] := Block[{c = Composite[1 + Length@ s], k = 1, t = Plus @@ s}, While[ MemberQ[s, k] || Mod[t + k, c] > 0, k++]; Append[s, k]]; Nest[f, {}, 69] (* Robert G. Wilson v, May 13 2011 *)
CROSSREFS
Sequence in context: A121794 A250108 A210735 * A284782 A128781 A135440
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Sep 13 2002
EXTENSIONS
More terms from David Wasserman, Jan 16 2005
STATUS
approved