login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A037757 Decimal expansion of a(n) is given by the first n terms of the periodic sequence with initial period 2,3,1,0. 1
2, 23, 231, 2310, 23102, 231023, 2310231, 23102310, 231023102, 2310231023, 23102310231, 231023102310, 2310231023102, 23102310231023, 231023102310231, 2310231023102310, 23102310231023102, 231023102310231023, 2310231023102310231, 23102310231023102310 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Vincenzo Librandi, Table of n, a(n) for n = 1..200

Index entries for linear recurrences with constant coefficients, signature (11,-11,11,-10)

FORMULA

a(n) = 10*a(n-1) + (1/4)*(2*(n mod 4) + 3*((n+1) mod 4) - ((n+3) mod 4)) for n > 0. - Paolo P. Lava, Jul 30 2009

G.f.: (2+x)*x / ((x-1)*(10*x-1)*(x^2+1)). - R. J. Mathar, Nov 21 2011

MATHEMATICA

CoefficientList[Series[(2 + x) / ((x - 1) (10 x - 1) (x^2 + 1)), {x, 0, 40}], x] (* Vincenzo Librandi, Feb 16 2018 *)

Table[FromDigits[PadRight[{}, n, {2, 3, 1, 0}]], {n, 20}] (* Harvey P. Dale, Oct 21 2018 *)

PROG

(MAGMA) I:=[2, 23, 231, 2310]; [n le 4 select I[n] else 11*Self(n-1)-11*Self(n-2)+11*Self(n-3)-10*Self(n-4): n in [1..30]]; // Vincenzo Librandi, Feb 16 2018

CROSSREFS

Sequence in context: A037750 A037631 A026075 * A037645 A100893 A198972

Adjacent sequences:  A037754 A037755 A037756 * A037758 A037759 A037760

KEYWORD

nonn,base

AUTHOR

Clark Kimberling

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 28 16:37 EDT 2022. Contains 354119 sequences. (Running on oeis4.)