login
A328225
a(1) = 1, a(n) = a(n-1) - prime(prime(n)) - prime(n-1) if this produces a positive integer not yet in the sequence, otherwise a(n) = a(n-1) + prime(prime(n)) - prime(n-1).
1
1, 4, 12, 24, 48, 78, 6, 56, 120, 206, 50, 176, 318, 86, 254, 448, 118, 342, 612, 192, 488, 14, 366, 744, 146, 596, 1058, 368, 860, 134, 730, 1342, 438, 1098, 100, 828, 1596, 472, 1300, 102, 992, 1900, 566, 1546, 152, 1172, 2270, 650, 1860, 186, 1428, 2694, 932, 2288, 416
OFFSET
1,2
CROSSREFS
Sequence in context: A128624 A372435 A321879 * A192797 A278355 A160619
KEYWORD
nonn,look
AUTHOR
Connor O'Higgins, Oct 08 2019
STATUS
approved