Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A165820
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A165820 a(n) = the smallest positive integer that, when written in binary, contains both binary n and binary n^2 as substrings. +0
4
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; listen)
OFFSET

1,2

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] [From Robert G. Wilson v (rgwv(AT)rgwv.com), Oct 02 2009]

CROSSREFS

Cf. A165819, A165821, A165822

Sequence in context: A009267 A009275 A070612 this_sequence A043056 A012879 A072178

Adjacent sequences: A165817 A165818 A165819 this_sequence A165821 A165822 A165823

KEYWORD

base,nonn

AUTHOR

Leroy Quet (q1qq2qqq3qqqq(AT)yahoo.com), Sep 28 2009

EXTENSIONS

a(7)-a(44) from Robert G. Wilson v (rgwv(AT)rgwv.com), Oct 02 2009

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 2 11:54 EST 2009. Contains 167921 sequences.


AT&T Labs Research