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!)
A074040 Product of first n twin prime pair products. 6
15, 525, 75075, 24249225, 21800053275, 38433493923825, 138322144631846175, 716923675626858725025, 7458156997546211316435075, 86984485062381462583582279725, 1656445549042930191979157352803175 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
a(1) = A037074(1) and a(n) = a(n-1)*A037074(n) for n>1.
a(n) = A079164(2*n).
EXAMPLE
The first two twin prime pairs are (3,5) and (5,7), their products: 15 and 35, therefore a(2)=15*35=525.
MATHEMATICA
a = {4, 6, 12, 18, 30, 42, 60, 72, 102, 108, 138, 150} (* A014574 *); Table[ Product[a[[k]]^2 - 1, {k, 1, n}], {n, 1, 12}]
Rest[FoldList[Times, 1, Times@@@Select[Partition[Prime[Range[50]], 2, 1], #[[2]]-#[[1]]==2&]]] (* Harvey P. Dale, Jan 19 2015 *)
step[{list_, q_}] := Module[{p=NextPrime[q]}, {Join[list, If[PrimeQ[p+2], {{p, p+2}}, {}]], p}]
pairList[n_] := First[NestWhile[step, {{{3, 5}}, 3}, Length[First[step[#]]]<=n&]]
a037074[n_] := Map[Apply[Times, #]&, pairList[n]]
a074040[n_] := Rest[FoldList[Times, 1, a037074[n]]]
a074040[11] (* Hartmut F. W. Hoft, Apr 27 2021 *)
CROSSREFS
Sequence in context: A009068 A268960 A157166 * A002403 A077206 A171197
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Aug 13 2002
EXTENSIONS
Edited by Robert G. Wilson v, Aug 17 2002
Corrections in Comment and Example, and added references. Hartmut F. W. Hoft, Apr 27 2021
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 September 9 02:41 EDT 2024. Contains 375759 sequences. (Running on oeis4.)