login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

a(n) = prime(3^n - 1).
1

%I #13 Jul 01 2024 02:37:48

%S 3,19,101,409,1531,5507,19273,65677,220859,733559,2412763,7867543,

%T 25485179,82064011,262960069,839001707,2666790157,8448283721,

%U 26684834629,84064182049,264194301341,828513359543,2593131866471,8101615860581,25270000074743

%N a(n) = prime(3^n - 1).

%H Amiram Eldar, <a href="/A095120/b095120.txt">Table of n, a(n) for n = 1..36</a> (calculated using the b-file at A038833)

%F a(n) = A151799(A038833(n)). - _Amiram Eldar_, Jul 01 2024

%t Prime[3^Range[25]-1] (* _Harvey P. Dale_, Dec 01 2018 *)

%o (PARI) f(n) = for(x=1,n,print1(prime(3^x-1)","))

%Y Cf. A038833, A151799.

%K nonn

%O 1,1

%A _Cino Hilliard_, Jun 19 2004

%E More terms from _Harvey P. Dale_, Dec 01 2018