login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A178698 Largest k<n such that 2*composite(n)=composite(n-k)+composite(n+k). 1

%I #16 Mar 30 2012 18:52:41

%S 0,1,0,3,4,5,4,6,7,4,0,2,7,0,5,13,15,16,13,9,11,15,20,21,18,19,25,17,

%T 0,2,21,0,19,23,25,29,23,27,28,29,39,23,14,16,38,39,40,37,38,39,32,0,

%U 1,29,30,31,28,29,30,23,24,25,26,35,22,23,38,39,40,50,57,43,44,54,32

%N Largest k<n such that 2*composite(n)=composite(n-k)+composite(n+k).

%e a(1)=0 because 2*composite(1)=composite(1-0)+composite(1+0)=4+4=8.

%t Composite[n_Integer] := FixedPoint[n + PrimePi@# + 1 &, n + PrimePi@ n + 1]; f[n_] := Block[{k = n - 1, m = Composite@ n}, While[k > 0 && 2 m != Composite[n + k] + Composite[n - k], k--]; k]; Array[f, 75]

%Y Cf. A002808 (composite numbers), A178609 (prime version).

%K nonn

%O 1,4

%A _Juri-Stepan Gerasimov_, Dec 26 2010, Dec 31 2010

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 1 11:12 EDT 2024. Contains 375589 sequences. (Running on oeis4.)