login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A037799 Decimal expansion of a(n) is given by the first n terms of the periodic sequence with initial period 3,2,1,0. 0
3, 32, 321, 3210, 32103, 321032, 3210321, 32103210, 321032103, 3210321032, 32103210321, 321032103210, 3210321032103, 32103210321032, 321032103210321, 3210321032103210 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Table of n, a(n) for n=1..16.

Index entries for linear recurrences with constant coefficients, signature (10,0,0,1,-10).

FORMULA

a(n)=10*a(n-1)+(1/2)*{(n mod 4)+[(n+1) mod 4]+[(n+2) mod 4]-[(n+3) mod 4]}, with a(0)=0 [From Paolo P. Lava, Jul 30 2009]

G.f. x*(3+2*x+x^2) / ( (x-1)*(10*x-1)*(1+x)*(x^2+1) ). - R. J. Mathar, Aug 04 2013

MATHEMATICA

Table[FromDigits[PadRight[{}, n, {3, 2, 1, 0}]], {n, 20}] (* or *) LinearRecurrence[ {10, 0, 0, 1, -10}, {3, 32, 321, 3210, 32103}, 20] (* Harvey P. Dale, Apr 06 2017 *)

CROSSREFS

Sequence in context: A029502 A037792 A037673 * A091706 A091705 A137215

Adjacent sequences:  A037796 A037797 A037798 * A037800 A037801 A037802

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 | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified November 14 22:32 EST 2019. Contains 329134 sequences. (Running on oeis4.)