|
|
A132583
|
|
a(n) = n 2's sandwiched between two 1's.
|
|
7
|
|
|
11, 121, 1221, 12221, 122221, 1222221, 12222221, 122222221, 1222222221, 12222222221, 122222222221, 1222222222221, 12222222222221, 122222222222221, 1222222222222221, 12222222222222221, 122222222222222221, 1222222222222222221, 12222222222222222221, 122222222222222222221
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,1
|
|
COMMENTS
|
Also, positive numbers each of whose digits indicates its number of adjacent digits (digits on the ends are adjacent to only one while others are adjacent to 2). - Eric Fox, Jul 19 2022
|
|
LINKS
|
|
|
FORMULA
|
O.g.f.: 11/((-1+x)*(-1+10*x)) = -(110/9)/(-1+10*x) + (11/9)/(-1+x). - R. J. Mathar, Nov 28 2007
a(n) = 20*(10^n-1)/9 + 10^(n+1) + 1, with n >= 0. - Paolo P. Lava, Dec 19 2007
|
|
MAPLE
|
g:=(1+z)/((1-z)*(1-10*z)): gser:=series(g, z=0, 43): seq((coeff(gser, z, n))-1, n=1..24); # Zerinvary Lajos, Feb 25 2009
|
|
MATHEMATICA
|
NestList[10#+11&, 11, 20] (* or *) LinearRecurrence[{11, -10}, {11, 121}, 20] (* Harvey P. Dale, Sep 24 2012 *)
|
|
PROG
|
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy,changed
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|