cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-2 of 2 results.

A131372 Period 7: repeat [1, -1, 0, 1, 0, -1, 1].

Original entry on oeis.org

1, -1, 0, 1, 0, -1, 1, 1, -1, 0, 1, 0, -1, 1, 1, -1, 0, 1, 0, -1, 1, 1, -1, 0, 1, 0, -1, 1, 1, -1, 0, 1, 0, -1, 1, 1, -1, 0, 1, 0, -1, 1, 1, -1, 0, 1, 0, -1, 1, 1, -1, 0, 1, 0, -1, 1, 1, -1, 0, 1, 0, -1, 1, 1, -1, 0, 1, 0, -1, 1, 1, -1, 0, 1, 0, -1, 1, 1, -1, 0, 1, 0, -1, 1
Offset: 0

Views

Author

Paul Curtz, Oct 01 2007

Keywords

Examples

			G.f. = 1 - x + x^3 - x^5 + x^6 + x^7 - x^8 + x^10 - x^12 + x^13 + x^14 + ...
		

Crossrefs

Programs

Formula

From Wesley Ivan Hurt, Dec 23 2016: (Start)
G.f.: (1 - x + x^3 - x^5 + x^6)/(1 - x^7).
a(n) = a(n-7) for all n in Z.
a(n) = 1 - floor((1-n)/7) + floor((3-n)/7) - floor((5-n)/7) + floor((6-n)/7) + floor((7-n)/7) + floor((n-7)/7) + floor((n-6)/7) - floor((n-5)/7) + floor((n-3)/7) - floor((n-1)/7). (End)
G.f.: 1 / (1 + x / (1 - x / (1 + x / (1 - x / (1 - x^2 / (1 + x^4 / (1 + x^3))))))). - Michael Somos, Dec 26 2016
a(n) = (-1)^(mod(mod(n, 7), 3)>0) * A098457(n+1). - Michael Somos, Dec 26 2016

A098458 Periods of the Farey Bisection Expansions (FBE) of Sqrt[n], for n=1,2,3,...

Original entry on oeis.org

1, 4, 3, 1, 8, 6, 7, 5, 1, 12, 9, 8, 20, 10, 7, 1, 16, 12, 17, 10, 14, 18, 13, 9, 1, 20, 15, 18, 32, 12, 25, 13, 14, 16, 11, 1, 24, 18, 16, 15, 32, 14, 29, 20, 20, 34, 19, 13, 1, 28
Offset: 1

Views

Author

John W. Layman, Sep 08 2004

Keywords

Comments

See A098457 for the definition of the Farey Bisection Expansion.

Examples

			The FBE of Sqrt[7] is {1,1,0,1,0,1,1,1,1,0,1,0,1,1,1,1,0,1,0,1,1,..
with period 7. Thus a(7)=7.
		

Crossrefs

Showing 1-2 of 2 results.