This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A076775 Greatest common divisor of n and the binary representation of n interpreted decimally. 1
 1, 2, 1, 4, 1, 2, 1, 8, 1, 10, 1, 4, 1, 2, 1, 16, 1, 2, 1, 20, 21, 2, 1, 8, 1, 2, 1, 4, 1, 10, 1, 32, 11, 2, 1, 4, 1, 2, 1, 40, 1, 42, 1, 4, 1, 2, 1, 16, 1, 10, 1, 4, 1, 2, 1, 8, 1, 2, 1, 20, 1, 2, 21, 64, 1, 22, 1, 4, 3, 10, 1, 8, 1, 2, 1, 4, 1, 2, 1, 80, 3, 2, 1, 84, 1, 2, 1, 8, 1, 10, 1 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 LINKS Antti Karttunen, Table of n, a(n) for n = 1..16384 Antti Karttunen, Data supplement: n, a(n) computed for n = 1..65537 EXAMPLE 12 is '1100' in binary representation: a(12) = gcd(12,1100) = gcd(3*2^2,11*5^2*2^2) = 4. MATHEMATICA Table[GCD[n, FromDigits[IntegerDigits[n, 2]]], {n, 100}] (* Harvey P. Dale, Jun 18 2014 *) PROG (PARI) A007088(n) = fromdigits(binary(n), 10); \\ From A007088. A076775(n) = gcd(n, A007088(n)); \\ Antti Karttunen, May 18 2019 CROSSREFS Cf. A007088. Sequence in context: A006519 A322362 A087258 * A324873 A325566 A218621 Adjacent sequences:  A076772 A076773 A076774 * A076776 A076777 A076778 KEYWORD nonn,base AUTHOR Reinhard Zumkeller, Nov 14 2002 STATUS approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

Last modified September 20 12:34 EDT 2019. Contains 327235 sequences. (Running on oeis4.)