OFFSET
1,1
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
FORMULA
EXAMPLE
n = 15, prime(n) = 47, prime(n+1) = 53, both 2*47 + 53 = 147 = 3*7^2 and 47 + 2*53 = 153 = 3^2*17 are products of 3 primes.
MAPLE
select(t -> numtheory:-bigomega(2*ithprime(t)+ithprime(t+1)) = numtheory:-bigomega(ithprime(t)+2*ithprime(t+1)), [$1..1000]); # Robert Israel, Mar 20 2017
MATHEMATICA
Select[Range[1000], PrimeOmega[{2, 1}.{(p=Prime[#]), (q=Prime[#+1])}]==PrimeOmega[{1, 2}.{p, q}]&]
PROG
(PARI) list(lim)=my(v=List(), p=2, n); forprime(q=3, , if(n++>lim, break); if(bigomega(p+2*q)==bigomega(2*p+q), listput(v, n)); p=q); Vec(v) \\ Charles R Greathouse IV, Mar 20 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Mar 19 2017
STATUS
approved