The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A039640 Fixed point of "k -> k/2 or (k+1)/2 until result is prime", starting with prime(n)-1. 4
 1, 2, 2, 3, 5, 3, 2, 5, 11, 7, 2, 5, 5, 11, 23, 13, 29, 2, 17, 5, 5, 5, 41, 11, 3, 13, 13, 53, 7, 7, 2, 17, 17, 5, 37, 19, 5, 41, 83, 43, 89, 23, 3, 3, 13, 13, 53, 7, 113, 29, 29, 2, 2, 2, 2, 131, 67, 17, 5, 5, 71, 73, 5, 5, 5, 79, 83, 11, 173, 11, 11, 179, 23, 47, 3, 191, 97, 13 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 LINKS Reinhard Zumkeller, Table of n, a(n) for n = 1..10000 MATHEMATICA see A039635. PROG (Haskell) a039640 1 = 1 a039640 n = until ((== 1) . a010051) (flip div 2 . (+ 1)) (a000040 n - 1) -- Reinhard Zumkeller, Nov 17 2013 CROSSREFS Cf. A039634-A039645. Cf. A010051, A000040, A039644, A039638, A039635. Sequence in context: A090926 A023503 A241195 * A053811 A049840 A317018 Adjacent sequences:  A039637 A039638 A039639 * A039641 A039642 A039643 KEYWORD nonn AUTHOR EXTENSIONS Offset corrected by Reinhard Zumkeller, Nov 17 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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified May 25 11:27 EDT 2020. Contains 334592 sequences. (Running on oeis4.)