login
a(n) = prime(n+pi(n)) - prime(n) = A000040(n+A000720(n)) - A000040(n).
1

%I #15 Oct 29 2023 18:52:44

%S 0,2,6,6,8,10,14,18,18,14,22,22,26,28,26,26,30,36,36,36,36,34,48,48,

%T 42,48,48,50,58,60,54,60,56,58,50,60,70,66,66,66,72,76,78,78,80,82,82,

%U 84,84,84,84,92,106,98,96,96,98,102,106,108,118,116,112,110,118,116,112

%N a(n) = prime(n+pi(n)) - prime(n) = A000040(n+A000720(n)) - A000040(n).

%H Ivan Neretin, <a href="/A082911/b082911.txt">Table of n, a(n) for n = 1..1000</a>

%e n=10: a(10) = prime(10+pi(10)) - prime(10) = prime(10+4)-29 = 43-29 = 14.

%t Table[Prime[n+PrimePi[n]]-Prime[n], {n, 1, 128}]

%Y Cf. A000040, A000720.

%K easy,nonn

%O 1,2

%A _Labos Elemer_, Apr 23 2003

%E Offset changed by _Georg Fischer_, Oct 29 2023