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!)
A181542 Numbers k such that there is at least one pair of twin primes 3^k - 3^j -+ 1 with k/2 <= j < k. 1
2, 3, 4, 11, 12, 18, 20, 30, 35, 47, 108, 113, 118, 127, 136, 162, 165, 212, 502, 656, 1131, 1560, 1620, 1966, 2293, 4184, 5568 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
MAPLE
isA181542 := proc(n) local nh, k, p; if type(n, 'even') then nh := n/2; else nh := (n+1)/2; end if; for k from n-1 to nh by -1 do p := 3^n-3^k-1 ; if isprime(p) and isprime(p+2) then return true; end if; end do ; false; end proc:
for n from 1 do if isA181542(n) then print(n); end if; end do; # R. J. Mathar, Feb 05 2011
CROSSREFS
Sequence in context: A268236 A039023 A110918 * A160914 A326377 A155768
KEYWORD
nonn
AUTHOR
Pierre CAMI, Jan 29 2011, Feb 05 2011
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 May 6 18:59 EDT 2024. Contains 372297 sequences. (Running on oeis4.)