OFFSET
1,2
FORMULA
a(n) = A007917(n)^n for n>1. - Michel Marcus, Sep 24 2020
EXAMPLE
a(2) = 4 (4=2*2 has 2 factors and 2 is the largest prime number <= 2).
a(3) = 27 (27=3*3*3 has 3 factors and 3 is the largest prime number <= 3).
a(4) = 81 (81=3*3*3*3 has 4 factors and 3 is the largest prime number <= 4).
MATHEMATICA
a[n_] := If[n == 1, 0, If[PrimeQ[n], n, NextPrime[n, -1]]^n];
Array[a, 18] (* Jean-François Alcover, Sep 24 2020 *)
PROG
(PARI) a(n) = if (n==1, 0, precprime(n)^n); \\ Michel Marcus, Sep 24 2020
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Jostein Trondal (jallamekk(AT)hotmail.com), May 13 2002
STATUS
approved