OFFSET
1,1
COMMENTS
Define Sj=sum of j(n) for n=1 to N. Define Sn=sum of (2*log(n))^2 for n=1 to N. As N increases Sj/Sn tends to 0.6. - Pierre CAMI, Dec 13 2011
LINKS
Pierre CAMI, Table of n, a(n) for n = 1..10000
EXAMPLE
12*4*4-1=191, 191 and 193 are twin primes so a(4)=12.
PROG
(PARI) a(n) = my(j=1); while (!(isprime(p=j*n^2-1) && isprime(p+2)), j++); j; \\ Michel Marcus, Sep 17 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Pierre CAMI, Sep 12 2005
EXTENSIONS
Extended by Ray Chandler, Sep 15 2005
STATUS
approved