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 #19 Sep 03 2016 23:53:53
%S 0,0,2,6,18,24,36,42,56,78,82,114,132,138,152,186,212,220,250,278,286,
%T 318,338,368,406,440,454,470,484,500,574,602,632,648,708,712,754,790,
%U 816,848,882,888,960,970,996,1014,1080,1176,1202,1210,1226,1254,1270,1332,1362,1404
%N a(n) = prime(prime(n)-1) - prime(n).
%F a(n) = A000040(A006093(n)) - A000040(n) = A055003(n) - A000040(n).
%e For n=3, prime(prime(3)-1) = 7, and prime(3) = 5, therefore a(3) = 7 - 5 = 2.
%t Table[Prime[Prime[n]-1] - Prime[n], {n, 1, 100}]
%o (PARI) a(n) = prime(prime(n)-1) - prime(n); \\ _Michel Marcus_, Aug 18 2016
%Y Cf. A000040, A006093, A055003, A275989.
%K nonn
%O 1,3
%A _Terry D. Grant_, Aug 15 2016