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!)
A037487 Decimal expansion of a(n) is given by the first n terms of the periodic sequence with initial period 1,2. 4
1, 12, 121, 1212, 12121, 121212, 1212121, 12121212, 121212121, 1212121212, 12121212121, 121212121212, 1212121212121, 12121212121212, 121212121212121, 1212121212121212, 12121212121212121, 121212121212121212, 1212121212121212121, 12121212121212121212 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
See A037610 for a general formula. - Hieronymus Fischer, Jan 03 2013
(Smoothly undulating palindromic) primes in this sequence are listed in A092696(n) = (4*10^A062209(n)-7)/33. - M. F. Hasler, Jul 30 2015
LINKS
FORMULA
a(n) = floor((4/33)*10^n). - Hieronymus Fischer, Jan 03 2013
a(n) = 10*a(n-1)+a(n-2)-10*a(n-3). G.f.: x*(2*x+1) / ((x-1)*(x+1)*(10*x-1)). - Colin Barker, Apr 30 2014
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {1, 2}]], {n, 20}] (* or *) LinearRecurrence[ {10, 1, -10}, {1, 12, 121}, 20] (* Harvey P. Dale, Jun 21 2016 *)
PROG
(PARI) A037487(n)=10^n*4\33 \\ - M. F. Hasler, Jan 13 2013
(PARI) Vec(x*(2*x+1)/((x-1)*(x+1)*(10*x-1)) + O(x^100)) \\ Colin Barker, Apr 30 2014
CROSSREFS
Cf. A037610.
Sequence in context: A098297 A037543 A214317 * A332603 A358615 A231869
KEYWORD
nonn,base
AUTHOR
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 April 23 12:27 EDT 2024. Contains 371912 sequences. (Running on oeis4.)