OFFSET
1,2
FORMULA
EXAMPLE
a(320) = a(2^6 * 5) = 2^a(6) = 2^a(2*3) = 2^2 = 4.
MATHEMATICA
Nest[Append[#, First@ FactorInteger[Length[#] + 1] /. {p_, e_} :> p^#[[e]] ] &, {1}, 78] (* Michael De Vlieger, Jan 07 2019 *)
PROG
(PARI) a(n) = if (n==1, 1, my (f=factor(n)); f[1, 1]^a(f[1, 2]))
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Jan 05 2019
STATUS
approved