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”).
%I #13 Nov 08 2017 07:43:30
%S 68,88,91,118,131,151,157,194,203,424,602,772,832,884,947,1309,1463,
%T 2246,3304,4043,5725,6683,9344,10969,11026,11735,13664,14857,18529,
%U 21676,28217,28793,29605,33206,41182,43777,49936
%N Numbers n such that n!!! - 3^n is prime.
%C n!!! is the triple factorial sometimes written n!3.
%C If taking absolute values: 1,2,5,8,13,26,29,31,41,43,44,46,56,59 would also be in this sequence.
%C a(38) > 50000.
%e 68 is in the sequence because 68!!!-3^68=350834017732995704466119535768239 is prime.
%t MultiFactorial[n_, k_] := If[n < 1, 1, If[n < k + 1, n, n*MultiFactorial[n - k, k]]];
%t Select[Range[0, 100], MultiFactorial[#, 3] - 3^# > 0 && PrimeQ[MultiFactorial[#, 3] - 3^#] &]
%Y Cf. A007661, A124248, A124249.
%K nonn
%O 1,1
%A _Robert Price_, Aug 14 2015