The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

Thanks to everyone who made a donation during our annual appeal!
To see the list of donors, or make a donation, see the OEIS Foundation home page.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A329849 For a(n) even (respectively odd), there are a(n) even terms (respectively odd terms) between the only two occurrences of a(n). This is the lexicographially earliest sequence of nonnegative integers with this property. 1
 0, 0, 1, 2, 3, 1, 4, 5, 6, 2, 7, 3, 8, 9, 10, 4, 11, 12, 13, 5, 14, 6, 15, 16, 17, 7, 18, 19, 20, 8, 21, 22, 23, 9, 24, 10, 25, 26, 27, 11, 28, 29, 30, 12, 31, 13, 32, 33, 34, 14, 35, 36, 37, 15, 38, 39, 40, 16, 41, 17, 42, 43, 44, 18, 45, 46, 47, 19, 48, 20, 49, 50, 51, 21, 52, 53, 54, 22, 55 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,4 LINKS Jean-Marc Falcoz, Table of n, a(n) for n = 1..10000 EXAMPLE Between the two 0s there are 0 terms. Between the two 1s there is 1 odd term (which is 3 - we don't count 2 as 2 is even). Between the two 2s there are 2 even terms (which are 4 and 6 - we don't count 3, 1 and 5 as they are odd). Between the two 3s there are 3 odd terms (which are 1, 5 and 7 - we don't count 4, 6 and 2 as they are even). Between the two 4s there are 4 even terms (which are 6, 2, 8 and 10 - we don't count 5, 7, 3 and 9 as they are odd). Etc. CROSSREFS Cf. A014552. Sequence in context: A055449 A055442 A055439 * A122005 A306353 A117385 Adjacent sequences:  A329846 A329847 A329848 * A329850 A329851 A329854 KEYWORD base,nonn AUTHOR Eric Angelini and Jean-Marc Falcoz, Nov 22 2019 STATUS approved

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

Last modified January 21 21:30 EST 2020. Contains 331128 sequences. (Running on oeis4.)