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
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, 14, 14, 15, 16, 16, 16, 17, 18, 19, 19, 19, 19, 20, 21, 21, 21, 21, 21, 21, 22, 23, 23, 24, 25, 25, 25, 26, 27, 27, 27, 28, 29, 29, 29, 29, 29, 30, 31, 32, 32, 32 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,5
LINKS
J. C. Lagarias, E. M. Rains and N. J. A. Sloane, The EKG sequence, Exper. Math. 11 (2002), 437-446.
MATHEMATICA
ekg[s_] := Block[{m = s[[-1]], k = 3}, While[MemberQ[s, k] || GCD[m, k] == 1, k++]; Append[s, k]];
EKG = Nest[ekg, {1, 2}, 100];
Boole[OddQ[#]]& /@ EKG // Accumulate (* Jean-François Alcover, Sep 10 2018, after Robert G. Wilson v *)
CROSSREFS
See A064475 for another version.
Sequence in context: A316355 A055768 A349909 * A255070 A176001 A194272
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Oct 30 2001
STATUS
approved

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 August 27 10:11 EDT 2024. Contains 375468 sequences. (Running on oeis4.)