This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A351051 #13 Feb 02 2022 15:08:44 %S A351051 3,11,17,7,25781659,13505561767 %N A351051 a(n) is the least prime that begins a sequence of exactly n primes under iteration of the map x -> (x^2+2)/3. %e A351051 7 is prime, (7^2+2)/3 = 17 is prime, (17^2+2)/3 = 97 is prime, (97^2+2)/3 = 3137 is prime, but (3137^2+2)/3 = 3280257 is not prime, so 7 begins the sequence of 4 primes (7, 17, 97, 3137). Since this is the first prime to do so, a(4) = 7. %p A351051 f:= proc(p) option remember; local q; %p A351051 q:= (p^2+2)/3; %p A351051 if isprime(q) then 1 + procname(q) else 1 fi %p A351051 end proc: %p A351051 A:= Vector(5): count:= 0: %p A351051 p:= 3: %p A351051 while count < 5 do %p A351051 p:= nextprime(p); %p A351051 v:= f(p); %p A351051 if A[v] = 0 then A[v]:= p; count:= count+1; fi; %p A351051 od: %p A351051 convert(A,list); %t A351051 f[n_] := -1 + Length @ NestWhileList[(#^2 + 2)/3 &, n, PrimeQ]; a[n_] := Module[{p = 3}, While[f[p] != n, p = NextPrime[p]]; p]; Array[a, 4] (* _Amiram Eldar_, Feb 01 2022 *) %Y A351051 Cf. A109953. %K A351051 nonn,more %O A351051 1,1 %A A351051 _J. M. Bergot_ and _Robert Israel_, Jan 30 2022 %E A351051 a(6) from _Amiram Eldar_, Feb 01 2022