Svoboda | Graniru | BBC Russia | Golosameriki | Facebook
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!)
A331219 Positive numbers of the form u * v where the binary representations of u and of v have the same number of 0's and the same number of 1's. 5
1, 4, 9, 16, 25, 30, 36, 49, 64, 81, 90, 100, 108, 120, 121, 143, 144, 154, 169, 182, 196, 225, 256, 289, 306, 324, 340, 360, 361, 399, 400, 408, 418, 432, 441, 462, 475, 480, 484, 494, 525, 529, 532, 546, 550, 572, 576, 588, 616, 621, 625, 650, 667, 676, 690 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
In other words, the terms of this sequence are squares or the products of two binary anagrams.
Leading zeros are ignored.
If m belongs to the sequence, then 4*m also belongs to the sequence.
LINKS
FORMULA
a(n) = A331266(n) * A331267(n).
EXAMPLE
The binary representations of 5 and 6 are "101" and "110", respectively.
So 5 and 6 are binary anagrams, and 30 = 5*6 belongs to the sequence.
PROG
(PARI) is(n, base=2) = fordiv (n, d, if (vecsort(digits(d, base))==vecsort(digits(n/d, base)), return (1))); return (0)
CROSSREFS
Cf. A331220 (ternary analog), A331221 (decimal analog), A331266, A331267.
Sequence in context: A086132 A010433 A175592 * A337534 A126589 A340585
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jan 12 2020
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 September 12 12:03 EDT 2024. Contains 375851 sequences. (Running on oeis4.)