login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A092961 Least k so that (k-1)/n and k*n + 1 both are primes. 2
4, 5, 10, 9, 26, 13, 78, 17, 64, 21, 56, 61, 40, 239, 46, 81, 290, 55, 58, 41, 148, 45, 162, 73, 76, 131, 136, 57, 320, 61, 528, 65, 100, 69, 666, 253, 186, 77, 118, 681, 206, 85, 130, 89, 136, 231, 236, 97, 148, 101, 562, 885, 372, 163, 606, 113, 628, 175, 650, 181 (list; graph; refs; listen; history; internal format)
OFFSET

1,1

COMMENTS

Obviously a(n) is odd or even as n is even or odd.

EXAMPLE

a(4) = 9 as (9-1)/4 = 2 and 9*4 + 1 =37 both are primes.

a(9) = 64, (64-1)/9 = 7 and 64*9 + 1= 577 both are primes.

PROG

(PARI) a(n)=for(i=1, 10+n^3, if(Mod(i-1, n)==0 && isprime((i-1)/n) && isprime(i*n+1), return(i)))

CROSSREFS

Cf. A092962, A092963.

Sequence in context: A042427 A009778 A060648 * A177711 A115945 A084750

Adjacent sequences:  A092958 A092959 A092960 * A092962 A092963 A092964

KEYWORD

nonn

AUTHOR

Amarnath Murthy (amarnath_murthy(AT)yahoo.com), Mar 25 2004

EXTENSIONS

More terms from Mohammed Bouayoun (bouyao(AT)wanadoo.fr), Mar 26 2004

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 14 08:06 EST 2012. Contains 205604 sequences.