Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A125122
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A125122 First differences of A034888. +0
2
0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0 (list; graph; listen)
OFFSET

0,1

COMMENT

This sequence is not periodic because log(3)/log(10) is an irrational number. - T. D. Noe (noe(AT)sspectra.com), Jan 10 2007

FORMULA

a(n)=Number_of_digits{3^(n+1)}-Number_of digits{3^(n)} with n>=0.

EXAMPLE

a(1)=0 because 3^(1+1)=9 (one digit) 3^1=3 (one digit) and the difference is 0

a(4)=1 because 3^(4+1)=243 (three digits) 3^(4)=81 (two digits) and the difference is 1

MAPLE

P:=proc(n) local i, j, k, w, old; k:=3; for i from 1 by 1 to n do j:=k^i; w:=0; while j>0 do w:=w+1; j:=trunc(j/10); od; if i>1 then print(w-old); old:=w; else old:=w; fi; od; end: P(1000);

CROSSREFS

Sequence in context: A141743 A112416 A061265 this_sequence A000035 A131734 A134452

Adjacent sequences: A125119 A125120 A125121 this_sequence A125123 A125124 A125125

KEYWORD

easy,nonn,base

AUTHOR

Paolo P. Lava & Giorgio Balzarotti (ppl(AT)spl.at), Jan 10 2007

page 1

Search completed in 0.004 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 27 14:50 EST 2009. Contains 167570 sequences.


AT&T Labs Research