login
a(n) = floor((prime(n-1)+prime(n+1))/2).
1

%I #11 Oct 10 2022 12:29:07

%S 1,3,5,8,10,14,16,20,24,27,33,36,40,44,48,53,57,63,66,70,75,78,84,90,

%T 95,100,104,106,110,118,122,132,135,143,145,153,157,162,168,173,177,

%U 185,187,194,196,204,211,219,226,230,234,237,245,249,257,263,267,273

%N a(n) = floor((prime(n-1)+prime(n+1))/2).

%F a(n) = A024675(n-1) - A028334(n-1), n>2. - _R. J. Mathar_, Apr 16 2008

%o (PARI) j=[]; for(n=1,200,j=concat(j,floor((prime(n-1)+prime(n+1))/2))); j

%Y Cf. A000040, A024675, A028334.

%K nonn

%O 1,2

%A _Jason Earls_, Jul 21 2001