login
A073892
a(1) = 1, a(2n) = a(2n-1) + p(n) and a(2n+1) = a(2n) - c(n), where p(n)=A000040(n) and c(n)=A002808(n) are the n-th composite and n-th prime numbers, respectively.
1
1, 3, -1, 2, -4, 1, -7, 0, -9, 2, -8, 5, -7, 10, -4, 15, 0, 23, 7, 36, 18, 49, 29, 66, 45, 86, 64, 107, 83, 130, 105, 158, 132, 191, 164, 225, 197, 264, 234, 305, 273, 346, 313, 392, 358, 441, 406, 495, 459, 556, 518, 619, 580, 683, 643, 750, 708, 817, 773, 886, 841, 968
OFFSET
1,2
COMMENTS
All terms from a(18) onward are positive.
CROSSREFS
Cf. A073891.
Sequence in context: A083110 A059016 A080418 * A280348 A332397 A004608
KEYWORD
sign
AUTHOR
Amarnath Murthy, Aug 17 2002
EXTENSIONS
Edited by Dean Hickerson, Oct 13 2002
STATUS
approved