Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A028898
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A028898 Map n = Sum c_i 10^i to a(n) = Sum c_i 3^i. +0
4
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 21, 22, 23, 24, 25, 26, 27 (list; graph; listen)
OFFSET

0,3

FORMULA

a(0)=0, a(n)=3*a(n/10) if n==0 (mod 10), a(n)=a(n-1)+1 otherwise - Benoit Cloitre (benoit7848c(AT)orange.fr), Dec 21 2002

PROGRAM

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

CROSSREFS

Sequence in context: A122481 A110805 A061499 this_sequence A081502 A079828 A061229

Adjacent sequences: A028895 A028896 A028897 this_sequence A028899 A028900 A028901

KEYWORD

nonn,base

AUTHOR

N. J. A. Sloane (njas(AT)research.att.com).

EXTENSIONS

More terms from Erich Friedman (erich.friedman(AT)stetson.edu).

page 1

Search completed in 0.002 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 November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research