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!)
A064952 Number of odd terms among first n terms of A064413. 1

%I #8 Sep 10 2018 10:12:32

%S 1,1,1,1,2,3,3,3,3,4,5,5,5,6,7,7,7,7,7,8,9,10,10,11,12,12,12,13,14,14,

%T 14,14,15,16,16,16,17,18,19,19,19,19,20,21,21,21,21,21,21,22,23,23,24,

%U 25,25,25,26,27,27,27,28,29,29,29,29,29,30,31,32,32,32

%N Number of odd terms among first n terms of A064413.

%H J. C. Lagarias, E. M. Rains and N. J. A. Sloane, <a href="http://arXiv.org/abs/math.NT/0204011">The EKG sequence</a>, Exper. Math. 11 (2002), 437-446.

%H <a href="/index/Ed#EKG">Index entries for sequences related to EKG sequence</a>

%t ekg[s_] := Block[{m = s[[-1]], k = 3}, While[MemberQ[s, k] || GCD[m, k] == 1, k++]; Append[s, k]];

%t EKG = Nest[ekg, {1, 2}, 100];

%t Boole[OddQ[#]]& /@ EKG // Accumulate (* _Jean-François Alcover_, Sep 10 2018, after _Robert G. Wilson v_ *)

%Y See A064475 for another version.

%K nonn

%O 1,5

%A _N. J. A. Sloane_, Oct 30 2001

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 April 24 04:14 EDT 2024. Contains 371918 sequences. (Running on oeis4.)