Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A007089
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A007089 Numbers in base 3.
(Formerly M1960)
+0
72
0, 1, 2, 10, 11, 12, 20, 21, 22, 100, 101, 102, 110, 111, 112, 120, 121, 122, 200, 201, 202, 210, 211, 212, 220, 221, 222, 1000, 1001, 1002, 1010, 1011, 1012, 1020, 1021, 1022, 1100, 1101, 1102, 1110, 1111, 1112, 1120, 1121, 1122, 1200, 1201, 1202, 1210, 1211 (list; graph; listen)
OFFSET

0,3

LINKS

T. D. Noe, Table of n, a(n) for n = 1..10000

Author?, Tai Xuan Jing Symbols

FORMULA

a(0)=0 a(n)=10*a(n/3) if n==0 (mod 3) a(n)=a(n-1)+1 otherwise. - Benoit Cloitre, Dec 22, 2002

MATHEMATICA

Table[ FromDigits[ IntegerDigits[n, 3]], {n, 0, 50}]

PROGRAM

(PARI) a(n)=if(n<1, 0, if(n%3, a(n-1)+1, 10*a(n/3)))

CROSSREFS

Cf. A000042, A007088, A007090, A007091, A007092, A007093, A007094 & A007095.

Adjacent sequences: A007086 A007087 A007088 this_sequence A007090 A007091 A007092

Sequence in context: A043072 A121717 A106518 this_sequence A136820 A136810 A136821

KEYWORD

base,nonn,easy

AUTHOR

njas, Robert G. Wilson v (rgwv(AT)rgwv.com)

EXTENSIONS

More terms from James A. Sellers (sellersj(AT)math.psu.edu), May 01 2000

page 1

Search completed in 0.003 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified May 16 01:24 EDT 2008. Contains 139630 sequences.


AT&T Labs Research