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!)
A224221 a(0)=3; for n>0, a(n) is the smallest odd prime q not already in the sequence such that the n-th prime p(n) divides a(n-1)+q. If no such prime q exists, the sequence terminates. 4
3, 5, 7, 13, 29, 37, 41, 61, 53, 131, 43, 19, 277, 379, 137, 239, 79, 157, 331, 71 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,1

COMMENTS

a(20) does not exist, so the sequence terminates. A134204 is a similar sequence for which the termination question is unresolved.

LINKS

Table of n, a(n) for n=0..19.

EXAMPLE

After a(3)=13, to find a(4) we look for an odd prime q such that the fourth prime, 7, divides 13+q, and q=29 works, since 7 divides 13+29 = 42.

After a(19)=71 we look for an odd prime q such that p(20)=71 divides 71+q. The only candidate is q=71. Since 71 is already in the sequence, the sequence terminates.

CROSSREFS

Cf. A134204, A224222.

Sequence in context: A024946 A257762 A224222 * A128547 A087383 A038928

Adjacent sequences: A224218 A224219 A224220 * A224222 A224223 A224224

KEYWORD

nonn,fini,full

AUTHOR

Daniel Drucker and N. J. A. Sloane, Apr 05 2013

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 January 27 08:42 EST 2023. Contains 359838 sequences. (Running on oeis4.)