OFFSET
1,2
FORMULA
a(n) = prime(a(n-1))^3, for n>=2.
EXAMPLE
For n=3, the complete ternary tree of 3 levels is
6859
/ | \ a(3) = prime(8)^3
8 8 8 = 6859
/|\ /|\ /|\
1 1 1 1 1 1 1 1 1
PROG
(PARI) a(n) = my(ret=1); for(i=2, n, ret=prime(ret)^3); ret;
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Kevin Ryde, Jul 27 2022
EXTENSIONS
a(5) from Jinyuan Wang, Jul 27 2022
STATUS
approved