Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A088995
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A088995 Least k>0 such that the first n digits of 2^k and 5^k are identical. +0
2
5, 98, 1068, 1068, 127185, 2728361, 15917834 (list; graph; listen)
OFFSET

1,1

COMMENT

The number of matching first digits of 2^n and 5^n increases with n and forms the sequence 3,1,6,2,2,7,7,6,6,... which approaches Sqrt(10).

LINKS

T. Sillke, Powers of 2 and 5 Puzzle

EXAMPLE

a(2) = 98: 2^98 = 316912650057057350374175801344 and 5^98 = 315544362088404722164691426113114491869282574043609201908111572265625.

MATHEMATICA

L2 = N[ Log[ 10, 2 ], 50 ]; L5 = N[ Log[ 10, 5 ], 50 ]; k = 1; Do[ While[ Take[ RealDigits[ 10^FractionalPart[ L2*k ] ][[ 1 ] ], n ] != Take[ RealDigits[ 10^FractionalPart[ L5*k ] ][[ 1 ] ], n ], k++ ]; Print[ k ], {n, 1, 10} ]

L2 = N[ Log[ 10, 2 ], 50 ]; L5 = N[ Log[ 10, 5 ], 50 ]; k = 1; Do[ While[ Take[ RealDigits[ 10^FractionalPart[ L2*k ]][[ 1 ]], n ] != Take[ RealDigits[ 10^FractionalPart[ L5*k ]][[ 1 ]], n ], k++ ]; Print[ k ], {n, 1, 7} ]

CROSSREFS

Cf. A088935.

Cf. A010467.

Sequence in context: A117341 A062538 A053980 this_sequence A093749 A147539 A156276

Adjacent sequences: A088992 A088993 A088994 this_sequence A088996 A088997 A088998

KEYWORD

base,nonn

AUTHOR

Lekraj Beedassy (blekraj(AT)yahoo.com), Dec 01 2003

EXTENSIONS

Edited by Robert G. Wilson v (rgwv(AT)rgwv.com), Dec 02 2003

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 December 19 12:50 EST 2009. Contains 171053 sequences.


AT&T Labs Research