login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A219533 a(n) = smallest prime not included earlier such that a(n-4) + a(n-3) + a(n-2) + a(n-1) + a(n) is a prime, with a(1)=3, a(2)=5, a(3)=7, and a(4)=11. 1
3, 5, 7, 11, 17, 13, 19, 23, 29, 43, 37, 31, 41, 47, 67, 53, 61, 79, 71, 73, 83, 103, 59, 101, 97, 89, 157, 113, 107, 127, 109, 131, 139, 137, 167, 199, 179, 181, 151, 149, 163, 233, 191, 193, 173, 223, 197, 211, 227, 229, 239, 257, 241, 251, 271, 263, 277, 311, 307, 269 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
a(5) = 17 because 13 will not work (3 + 5 + 7 + 11 + 13 = 39) but 17 does work, with 3 + 5 + 7 + 11 + 17 = 43.
a(6) = 13 because it is the smallest prime that will produce the desired result: 5 + 7 + 11 + 17 + 13 = 53.
MATHEMATICA
f[s_List] := Block[{p = s[[-4]] + s[[-3]] + s[[-2]] + s[[-1]], q = 13}, While[ !PrimeQ[p + q] || MemberQ[s, q], q = NextPrime[q]]; Append[s, q]]; Nest[f, {3, 5, 7, 11}, 56]
CROSSREFS
Cf. A073653.
Sequence in context: A116582 A052003 A019449 * A094615 A245396 A144574
KEYWORD
nonn
AUTHOR
Robert G. Wilson v, Nov 21 2012
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified March 19 06:32 EDT 2024. Contains 370953 sequences. (Running on oeis4.)