login
A073891
a(1) = 1, a(2n) = a(2n-1) + c(n) and a(2n+1) = a(2n) - p(n), where c(n)=A002808(n) and p(n)=A000040(n) are the n-th composite and n-th prime numbers, respectively.
1
1, 5, 3, 9, 6, 14, 9, 18, 11, 21, 10, 22, 9, 23, 6, 21, 2, 18, -5, 13, -16, 4, -27, -6, -43, -21, -62, -38, -81, -56, -103, -77, -130, -103, -162, -134, -195, -165, -232, -200, -271, -238, -311, -277, -356, -321, -404, -368, -457, -419, -516, -477, -578, -538, -641, -599, -706, -662, -771, -726, -839, -793
OFFSET
1,2
COMMENTS
All terms from a(23) onward are negative.
CROSSREFS
Cf. A073892.
Sequence in context: A161501 A118273 A242616 * A196396 A086970 A224511
KEYWORD
sign
AUTHOR
Amarnath Murthy, Aug 17 2002
EXTENSIONS
Edited by Dean Hickerson, Oct 13 2002
STATUS
approved