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!)
A064894 Binary dilution of n. GCD of exponents in binary expansion of n. 6
0, 0, 1, 1, 2, 2, 1, 1, 3, 3, 1, 1, 1, 1, 1, 1, 4, 4, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 5, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 6, 6, 1, 1, 2, 2, 1, 1, 3, 3, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,5
COMMENTS
All bits of n in positions not divisible by a(n) are zero. Hence n in binary contains blocks of a(n)-1 "diluting" 0's (for n>1). Also for n>1, a(2^n) = a(2^n + 1) = n. For i,j odd, a(ij) = GCD(a(i),a(j)).
LINKS
FORMULA
If n = 2^e0 + 2^e1 +... then a(n) = GCD(e0, e1, ...).
a(A064896(n)) = A056538(n)
EXAMPLE
577 = 2^0 + 2^6 + 2^9, GCD(0,6,9) = 3 = a(577).
MATHEMATICA
A064894[n_] := Apply[GCD, Flatten[Position[Reverse[IntegerDigits[n, 2]], 1]] - 1];
Array[A064894, 100, 0] (* Paolo Xausa, Feb 13 2024 *)
PROG
(PARI) a(n) = if (n==0, 0, my(ve = select(x->x==1, Vecrev(binary(n)), 1)); gcd(vector(#ve, k, ve[k]-1))); \\ Michel Marcus, Apr 12 2016
CROSSREFS
Sequence in context: A198380 A361025 A152805 * A003638 A094267 A136480
KEYWORD
base,easy,nonn
AUTHOR
Marc LeBrun, Oct 11 2001
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 24 06:13 EDT 2024. Contains 371918 sequences. (Running on oeis4.)