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!)
A162873 List of pairs (p,r) of twin primes p and r=p+2 such that p-1, p+1 and r+1 are all divisible by squares > 1. 4
17, 19, 149, 151, 197, 199, 269, 271, 521, 523, 809, 811, 881, 883, 1049, 1051, 1061, 1063, 1277, 1279, 1949, 1951, 1997, 1999, 2141, 2143, 2549, 2551, 2789, 2791, 2969, 2971, 3257, 3259, 3329, 3331, 3581, 3583, 3821, 3823, 4049, 4051, 4157, 4159, 4229, 4231 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
(197,199) is a pair because all of 196, 198, and 200 are divisible by squares.
MATHEMATICA
dsQ[n_] := Length[Select[FactorInteger[n][[All, 2]], # > 1 &]] > 0; Select[ Partition[ Prime[ Range[ 250]], 2, 1], #[[2]]-#[[1]]==2&&AllTrue[ #[[1]]+ {-1, 1, 3}, dsQ]&]//Flatten (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Nov 28 2018 *)
CROSSREFS
Sequence in context: A210242 A165320 A132242 * A174379 A178424 A068387
KEYWORD
nonn,tabf
AUTHOR
EXTENSIONS
Corrected and previous (incorrect) Mathematica program replaced by Harvey P. Dale, Nov 28 2018
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 25 05:18 EDT 2024. Contains 371964 sequences. (Running on oeis4.)