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”).

Numbers k such that (3^lambda(k) - 1)/k is prime, where lambda(k) is the Carmichael lambda function (A002322).
0

%I #10 Sep 08 2021 21:14:29

%S 4,16,40,56,160,7280

%N Numbers k such that (3^lambda(k) - 1)/k is prime, where lambda(k) is the Carmichael lambda function (A002322).

%C The corresponding primes are 2, 5, 2, 13, 41, 73.

%e 4 is in the sequence since lambda(4) = 2 and (3^2 - 1)/4 = 2 is prime.

%t aQ[n_] := PrimeQ[(3^CarmichaelLambda[n]-1)/n]; a={}; Do[If[aQ[k], AppendTo[a,k]], {k,1,10000}]; a

%o (PARI) isok(n) = (denominator(p=(3^lcm(znstar(n)[2])-1)/n)==1) && isprime(p); \\ _Michel Marcus_, Dec 29 2017

%Y Cf. A002322.

%K nonn,more

%O 1,1

%A _Amiram Eldar_, Dec 29 2017