login
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

%I #5 Jun 24 2014 01:08:25

%S 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,

%T 64,107,83,130,105,158,132,191,164,225,197,264,234,305,273,346,313,

%U 392,358,441,406,495,459,556,518,619,580,683,643,750,708,817,773,886,841,968

%N 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.

%C All terms from a(18) onward are positive.

%Y Cf. A073891.

%K sign

%O 1,2

%A _Amarnath Murthy_, Aug 17 2002

%E Edited by _Dean Hickerson_, Oct 13 2002