OFFSET
1,1
COMMENTS
Does this sequence become cyclic? All the sequences defined the same as this one but with 1 <= a(1) <= 12 are known to become cyclic.
a(81) = 1977693361846020549, so calculating a(82) will require calculating the 1977693361846020549th prime.
EXAMPLE
a(1) = 13 is odd, so a(2) = 13 + prime(13) = 13 + 41 = 54.
a(2) = 54 is even, so a(3) = a(2)/2 = 54/2 = 27.
a(3) = 27 is odd, so a(4) = 27 + prime(27) = 27 + 103 = 130, etc.
MATHEMATICA
NestList[If[EvenQ[#], #/2, # + Prime[#]] &, 13, 40]
PROG
(PARI) lista(nn) = my(va = vector(nn)); va[1] = 13; for (n=2, nn, if (va[n-1] % 2, va[n] = va[n-1] + prime(va[n-1]), va[n] = va[n-1]/2); ); va; \\ Michel Marcus, Nov 12 2022
CROSSREFS
KEYWORD
AUTHOR
Sander G. Huisman, Nov 01 2022
STATUS
approved