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!)
A033136 Base 9 digits are, in order, the first n terms of the periodic sequence with initial period 1,1,0. 0
1, 10, 90, 811, 7300, 65700, 591301, 5321710, 47895390, 431058511, 3879526600, 34915739400, 314241654601, 2828174891410, 25453574022690, 229082166204211, 2061739495837900, 18555655462541100, 167000899162869901, 1503008092465829110, 13527072832192461990 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
G.f.: x*(1+x) / ( (x-1)*(9*x-1)*(1+x+x^2) ). a(n) = A033145(n) + A033145(n-1). - R. J. Mathar, Jan 08 2011
a(n) = round( (45/364)*9^n ). - Tani Akinari, Jul 15 2014
a(n+1) = 9*a(n) if n == 2 (mod 3), 9*a(n)+1 otherwise. - Robert Israel, Jul 15 2014
EXAMPLE
The first six terms have base 9 representations 1, 11, 110, 1101, 11011, 110110.
MATHEMATICA
Module[{nn=30, c}, c=PadRight[{}, nn, {1, 1, 0}]; Table[FromDigits[Take[c, n], 9], {n, nn}]] (* Harvey P. Dale, Aug 18 2014 *)
PROG
(PARI) Vec(x*(1+x) / ( (x-1)*(9*x-1)*(1+x+x^2) ) + O(x^50)) \\ Michel Marcus, Jul 15 2014
CROSSREFS
Cf. A033137 (similar in base 10).
Sequence in context: A170691 A003952 A252703 * A061206 A199527 A137684
KEYWORD
nonn,base,easy
AUTHOR
EXTENSIONS
More terms from Michel Marcus, Jul 15 2014
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 2 23:14 EDT 2024. Contains 372203 sequences. (Running on oeis4.)