OFFSET
1,2
COMMENTS
Example: a(3) = 2 because the third twin prime pair is (11, 13) and there are two pairs of odd numbers between (11, 13) and its immediate predecessor, (5,7), namely (7, 9) and (9, 11).
FORMULA
a(n) = (A001359(n+1) - (A001359(n) + 2))/2 = (A001359(n+1) - A006512(n))/2. - Michel Marcus, Sep 04 2013
PROG
(PARI) lista(nn) = {prm = primes(nn); gtp = select(p->isprime(p-2), prm); ltp = select(p->isprime(p+2), prm); for (i=1, #ltp-1, print1((ltp[i+1] - gtp[i])/2, ", "); ); } \\ Michel Marcus, Sep 04 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
John Austin Curry (acurry(AT)mckoolsmith.com), Sep 30 2008
EXTENSIONS
More terms from Michel Marcus, Sep 04 2013
STATUS
approved