OFFSET
1,1
REFERENCES
From a puzzle proposed by Marc LeBrun.
EXAMPLE
If n = 9 = 3^2, then a(n) = 11^2 = 121 (since 11 is the third prime after 3).
MATHEMATICA
f[p_, e_] := NextPrime[p, 3]^e; a[1] = 5; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100] (* Amiram Eldar, Sep 19 2023 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
EXTENSIONS
More terms from David W. Wilson
Erroneous linear recurrence deleted by Harvey P. Dale, May 07 2018
STATUS
approved