OFFSET
2,1
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 2..2000
MAPLE
f:= proc(n) local t, k;
t:= 3^n;
for k from 1 do t:= t/2; if isprime(floor(t)) then return k fi od:
end proc:
map(f, [$2..100]); # Robert Israel, Jan 04 2017
MATHEMATICA
lk[n_]:=Module[{k=1, n3=3^n}, While[!PrimeQ[Floor[n3/2^k]], k++]; k]; Array[lk, 80, 2] (* Harvey P. Dale, Feb 24 2013 *)
PROG
(PARI) a(n)=if(n<0, 0, k=1; while(isprime(floor(3^n/2^k)) == 0, k++); k)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Benoit Cloitre, Sep 04 2002
STATUS
approved