OFFSET
1,1
EXAMPLE
5 is a term of a(1) because 1 = Omega(5) = Omega(7),
11 is a term of a(2) because 2 = Omega(119) = Omega(123).
MATHEMATICA
a[n_] := Module[{p = 2}, While[PrimeOmega[p^n - 2] != n || PrimeOmega[p^n + 2] != n, p = NextPrime[p]]; p]; Array[a, 10] (* Amiram Eldar, Oct 15 2019 *)
PROG
(PARI) a(n) = {my(p=3); while (! ((bigomega(p^n-2) == n) && (bigomega(p^n+2) == n)), p = nextprime(p+1)); p; } \\ Michel Marcus, Oct 17 2019
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Juri-Stepan Gerasimov, Oct 15 2019
EXTENSIONS
a(11) from Daniel Suteu and Giovanni Resta, Nov 07 2019
STATUS
approved