OFFSET
1,1
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
FORMULA
a(n+1) = prime(A049084(a(n)) + a(n) mod 3). - Reinhard Zumkeller, Dec 19 2014
MATHEMATICA
a = 5; s = {5}; n = 3; Do[b = Prime[n = n + Mod[a, 3]]; AppendTo[s, b]; a = b, {100}]; s
PROG
(Haskell)
a252596 n = a252596_list !! (n-1)
a252596_list = iterate (\x -> a000040 (a049084 x + mod x 3)) 5
-- Reinhard Zumkeller, Dec 19 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, Dec 19 2014
STATUS
approved