Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A007090
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A007090 Numbers in base 4.
(Formerly M0900)
+0
25
0, 1, 2, 3, 10, 11, 12, 13, 20, 21, 22, 23, 30, 31, 32, 33, 100, 101, 102, 103, 110, 111, 112, 113, 120, 121, 122, 123, 130, 131, 132, 133, 200, 201, 202, 203, 210, 211, 212, 213, 220, 221, 222, 223, 230, 231, 232, 233, 300, 301, 302, 303, 310, 311, 312, 313, 320 (list; graph; listen)
OFFSET

0,3

FORMULA

a(n)=Sum{d(i)*10^i: i=0, 1, ..., m}, where Sum{d(i)*4^i: i=0, 1, ..., m} is the base 4 representation of n.

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

MATHEMATICA

Table[ FromDigits[ IntegerDigits[n, 4]], {n, 0, 60}]

PROGRAM

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

CROSSREFS

Cf. A007608, A000042, A007088, A007089, A007091, A007092, A007093, A007094 & A007095.

Sequence in context: A123167 A074068 A055655 this_sequence A102859 A123977 A069967

Adjacent sequences: A007087 A007088 A007089 this_sequence A007091 A007092 A007093

KEYWORD

nonn,base

AUTHOR

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

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 July 25 07:41 EDT 2008. Contains 142293 sequences.


AT&T Labs Research