Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A126206
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A126206 Number of 4's in decimal expansion of 4^n. +0
7
0, 1, 0, 1, 0, 1, 1, 1, 0, 2, 1, 3, 0, 1, 2, 2, 2, 1, 1, 3, 0, 3, 3, 3, 2, 2, 2, 3, 1, 2, 2, 3, 4, 3, 1, 3, 3, 4, 2, 4, 2, 4, 2, 2, 3, 4, 3, 3, 3, 3, 2, 2, 3, 5, 2, 4, 2, 4, 4, 3, 3, 3, 4, 4, 6, 5, 5, 4, 2, 9, 5, 2, 4, 6, 4, 7, 4, 2, 5, 4, 3, 4, 8, 4, 7, 9, 2, 8, 4, 7, 3, 10, 9, 5, 3, 5, 8, 8, 3, 10, 4 (list; graph; listen)
OFFSET

0,10

EXAMPLE

a(11)=3 because 4^11=4194304 with three 4's.

MAPLE

P:=proc(n) local i, k, x, y, w, cont; y:=4; k:=y; for i from 0 by 1 to n do x:=y^i; cont:=0; while x>0 do w:=x-trunc(x/10)*10; if w=k then cont:=cont+1; fi; x:=trunc(x/10); od; print(cont); od; end: P(100);

CROSSREFS

Cf. A065710, A126205, A126207, A126208, A126209, A126210, A126211.

Sequence in context: A071431 A140699 A140256 this_sequence A119709 A120251 A071490

Adjacent sequences: A126203 A126204 A126205 this_sequence A126207 A126208 A126209

KEYWORD

easy,nonn

AUTHOR

Paolo P. Lava & Giorgio Balzarotti (ppl(AT)spl.at), Dec 20 2006

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