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!)
A165820 a(n) = the smallest positive integer that, when written in binary, contains both binary n and binary n^2 as substrings. 5
1, 4, 19, 16, 89, 100, 113, 64, 593, 1380, 377, 400, 425, 452, 481, 256, 4385, 1298, 723, 10640, 5561, 11748, 8471, 18456, 1649, 1700, 729, 1808, 1865, 1924, 1985, 1024, 33857, 9250, 36041, 75024, 5477, 11558, 40433, 83520, 1681, 87780, 22329, 92048 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(n) = A294977(n, n^2). - Rémy Sigrist, Mar 03 2018
MATHEMATICA
f[n_] := Block[{k = 1, is = IntegerString[n, 2], iss = IntegerString[n^2, 2]}, While[ StringPosition[ IntegerString[k, 2], is] == {} || StringPosition[ IntegerString[k, 2], iss] == {}, k++ ]; k]; Array[f, 44] (* Robert G. Wilson v, Oct 02 2009 *)
CROSSREFS
Sequence in context: A009275 A362249 A070612 * A043056 A012879 A072178
KEYWORD
base,nonn
AUTHOR
Leroy Quet, Sep 28 2009
EXTENSIONS
a(7)-a(44) from Robert G. Wilson v, Oct 02 2009
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 23 09:48 EDT 2024. Contains 371905 sequences. (Running on oeis4.)