A123483 Second order Recamán's sequence: a(0) = 0; for n > 0, a(n) = a(n-1) - A005132(n) if that number is positive and not already in the sequence, otherwise a(n-1) + A005132(n).
0, 1, 4, 10, 8, 15, 2, 22, 34, 13, 24, 46, 36, 59, 50, 26, 18, 43, 86, 148, 106, 169, 128, 110, 68, 51, 94, 78, 122, 107, 62, 48, 94, 173, 60, 138, 252, 175, 136, 58, 20, 99, 136, 56, 92, 11, 46, 128, 162, 79, 112, 28, 60, 145, 114, 200, 170, 83, 54, 142, 170, 81, 108, 198
Offset: 0
Keywords
Links
- Franklin T. Adams-Watters, The first 10000 terms
- Nick Hobson, Python program for this sequence
Crossrefs
Cf. A005132.
Comments