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!)
A111232 Least k such that k^prime(n)-k^((prime(n)+1)/2)+1 is prime for n>1. 0
2, 5, 2, 3, 5, 5, 9, 26, 9, 16, 11, 5, 6, 2, 46, 18, 16, 89, 10, 2, 2, 94, 7, 7, 16, 26, 230, 5, 2, 140, 34, 69, 114, 6, 2, 179, 994, 2, 76, 165, 8, 69, 3, 294, 230, 96, 7, 720, 684, 2029, 2, 2, 25, 135, 523, 271, 161, 1210, 139, 14, 34, 194, 238, 87, 355, 636, 40, 1114, 519, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
2,1
LINKS
EXAMPLE
2^3-2^2+1=5 prime so k(2)=2;
5^5-5^3+1=3001 prime so k(3)=5.
PROG
(PARI) a(n) = {my(k=1, p=prime(n)); while (!isprime(k^p-k^((p+1)/2)+1), k++); k; } \\ Michel Marcus, Sep 16 2019
CROSSREFS
Sequence in context: A192885 A246904 A199611 * A087892 A078372 A154751
KEYWORD
nonn
AUTHOR
Pierre CAMI, Oct 28 2005
EXTENSIONS
a(33) and a(34) concatenated by Georg Fischer, Jun 22 2022
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 April 16 08:27 EDT 2024. Contains 371698 sequences. (Running on oeis4.)