OFFSET
1,1
EXAMPLE
The first term is the first prime, p(1) = 2
a(1) = p(1) = 2
a(2) = a(1) + p(2) = 2 + 3 = 5
a(3) = a(2) + p(3) = 5 + 5 = 10
etc.
a(8) = 58 + 19 = 77
a(9) is determined:
a(8) + p(9) = 77 + 23 = 100, a perfect power. 10 is the smallest root of 100, therefore a(9) = 10
a(10) = 10 + p(10) = 10 + 29 = 39
and so on.
MATHEMATICA
root[n_] := Surd[n, GCD @@ FactorInteger[n][[;; , 2]]]; a[1] = 2; a[n_] := a[n] = root[a[n - 1] + Prime[n]]; Array[a, 100] (* Amiram Eldar, May 21 2023 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Damon Lay, May 16 2023
STATUS
approved