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

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A103688 a(n)=n if for the least k such that k*n -1 or +1 is prime, k*n -1 and k*n +1 are twin primes or a(n)=0 if only one of k*n -1 and k*n +1 is prime for the least k. 1
1, 2, 3, 4, 6, 0, 0, 9, 0, 0, 12, 0, 0, 15, 0, 0, 18, 0, 0, 21, 0, 23, 0, 25, 0, 0, 0, 0, 30, 0, 0, 0, 0, 0, 36, 0, 0, 0, 0, 0, 42, 0, 0, 0, 46, 47, 0, 0, 50, 51, 0, 0, 0, 0, 0, 0, 0, 0, 60, 0, 0, 0, 0, 0, 0, 0, 0, 69, 0, 0, 72, 0, 0, 75, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 94, 0, 96, 0, 0 (list; graph; refs; listen; history; internal format)
OFFSET

1,2

EXAMPLE

For n=5 2*5-1=9 not prime, 2*5+1=11 prime so a(5)=0

For n=6 1*6-1=5 prime, 1*6+1=7 prime, 5 and 7 twin primes so a(6)=6

CROSSREFS

Cf. A103689.

Sequence in context: A062934 A038106 A046942 * A051703 A004567 A030378

Adjacent sequences:  A103685 A103686 A103687 * A103689 A103690 A103691

KEYWORD

easy,nonn

AUTHOR

Pierre CAMI (pierre-cami(AT)bbox.fr), Feb 12 2005

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 13 15:00 EST 2012. Contains 205519 sequences.