login
A132426
a(n) = A132425(n+1) - A132425(n).
1
1, 2, 4, 6, 7, 3, 8, 10, 9, 12, 14, 11, 16, 13, 15, 18, 5, 20, 21, 22, 24, 26, 28, 30, 32, 34, 35, 42, 49, 36, 38, 37, 17, 19, 25, 23, 31, 27, 33, 39, 45, 40, 29, 44, 52, 48, 51, 46, 50, 54, 56, 58, 57, 60, 63, 62, 64, 41, 43, 66, 65, 78, 55, 68, 70, 69, 72, 75, 74, 76, 77, 88
OFFSET
1,2
COMMENTS
Is this sequence a permutation of the positive integers?
MATHEMATICA
a = {1, 2}; For[n = 1, n < 1000, n++, n = a[[ -1]]; c = 0; While[c == 0, n++; If[GCD[n, a[[ -1]]] > 1, b = 0; For[j = 1, j < Length[a], j++, If[a[[j + 1]] - a[[j]] == n - a[[ -1]], b = 1]]; If[b == 0, AppendTo[a, n]; c = 1]]]]; b = {}; For[k = 1, k < Length[a], k++, AppendTo[b, a[[k + 1]] - a[[k]]]]; b (* Stefan Steinerberger, Oct 21 2007 *)
CROSSREFS
Cf. A132425.
Sequence in context: A225187 A281485 A142473 * A072646 A091476 A257578
KEYWORD
nonn
AUTHOR
Leroy Quet, Aug 20 2007
EXTENSIONS
More terms from Stefan Steinerberger, Oct 21 2007
STATUS
approved