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!)
A032740 Numbers k such that k is a substring of 2^k. 11
6, 10, 35, 36, 37, 44, 49, 51, 60, 67, 72, 73, 82, 85, 89, 93, 179, 188, 190, 191, 226, 234, 252, 297, 312, 321, 356, 373, 391, 425, 429, 430, 438, 445, 451, 475, 478, 479, 486, 516, 519, 521, 526, 549, 551, 581, 582, 583, 598, 601, 603, 609, 613, 619, 627, 632, 642, 652, 653, 655, 660 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

David W. Wilson, Table of n, a(n) for n = 1..10000

EXAMPLE

2^93 = 99035203142830421991929_93_792.

MAPLE

op(select(n->searchtext(convert(n, string), convert(2^n, string))>0, [$1..660])); # Paolo P. Lava, Sep 05 2018

MATHEMATICA

d[n_] := IntegerDigits[n]; parQ[n_] := MemberQ[Partition[d[2^n], Length[x = d[n]], 1], x]; Select[Range[660], parQ] (* Jayanta Basu, Jun 17 2013 *)

Select[Range[700], SequenceCount[IntegerDigits[2^#], IntegerDigits[#]]>0&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, Jul 10 2019 *)

PROG

(Haskell)

import Data.List (isInfixOf)

a032740 n = a032740_list !! (n-1)

a032740_list = [x | x <- [0..], show x `isInfixOf` (show $ 2 ^ x)]

-- Reinhard Zumkeller, Jan 19 2014

CROSSREFS

Cf. A049301-A049307.

Sequence in context: A360519 A361321 A358153 * A348842 A361107 A361325

Adjacent sequences: A032737 A032738 A032739 * A032741 A032742 A032743

KEYWORD

base,nonn,nice,easy

AUTHOR

Patrick De Geest, May 15 1998

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 4 01:25 EDT 2023. Contains 361754 sequences. (Running on oeis4.)