|
|
A010887
|
|
Simple periodic sequence: repeat 1,2,3,4,5,6,7,8.
|
|
5
|
|
|
1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 1, 2, 3, 4, 5, 6, 7, 8, 1
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,2
|
|
COMMENTS
|
1371742/11111111 = 0.123456781234567812345678... - Eric Desbiaux, Nov 03 2008
|
|
LINKS
|
|
|
FORMULA
|
a(n) = (1/2)*(9 - (-1)^n - 2*(-1)^(b/4) - 4*(-1)^((b - 2 + 2*(-1)^(b/4))/8)) where b = 2n - 1 + (-1)^n.
G.f.: g(x) = (1/(1-x^8))*Sum_{k=0..7} (k+1)*x^k.
Also: g(x) = (8x^9 - 9x^8 + 1)/((1-x^8)*(1-x)^2). (End)
|
|
MATHEMATICA
|
|
|
PROG
|
(Haskell)
a010887 = (+ 1) . flip mod 8
a010887_list = cycle [1..8]
(Python)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|