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!)
A362267 For n >= 0, a(n) is the least integer i >= 0 such that n + p_1 + ... + p_i = q, q prime number, or a(n) = -1 if no such i exists. Here p_1 is the least prime >= n, p_1 < p_2 < ... < p_i are prime numbers (A000040). 0
1, 1, 0, 0, 15, 0, 1, 0, 1, 12, 13, 0, 3, 0, 1, 4, 29, 1, 1, 0, 1, 2, 25, 0, 1, 4, 7, 8, 13, 0, 1, 0, 7, 6, 1, 2, 1, 0, 1, 4, 21, 0, 7, 0, 5, 10, 19, 0, 1, 6, 1, 2, 85, 0, 1, 4, 17, 6, 5, 0, 11, 0, 15, 4, 1, 20, 3, 0, 1, 14, 3, 0, 3, 0, 5, 22, 17, 2, 1, 0, 1, 6, 11, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,5
LINKS
FORMULA
a(p) = 0 for p prime number.
EXAMPLE
n = 4: p_1 >= 4 is 5, a(4) = 4 + p_1 + ... + p_i = 4 + 5 + 7 + 11 + 13 + 17 + 19 + 23 + 29 + 31 + 37 + 41 + 43 + 47 + 53 + 59 = 439 which is a prime number, thus a(4) = 15.
CROSSREFS
Sequence in context: A324675 A106239 A271763 * A271339 A202857 A055965
KEYWORD
sign
AUTHOR
Ctibor O. Zizka, Jul 05 2023
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 August 25 13:19 EDT 2024. Contains 375439 sequences. (Running on oeis4.)