OFFSET
2,1
COMMENTS
Observation: Even terms of A006881 not occurring in this sequence are, e.g., 22, 34, 38, 46, ..., due to the sparseness of Mersenne primes (A000668) and Fermat primes (A000215). Also missing are many multiples of 3, e.g., 3*{31, 67, 79, 83, 101, 103, 113, ...}, as a consequence of the gaps of A058383 and A268640 and the size distribution of prime factors, i.e., the rareness of smooth numbers.
LINKS
Hugo Pfoertner, Table of n, a(n) for n = 2..10000
Hugo Pfoertner, 1 million terms of A379445, 7z compressed file (5 MB) (2025).
FORMULA
EXAMPLE
a(43390) = 146 because 2^19-1 = A000668(5) is the 43390th prime and the greatest prime factor of 2^19-2 is 73.
MATHEMATICA
Table[Times @@ Map[FactorInteger[#][[-1, 1]] &, Prime[n] + {-1, 1}], {n, 2, 61}] (* Michael De Vlieger, Jan 20 2025 *)
PROG
(PARI) a379445(n) = my (p=prime(n), fm=factor(p-1), fp=factor(p+1)); fm[#fm~, 1]*fp[#fp~, 1]
CROSSREFS
KEYWORD
nonn
AUTHOR
Hugo Pfoertner, Dec 28 2024
STATUS
approved