OFFSET
1,1
FORMULA
a(n) = A126251(n) - 1. - Michel Marcus, Oct 17 2019
EXAMPLE
For n = 2, the second twin prime pair is (5, 7). So (5 + 1) * 7 - 1 = 41 is the second term.
MATHEMATICA
(#[[1]]+1)#[[2]]-1&/@Select[Partition[Prime[Range[300]], 2, 1], #[[2]]- #[[1]] == 2&] (* Harvey P. Dale, Aug 30 2021 *)
PROG
(PARI) my(p = 3); forprime(n=5, 2000, if(n - p == 2, print1((p + 1)*n - 1, ", ")); p=n)
CROSSREFS
KEYWORD
nonn
AUTHOR
Dimitris Valianatos, Oct 16 2019
STATUS
approved