login
A175833
Periodic sequence: repeat 4,7,11.
2
4, 7, 11, 4, 7, 11, 4, 7, 11, 4, 7, 11, 4, 7, 11, 4, 7, 11, 4, 7, 11, 4, 7, 11, 4, 7, 11, 4, 7, 11, 4, 7, 11, 4, 7, 11, 4, 7, 11, 4, 7, 11, 4, 7, 11, 4, 7, 11, 4, 7, 11, 4, 7, 11, 4, 7, 11, 4, 7, 11, 4, 7, 11, 4, 7, 11, 4, 7, 11, 4, 7, 11, 4, 7, 11, 4, 7, 11, 4, 7, 11, 4, 7, 11, 4, 7, 11
OFFSET
0,1
COMMENTS
Continued fraction expansion of (158+sqrt(27226))/78.
FORMULA
G.f.: (4 + 7*x + 11*x^2)/(1 - x^3).
a(n) = a(n-3) for n>2.
a(n) = 4*A010882(n) - A011655(n) = 4*(n + 1 - 3*floor(n/3)) - (1 - (-1)^(n-3*floor((n+1)/3)))/2.
MATHEMATICA
PadRight[{}, 120, {4, 7, 11}] (* Harvey P. Dale, Jul 17 2013 *)
PROG
(Magma) &cat[[4, 7, 11]^^30];
(Maxima) makelist(concat(4, ", ", 7, ", ", 11), n, 0, 28); /* Bruno Berselli, Nov 13 2012 */
(Python) [4, 7, 11]*30 # Bruno Berselli, Dec 02 2016
CROSSREFS
Sequence in context: A135262 A061515 A071084 * A171964 A352583 A198468
KEYWORD
nonn,easy
AUTHOR
Bruno Berselli, Sep 17 2010
STATUS
approved