Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A111372
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A111372 Consider the sequence defined in A083952 as a string of the digits 1 and 2. Then a(n) is the beginning position of the first occurrence of just n consecutive 1's at every other position. +0
1
6, 0, 198, 170, 384, 992, 542, 648, 762, 5070 (list; graph; listen)
OFFSET

0,1

EXAMPLE

a(0) = 6 because A083952(6) is an isolated 1,

a(1) = 0 because A083952(0) = A083952(2) = 1 but A083952(4) = 2,

a(2) = 198 because A083952(198) = A083952(200) = A083952(202) = 1, but A083952(196) = A083952(204) = 2, etc.

MATHEMATICA

a[n_] := a[n] = Block[{s = Sum[ a[i]*x^i, {i, 0, n - 1}]}, If[ IntegerQ@ Last@ CoefficientList[ Series[ Sqrt[s + x^n], {x, 0, n}], x], 1, 2]]; t = Union@ Table[ If[ a[n] == 1, n, 0], {n, 0, 5506}]; f[n_] := Block[{k = n, m = 2}, If[n == 1, 0, While[m < Length@t && t[[m - 1]] + 2 == t[[m]] || t[[m]] + 2k != t[[m + k]] || t[[m + k]] + 2 == t[[m + k + 1]], m++ ]; If[m < Length@t - k, t[[m]], 0]]]; Table[ f[n], {n, 0, 9}]

CROSSREFS

Cf. A083952, A111363.

Sequence in context: A167028 A052679 A134680 this_sequence A156444 A122192 A109006

Adjacent sequences: A111369 A111370 A111371 this_sequence A111373 A111374 A111375

KEYWORD

nonn

AUTHOR

Robert G. Wilson v (rgwv(AT)rgwv.com), Nov 08 2005

EXTENSIONS

Corrected and extended by Robert G. Wilson v (rgwv(AT)rgwv.com), Nov 27 2006

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research