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!)
A182621 a(n) is the concatenation of the binary numbers that are the divisors of n written in base 2. 9
1, 110, 111, 110100, 1101, 11011110, 1111, 1101001000, 1111001, 1101011010, 11011, 110111001101100, 11101, 1101111110, 1111011111, 110100100010000, 110001, 11011110100110010, 110011, 110100101101010100, 11111110101, 110101110110, 110111, 110111001101000110011000 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
a(n) is the concatenation of the numbers of row n of triangle A182620. The first repeated element is a(15) = 1111011111 = a(479), where a(15) is the concatenation of 1, 11, 101 and 1111 but a(479) is the concatenation of 1 and 111011111. See A182620 and A182622 for more information.
LINKS
EXAMPLE
The divisors of 10 are 1, 2, 5, 10, which written in base 2 are 1, 10, 101, 1010. The concatenation of 1, 10, 101, 1010 is 1101011010, so a(10) = 1101011010.
MATHEMATICA
A182621[n_]:=FromDigits[Flatten[IntegerDigits[Divisors[n], 2]]]; Array[A182621, 50] (* Paolo Xausa, Aug 31 2023 *)
PROG
(Sage) A182621 = lambda n: Integer(''.join(d.str(base=2) for d in divisors(n))) # D. S. McNeil, Dec 19 2010
(Python)
from sympy import divisors
def a(n): return int("".join(bin(d)[2:] for d in divisors(n)))
print([a(n) for n in range(1, 25)]) # Michael S. Branicky, Apr 20 2022
(PARI) a(n) = fromdigits(concat(apply(binary, divisors(n)))); \\ Kevin Ryde, May 02 2023
CROSSREFS
Sequence in context: A287138 A288769 A112891 * A267254 A036230 A171236
KEYWORD
nonn,base,easy,less
AUTHOR
Omar E. Pol, Nov 22 2010
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 August 11 01:05 EDT 2024. Contains 375059 sequences. (Running on oeis4.)