This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A003137 Write n in base 3 and juxtapose. (Formerly M0040) 30
 1, 2, 1, 0, 1, 1, 1, 2, 2, 0, 2, 1, 2, 2, 1, 0, 0, 1, 0, 1, 1, 0, 2, 1, 1, 0, 1, 1, 1, 1, 1, 2, 1, 2, 0, 1, 2, 1, 1, 2, 2, 2, 0, 0, 2, 0, 1, 2, 0, 2, 2, 1, 0, 2, 1, 1, 2, 1, 2, 2, 2, 0, 2, 2, 1, 2, 2, 2, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 2, 1, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 2, 1, 0, 2, 0, 1, 0, 2, 1, 1, 0, 2, 2, 1 (list; constant; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 COMMENTS An irregular table in which the n-th row lists the base 3 digits of n. - Jason Kimberley, Dec 07 2012 The base 3 Champernowne constant: it is normal in base 3. - Jason Kimberley, Dec 07 2012 REFERENCES N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence). LINKS Reinhard Zumkeller, Rows n = 1..1000 of triangle, flattened Eric Weisstein's World of Mathematics, Ternary. Wikipedia, Ternary numeral system MATHEMATICA Flatten@ IntegerDigits[ Range@ 40, 3] (* or *) almostNatural[n_, b_] := Block[{m = 0, d = n, i = 1, l, p}, While[m <= d, l = m; m = (b - 1) i*b^(i - 1) + l; i++]; i--; p = Mod[d - l, i]; q = Floor[(d - l)/i] + b^(i - 1); If[p != 0, IntegerDigits[q, b][[p]], Mod[q - 1, b]]]; Array[ a[#, 3] &, 105] (* Robert G. Wilson v, Jul 01 2014 *) PROG (MAGMA) &cat[Reverse(IntegerToSequence(n, 3)):n in[1..31]]; // Jason Kimberley, Dec 07 2012 (Haskell) a003137 n k = a003137_tabf !! (n-1) !! k a003137_row n = a003137_tabf !! (n-1) a003137_tabf = map reverse \$ tail a030341_tabf a003137_list = concat a003137_tabf -- Reinhard Zumkeller, Feb 21 2013 CROSSREFS Tables in which the n-th row lists the base b digits of n: A030190 and A030302 (b=2), this sequence and A054635 (b=3), A030373 (b=4), A031219 (b=5), A030548 (b=6), A030998 (b=7), A031035 and A054634 (b=8), A031076 (b=9), A007376 and A033307 (b=10). - Jason Kimberley, Dec 06 2012 Cf. A081604 (row lengths), A053735 (row sums), A030341, A007089, A030341. Sequence in context: A324827 A205217 A054635 * A006842 A299038 A273693 Adjacent sequences:  A003134 A003135 A003136 * A003138 A003139 A003140 KEYWORD nonn,base,cons,easy,tabf AUTHOR EXTENSIONS More terms from Larry Reeves (larryr(AT)acm.org), Sep 25 2000 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.

Last modified March 19 23:02 EDT 2019. Contains 321343 sequences. (Running on oeis4.)