OFFSET
0,2
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..10000
FORMULA
MATHEMATICA
A141136[n_]:= With[{p=Prime}, If[n==0, 1, p[p[p[n]]-1]-1]];
Table[A141136[n], {n, 0, 60}] (* G. C. Greubel, Aug 05 2024 *)
PROG
(Magma)
p:=NthPrime;
A141136:= func< n | n eq 0 select 1 else p(p(p(n))-1) -1 >;
[A141136(n): n in [0..50]]; // G. C. Greubel, Aug 05 2024
(SageMath)
p=nth_prime
def A141136(n): return 1 if n==0 else p(p(p(n))-1)-1
[A141136(n) for n in range(51)] # G. C. Greubel, Aug 05 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Jul 31 2008
EXTENSIONS
Corrected and extended by D. S. McNeil, Mar 21 2009
Offset changed by G. C. Greubel, Aug 05 2024
STATUS
approved