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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A176067 Binary analog of A098755 and A098756: Binary representation of least available nonnegative integer with bit values alternating for entire sequence. 0
1, 0, 10, 1010, 101010, 10101010, 1010101010, 101010101010, 10101010101010, 1010101010101010, 101010101010101010, 10101010101010101010, 1010101010101010101010, 101010101010101010101010, 10101010101010101010101010, 1010101010101010101010101010 (list; graph; refs; listen; history; text; internal format)
OFFSET

-1,3

COMMENTS

Begin at a(-1) = 1 for A098756 analog; begin at a(0) = 0 for A098755 analog. A020988 gives the corresponding decimal representations for n >= 0; see relevant comments there and in A163662: This sequence is A163662 with 1, 0 prefixed.

LINKS

Table of n, a(n) for n=-1..14.

Index entries for linear recurrences with constant coefficients, signature (101, -100).

FORMULA

a(n) = A007088(A020988(n)) for n >= 0; a(-1) = 1.

From Chai Wah Wu, Feb 11 2018: (Start)

a(n) = 101*a(n-1) - 100*a(n-2) for n > 1.

G.f.: (110*x^2 - 101*x + 1)/(x*(x - 1)*(100*x - 1)). (End)

MATHEMATICA

Join[{1, 0}, RecurrenceTable[{a[1]==10, a[2]==1010, a[n]==101 a[n-1] - 100 a[n-2]}, a, {n, 15}]] (* Vincenzo Librandi, Feb 11 2018 *)

PROG

(MAGMA)   I:=[1, 0, 10]; [n le 3 select I[n] else 101*Self(n-1)-100*Self(n-2): n in [1..30]]; // Vincenzo Librandi, Feb 11 2018

CROSSREFS

Cf. A098755, A098756, A020988, A007088, A163662.

Sequence in context: A106456 A079214 A163662 * A080070 A303610 A080120

Adjacent sequences:  A176064 A176065 A176066 * A176068 A176069 A176070

KEYWORD

base,easy,nonn

AUTHOR

Rick L. Shepherd, Apr 07 2010

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.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 2 09:22 EDT 2021. Contains 346422 sequences. (Running on oeis4.)