|
| |
|
|
A033146
|
|
Decimal expansion of a(n) is given by the first n terms of the periodic sequence with initial period 1,0,0.
|
|
0
| |
|
|
1, 10, 100, 1001, 10010, 100100, 1001001, 10010010, 100100100, 1001001001, 10010010010, 100100100100, 1001001001001, 10010010010010, 100100100100100, 1001001001001001, 10010010010010010, 100100100100100100, 1001001001001001001, 10010010010010010010
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 1,2
|
|
|
FORMULA
| G.f.: 1/((1-x^3)(1-10x)); a(n)=10a(n-1)+a(n-3)-10a(n-4); a(n)=sum{k=0..floor(n/3), 10^(n-3k)} [offset 0]; a(n)=sum{k=0..n, 10^k*(cos(2*pi*(n-k)/3+pi/3)/3+sqrt(3)sin(2*pi*(n-k)/3+pi/3)/3+1/3)} [offset 0]. - Paul Barry (pbarry(AT)wit.ie), Apr 16 2005
a(n)=10*a(n-1)+(1/9)*{(n mod 3)+4*[(n+1) mod 3]-2*[(n+2) mod 3]}, with a(0)=0. Closed form: a(n)=-(1/27)+(1000/999)*10^n+(5/333)*I*sqrt(3)*{[ -(1/2)-(1/2)*I*sqrt(3)]^n-[ -(1/2)+(1/2)*I*sqrt(3)]^n}+(2/111)*{[ -(1/2)-(1/2)*I*sqrt(3)]^n+[ -(1/2)+(1/2)*I*sqrt(3)]^n}, with n>=1 [From Paolo P. Lava (paoloplava(AT)gmail.com), Jul 30 2009]
|
|
|
MATHEMATICA
| With[{c=PadLeft[{}, 21, {1, 0, 0}]}, Table[FromDigits[Take[c, n]], {n, 20}]] (* From Harvey P. Dale, Oct 03 2011 *)
|
|
|
CROSSREFS
| Sequence in context: A138824 A138823 A145442 * A118256 A102397 A132347
Adjacent sequences: A033143 A033144 A033145 * A033147 A033148 A033149
|
|
|
KEYWORD
| nonn,base
|
|
|
AUTHOR
| Clark Kimberling (ck6(AT)evansville.edu)
|
|
|
EXTENSIONS
| More terms from Harvey P. Dale, Oct 03 2011
|
| |
|
|