OFFSET
1,1
LINKS
Jean-Marc Rebert, Factorizations of k^n-1 and k^n+1
FORMULA
EXAMPLE
a(1) = 4, because 4^1 - 1 = 3 and 4^1 + 1 = 5, and no lesser number has this property.
See the Links section for more examples.
PROG
(PARI) a(n) = my(k=2, kn=k^n); while ((bigomega(kn-1)!=n) || (bigomega(kn+1)!=n), k++; kn=k^n); k; \\ Michel Marcus, Aug 18 2025
CROSSREFS
KEYWORD
nonn,more,hard
AUTHOR
Jean-Marc Rebert, Aug 12 2025
STATUS
approved
