The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

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.