a(1) = 1, a(2n) = smallest prime > (2n-1)-th partial sum of the sequence itself and a(2n+1) = smallest composite number > 2n-th partial sum of the sequence.

A076636

a(1) = 1, a(2n) = smallest prime > (2n-1)-th partial sum of the sequence itself and a(2n+1) = smallest composite number > 2n-th partial sum of the sequence.

Terms

    a(0) =1a(1) =2a(2) =4a(3) =11a(4) =20a(5) =41a(6) =80a(7) =163a(8) =323a(9) =647a(10) =1293a(11) =2591a(12) =5177a(13) =10357a(14) =20711a(15) =41443a(16) =82865a(17) =165749a(18) =331479a(19) =662999a(20) =1325957a(21) =2651947a(22) =5303861a(23) =10607731a(24) =21215453a(25) =42430919a(26) =84861825a(27) =169723691a(28) =339447341a(29) =678894751

External references