OFFSET
1,2
COMMENTS
In the prime number decomposition of k=A002808(i), i=1,2,3,.., one instance of the largest prime, pmax=A052369(i), is replaced by pmax-2 and one instance of the smallest prime, pmin=A056608(i), is replaced by pmin+2. If the product of this modified list of factors, k*(pmax-2)*(pmin+2)/(pmin*pmax), is nonprime, it is added to the sequence.
EXAMPLE
k(1)=4=(p(max)=2)*(p(min)=2), transformed (2-2)*(2+2)=0*4=0=a(1).
k(2)=6=(p(max)=3)*(p(min)=2), transformed (3-2)*(2+2)=1*4=4=a(2).
k(3)=8=(p(max)=2)*(p=2)*(p(min)=2), transformed (2-2)*2*(2+2)=0*2*4=0=a(3).
k(4)=9=(p(max)=3)*(p(min)=3), transformed (3-2)*(3+2)=1*5=5 (prime, skipped).
k(5)=10=(p(max)=5)*(p(min)=2), transformed (5-2)*(2+2)=3*4=12=a(4).
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Aug 14 2008
EXTENSIONS
Edited and corrected by R. J. Mathar, Aug 18 2008
STATUS
approved