login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A022835
a(n) = c(1)p(3) + ... + c(n)p(n+2), where c(i) = 1 if a(i-1) < p(i+2) and c(i) = -1 if a(i-1) >= p(i+2) (p(i) = primes).
0
5, 12, 1, 14, 31, 12, 35, 6, 37, 0, 41, 84, 37, 90, 31, 92, 25, 96, 23, 102, 19, 108, 11, 112, 9, 116, 7, 120, 247, 116, 253, 114, 263, 112, 269, 106, 273, 100, 279, 98, 289, 96, 293, 94, 305, 82, 309, 80, 313, 74, 315, 64, 321, 58, 327, 56, 333, 52, 335, 42
OFFSET
0,1
CROSSREFS
Essentially identical to A022837. See that entry for more details. - N. J. A. Sloane, Aug 31 2019
Sequence in context: A370664 A130735 A322153 * A022834 A335102 A342069
KEYWORD
nonn
EXTENSIONS
Name corrected by Sean A. Irvine, May 22 2019
STATUS
approved