OFFSET
1,1
FORMULA
a(n+1) = a(n) + 30 for n >= 7 (conjectured). - Chai Wah Wu, Feb 15 2020
MATHEMATICA
(* first do *) Needs [ "Combinatorica`" ] (* then *) lst = {30}; g [ k_ ] := Block [ {j = 1, l = 2^Length@ lst}, While [ j < l && !PrimeQ [ Plus @@ NthSubset [ j, lst ] + k ], j++ ]; If [ j == l, False, True ] ]; f [ n_ ] := Block [ {k = lst [ [ -1 ] ] + 1}, While [ g@k == True, k++ ]; AppendTo [ lst, k ]; k ]; Do [ Print@ f@n, {n, 30} ]
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Robert G. Wilson v, Jan 01 2008
STATUS
approved