login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A131546 Least power of 3 having exactly n consecutive 7's in its decimal representation. 10
3, 11, 112, 184, 721, 3520, 6643, 12793, 67448, 208380, 364578, 1123485, 9549790, 23340555, 88637856 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
No more terms < 10^8. - Bert Dobbelaere, Mar 20 2019
LINKS
FORMULA
a(1) = A063566(7). - Michel Marcus, Aug 05 2014
EXAMPLE
a(2) = 11 because 3^11 = 177147 is the smallest power of 3 to contain a run of two consecutive 7's in its decimal form.
MATHEMATICA
a = ""; Do[ a = StringJoin[a, "7"]; b = StringJoin[a, "7"]; k = 1; While[ StringPosition[ ToString[3^k], a] == {} || StringPosition[ ToString[3^k], b] != {}, k++ ]; Print[k], {n, 10} ]
PROG
(Python)
def A131546(n):
....str7 = '7'*n
....x, exponent = 3, 1
....while not str7 in str(x):
........exponent += 1
........x *= 3
....return exponent # Chai Wah Wu, Aug 05 2014
CROSSREFS
Sequence in context: A241587 A183381 A136985 * A275338 A068693 A036930
KEYWORD
more,nonn,base
AUTHOR
Shyam Sunder Gupta, Aug 26 2007
EXTENSIONS
a(11)-a(13) from Lars Blomberg, Feb 02 2013
a(14)-a(15) from Bert Dobbelaere, Mar 20 2019
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)