The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A330086 Least positive integer k such that A014577(k - 1) != A014577(n + k - 1). 1
2, 1, 4, 2, 1, 1, 3, 4, 2, 1, 1, 2, 1, 1, 3, 8, 2, 1, 4, 2, 1, 1, 1, 4, 2, 1, 1, 2, 1, 1, 3, 16, 2, 1, 4, 2, 1, 1, 3, 4, 2, 1, 1, 2, 1, 1, 1, 8, 2, 1, 4, 2, 1, 1, 1, 4, 2, 1, 1, 2, 1, 1, 3, 32, 2, 1, 4, 2, 1, 1, 3, 4, 2, 1, 1, 2, 1, 1, 3, 8, 2, 1, 4, 2, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
a(2n) = A006519(n) and a(2n+1) = b(n), where (b(n))_{n >= 0} is a 2-automatic sequence defined by applying the coding tau(01234) = 24131 to the fixed point of the morphism defined by 0 -> 01, 1 -> 23, 2 -> 04, 3 -> 23, 4 -> 24.
LINKS
MAPLE
with(ListTools): with(numtheory):
J := (n, k) -> jacobi(-1, k) <> jacobi(-1, n+k):
a := n -> SelectFirst(k -> J(n, k), [seq(k, k=1..100000)]):
seq(a(n), n=1..86); # Peter Luschny, Dec 02 2019
MATHEMATICA
Block[{nn = 86, s}, s = Array[Boole[EvenQ[((# + 1)/2^IntegerExponent[# + 1, 2] - 1)/2]] &, 3 nn, 0]; Array[Block[{i = 1}, While[s[[i]] == s[[# + i]], i++]; i] &, nn]] (* Michael De Vlieger, Dec 01 2019 *)
CROSSREFS
Sequence in context: A130544 A214027 A007739 * A290935 A031424 A013942
KEYWORD
nonn
AUTHOR
Jeffrey Shallit, Dec 01 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 | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 14 14:46 EDT 2024. Contains 372533 sequences. (Running on oeis4.)