OFFSET
1,1
COMMENTS
The corresponding records values are 1, 2, 3, 6, 12, 20, 24, 58, 322, 414, 483, 527, 1065, 2597, 3181, 6022, ...
EXAMPLE
The first 6 terms of A345706 are 1, 1, 2, 2, 3 and 6. The record values, 1, 2, 3 and 6, occur at k = 1, 3, 5 and 6. The corresponding primes are prime(k) = 2, 5, 11 and 13, the first 4 terms of this sequence.
MATHEMATICA
f[n_] := Module[{r = Product[Prime[j], {j, 1, n - 1}], p = Prime[n], k}, k = Max[1, Ceiling@Log[p, r]]; While[! PrimeQ[r*p^k + 1], k++]; k]; fm = 0; s = {}; Do[f1 = f[k]; If[f1 > fm, fm = f1; AppendTo[s, Prime[ k]]], {k, 1, 50}]; s
CROSSREFS
KEYWORD
nonn,more
AUTHOR
Amiram Eldar, Jun 24 2021
STATUS
approved